V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
nicksite
V2EX  ›  程序员

程序员如何把自己的代码写得规范?

  •  
  •   nicksite ·
    henryluki · 2014-12-30 22:53:40 +08:00 · 2660 次点击
    这是一个创建于 3409 天前的主题,其中的信息可能已经有所发展或是发生改变。
    “规范”在这里指漂亮,优雅,易读等等。。是不是应该多看看github上面大牛的开源代码,并以此作为参考矫正自己写代码的习惯?
    wilsoncao
        1
    wilsoncao  
       2014-12-30 23:27:44 +08:00
    google coding style?
    gisonrg
        2
    gisonrg  
       2014-12-31 00:17:07 +08:00 via iPhone
    首先要学好英语,不然既看不懂也不会写documentation
    要遵守coding style
    可以参考些这方面的书,比如《Clean code》
    jamlee
        3
    jamlee  
       2014-12-31 08:08:45 +08:00
    强迫症在这里 没办法
    captainblue
        4
    captainblue  
       2014-12-31 12:55:59 +08:00
    github要小心啊,很多码农很不规范
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1158 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 17:47 · PVG 01:47 · LAX 10:47 · JFK 13:47
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.