大家都是如何管理自己的常用代码或者项目呢? - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
hilenlai
V2EX    iDev

大家都是如何管理自己的常用代码或者项目呢?

  •  
  •   hilenlai 2013-04-07 11:42:47 +08:00 6216 次点击
    这是一个创建于 4648 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我都是把那些小demo放到一个文件夹里,然后分类命名
    但总感觉这样还是不够快捷
    想问各位都是怎么管理自己的常用代码和demo的呢?
    求分享经验!
    45 条回复    1970-01-01 08:00:00 +08:00
    hq5261984
        1
    hq5261984  
       2013-04-07 11:45:28 +08:00
    github.
    zhigang1992
        2
    zhigang1992  
       2013-04-07 12:16:59 +08:00   1
    能源的Github+Gist,
    不能的Dropbox+Evernote.

    人的代全部扔~/Temp下,syslink到桌面。。用Alfred管理,Clone, Pull等。
    自己的代常用直接放桌面。不常用的Dropbox
    hilenlai
        3
    hilenlai  
    OP
       2013-04-07 12:31:10 +08:00
    @hq5261984 所有的demo都放在github上?
    hilenlai
        4
    hilenlai  
    OP
       2013-04-07 12:32:34 +08:00
    zhigang1992 看似不错的方法。。Alfred 挺好,我去试试
    sharkli
        5
    sharkli  
       2013-04-07 12:54:32 +08:00
    Dropbox
    TankyWoo
        6
    TankyWoo  
       2013-04-07 13:34:24 +08:00
    github or dropbox

    2L说的不错
    matriz
        7
    matriz  
       2013-04-07 13:38:25 +08:00
    没有版本管理的代码就不能算是代码,因此github是个不错的选择,如果是私有的,可以使用gitlab或者redmine这样的项目管理的工具
    ipconfiger
        8
    ipconfiger  
       2013-04-07 13:45:24 +08:00
    小代码片段可以用gist来管理、分享
    cyberscorpio
        9
    cyberscorpio  
       2013-04-07 14:39:51 +08:00
    竟无人推荐 bitbucket ?
    hilenlai
        10
    hilenlai  
    OP
       2013-04-07 14:43:57 +08:00
    @matriz 可以说是代码片段吧,比如常用的一些,随手拿来就用的那种,涉及到版本控制的基本都是项目吧


    @ipconfiger 我去研究下,不知道搜索的时候方不方便。
    @TankyWoo @sharkli dropbox碉堡!一直纠结一个gmail邮箱,然后一直没有注册。lz是纠结体 ()
    liuzc
        11
    liuzc  
       2013-04-07 15:25:53 +08:00
    开源项目的话,肯定是github。
    私人项目推荐bitbucket.org
    如果收集一些常用的代码,我在OS X上使用的是Code Collector。前几天还限免了。
    hilenlai
        12
    hilenlai  
    OP
       2013-04-07 15:32:43 +08:00
    @liuzc Code Collector bug 贼多啊,我果断卸载了。snippets和那个差不多
    TankyWoo
        13
    TankyWoo  
       2013-04-07 15:48:59 +08:00
    @hilenlai 如果是代码片段,可以考虑:
    gist: https://gist.github.com/ (推荐)
    codepad: http://codepad.org/
    pastiebin: http://pastebin.com/
    pastie: http://pastie.org/
    hilenlai
        14
    hilenlai  
    OP
       2013-04-07 16:15:25 +08:00
    @TankyWoo 多谢,很全面!!准备选用gist了
    yangxin0
        15
    yangxin0  
       2013-04-07 18:00:36 +08:00
    无论是阅读代码还是自己写代码全部使用github, 自己的小代码可以专门放在一个仓库中。 这样无论何时何地都可以阅读代码和提交代码。
    hilenlai
        16
    hilenlai  
    OP
       2013-04-07 21:12:41 +08:00
    @yangxin0 小代码放到一个仓库中? workspace 吗?
    agassi_yzh
        17
    agassi_yzh  
       2013-04-07 21:15:09 +08:00
    我的代码片段放在codebox中。codebox可以直接传到gist的。
    yangxin0
        18
    yangxin0  
       2013-04-07 21:23:37 +08:00
    @hilenlai 在github上建立一个仓库,专门存放小代码
    hilenlai
        19
    hilenlai  
    OP
       2013-04-07 21:40:16 +08:00
    @yangxin0 你所说的小仓库是 gist 还是啥?
    hilenlai
        20
    hilenlai  
    OP
       2013-04-07 21:41:22 +08:00
    @agassi_yzh 买的正版?
    yangxin0
        21
    yangxin0  
       2013-04-07 21:53:38 +08:00
    @hilenlai github create a new repo
    hilenlai
        22
    hilenlai  
    OP
       2013-04-07 21:55:02 +08:00
    @yangxin0 然后在里面创建workspace?
    yangxin0
        23
    yangxin0  
       2013-04-07 21:57:27 +08:00
    @hilenlai 然后创建文件夹或者push代码上去就好了。或者谢谢readme
    hilenlai
        24
    hilenlai  
    OP
       2013-04-07 22:01:27 +08:00
    @yangxin0 好吧!!!了解了
    humiaozuzu
        25
    humiaozuzu  
       2013-04-07 22:07:36 +08:00
    代码全部在 dropbox 中

    - archive 文件夹存基本上不会有太多改动的项目
    - code 存 clone 下来的项目,因为写程序时经常会 read the source(其实我没把他丢进dropbox)
    - current 放当前 working on 的项目

    至于代码开不开源,能开的就 public,不能的就 private 嘛
    hilenlai
        26
    hilenlai  
    OP
       2013-04-07 22:13:10 +08:00
    @humiaozuzu 付费用户!碉堡了,吾等丝全开源了,怎么破
    linzhi
        27
    linzhi  
       2013-04-07 22:32:46 +08:00
    代码全部在dropbox里面 一部分上传 github~~~
    hilenlai
        28
    hilenlai  
    OP
       2013-04-07 22:44:52 +08:00   1
    @linzhi 放dropbox其实和本地一样吧,还是挺乱的 ()
    linzhi
        29
    linzhi  
       2013-04-07 22:48:40 +08:00
    @hilenlai 不一样啊 我两台点 学校的台式机和寝室的笔记本同步。。。
    humiaozuzu
        30
    humiaozuzu  
       2013-04-07 23:00:34 +08:00
    @hilenlai 国外服务基本都有 edu 优惠。而且不觉得 github 的月付有多贵,看看 v2ex 上面的学生如何赚钱的吧 :)
    hilenlai
        31
    hilenlai  
    OP
       2013-04-07 23:19:32 +08:00
    @humiaozuzu 怎么赚钱的??求科普啊!!快


    @linzhi 不还是个文件夹嘛,亲
    tuoxie007
        32
    tuoxie007  
       2013-04-07 23:44:57 +08:00
    开源的话放github上,乱七八糟的代码,就建个git仓库,push到vps上,没有vps的话也可以同步到其他设备或者硬盘上做个备份就好了
    hilenlai
        33
    hilenlai  
    OP
       2013-04-07 23:48:37 +08:00
    @tuoxie007 现在基本是这么搞的!哥们在啪啪啊,话说啪啪iOS团队多少人?挺喜欢这个产品的,赞!
    tuoxie007
        34
    tuoxie007  
       2013-04-07 23:54:12 +08:00
    @hilenlai 我们团队现在4个人
    hilenlai
        35
    hilenlai  
    OP
       2013-04-07 23:55:50 +08:00
    @tuoxie007 强悍!如果能知道你们的架构就好了,哈哈
    tuoxie007
        36
    tuoxie007  
       2013-04-08 00:01:03 +08:00
    @hilenlai 所谓架构都是憋出来的
    agassi_yzh
        37
    agassi_yzh  
       2013-04-08 00:47:12 +08:00
    @hilenlai 是正版
    kelvinblood
        38
    kelvinblood  
       2013-04-08 01:29:54 +08:00
    2L的方法很赞,我明明也一直都在用evernote,怎么就是没想到。
    humiaozuzu
        39
    humiaozuzu  
       2013-04-08 08:34:14 +08:00
    @hilenlai site:v2ex.com/t 零花钱
    hilenlai
        40
    hilenlai  
    OP
       2013-04-08 10:23:51 +08:00
    @tuoxie007 那倒也是,我们那个app也是各种改,改啊改算是憋出来了

    @agassi_yzh 可怜的我还没买过正版软件,是不是太落伍了

    @humiaozuzu 感谢!
    gateswong
        41
    gateswong  
       2013-04-08 11:22:04 +08:00
    LZ你是豆瓣来的Kevin么 (大雾……
    hilenlai
        42
    hilenlai  
    OP
       2013-04-08 11:33:01 +08:00
    @gateswong 不是不是。我葱白kevin的头像!()
    centerqi
        43
    centerqi  
       2013-04-08 12:43:34 +08:00
    bitbucket
    coupgar
        44
    coupgar  
       2013-04-08 15:49:00 +08:00
    snippets
    thelordsaves
        45
    thelordsaves  
       2013-04-08 20:42:31 +08:00
    以前都是放在硬盘的文件夹中,现在可以使用github
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2608 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 37ms UTC 09:58 PVG 17:58 LAX 01:58 JFK 04:58
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86