• 请不要在回答技术问题时复制粘贴 AI 生成的内容
nicksite
V2EX  ›  程序员

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

  •  
  •   nicksite ·
    henryluki · Dec 30, 2014 · 3512 views
    This topic created in 4167 days ago, the information mentioned may be changed or developed.
    “规范”在这里指漂亮,优雅,易读等等。。是不是应该多看看github上面大牛的开源代码,并以此作为参考矫正自己写代码的习惯?
    wilsoncao
        1
    wilsoncao  
       Dec 30, 2014
    google coding style?
    gisonrg
        2
    gisonrg  
       Dec 31, 2014 via iPhone
    首先要学好英语,不然既看不懂也不会写documentation
    要遵守coding style
    可以参考些这方面的书,比如《Clean code》
    jamlee
        3
    jamlee  
       Dec 31, 2014
    强迫症在这里 没办法
    captainblue
        4
    captainblue  
       Dec 31, 2014
    github要小心啊,很多码农很不规范
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   949 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 19:53 · PVG 03:53 · LAX 12:53 · JFK 15:53
    ♥ Do have faith in what you're doing.