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

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

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