V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
xcc3641
V2EX  ›  问与答

大家写代码时候,会有一些座右铭吗?

  •  
  •   xcc3641 · 2015-11-12 13:12:02 +08:00 · 3681 次点击
    这是一个创建于 3059 天前的主题,其中的信息可能已经有所发展或是发生改变。
    ·比如我个人写代码会写上:
    代码是灵魂,注释是心声
    26 条回复    2015-11-13 04:33:16 +08:00
    abelyao
        1
    abelyao  
       2015-11-12 13:18:44 +08:00
    代码如诗
    kkhaike
        2
    kkhaike  
       2015-11-12 13:19:22 +08:00   ❤️ 1
    佛祖保佑,没有 bug
    laoyuan
        3
    laoyuan  
       2015-11-12 13:28:32 +08:00   ❤️ 2
    先跑起来再说
    Slienc7
        4
    Slienc7  
       2015-11-12 13:28:51 +08:00
    那年,还在初中
    bk201
        5
    bk201  
       2015-11-12 13:33:36 +08:00
    产品狗不得好死
    Valyrian
        6
    Valyrian  
       2015-11-12 13:36:50 +08:00
    不为最快,只为最短
    saber000
        7
    saber000  
       2015-11-12 14:21:23 +08:00
    TODO
    oubushixb
        8
    oubushixb  
       2015-11-12 14:28:41 +08:00
    默念逻辑->重复->提炼->逻辑....无限循环
    tking4
        9
    tking4  
       2015-11-12 14:30:21 +08:00
    听说,跪着写代码不会有 BUG
    harry890829
        10
    harry890829  
       2015-11-12 14:32:52 +08:00
    我小弟总喜欢用自己的英文名作为类 /全局变量的前缀
    Comdex
        11
    Comdex  
       2015-11-12 14:42:36 +08:00
    不作死就不会死
    wintercomming
        12
    wintercomming  
       2015-11-12 14:50:09 +08:00
    求上帝让我接受不完美
    YellowDi
        13
    YellowDi  
       2015-11-12 14:54:16 +08:00
    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    bk201
        14
    bk201  
       2015-11-12 14:55:00 +08:00
    @harry890829 我以前也喜欢这么干,被我同事骂了一通。但是你知道么,起一个独一无二的名字真难。
    harry890829
        15
    harry890829  
       2015-11-12 15:32:14 +08:00
    @bk201 我们项目小,让他写个类给我,非要起自己的英文名,真是……气死了
    Kilerd
        16
    Kilerd  
       2015-11-12 15:48:26 +08:00
    写着先,以后再重构。

    然后我就忘了。
    Orzpls
        17
    Orzpls  
       2015-11-12 16:27:10 +08:00 via Android
    买房买车结婚。
    otakustay
        18
    otakustay  
       2015-11-12 16:49:43 +08:00
    这代码没 UT ,吃枣药丸
    Shevckcccc
        19
    Shevckcccc  
       2015-11-12 17:06:57 +08:00
    墨菲定律:如果你担心某种情况发生,那么它将来就更有可能发生。
    每次写代码之前多想想这句话,就可以避免很多坑...
    timwu
        20
    timwu  
       2015-11-12 17:08:24 +08:00
    Focused, hard work is the real key to success. Keep your eyes on the goal, and just keep taking the next step towards completing it. If you aren ’ t sure which way to do something, do it both ways and see which works better. — John Carmack
    xieweizhi007
        21
    xieweizhi007  
       2015-11-12 17:43:50 +08:00
    能实现需求, 又能通过测试.
    SeanChense
        22
    SeanChense  
       2015-11-12 17:45:32 +08:00
    昨天才写的:必须树立一种信仰—— delegate 中的方法不能被调用一定是没有设置 delegate 的关系。
    rokeyzki
        23
    rokeyzki  
       2015-11-12 17:53:34 +08:00
    代码从不说谎,但是注释会
    lightening
        24
    lightening  
       2015-11-12 17:57:01 +08:00
    Always code as if the person who ends up maintaining your code is a violent psychopath who knows where you live.
    jydeng
        25
    jydeng  
       2015-11-12 17:57:38 +08:00
    能少写一行就少写一行
    msg7086
        26
    msg7086  
       2015-11-13 04:33:16 +08:00
    听说,穿女装写代码 BUG 少。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3142 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 12:37 · PVG 20:37 · LAX 05:37 · JFK 08:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.