你必須知道的10大編程格言

字號(hào):


    我讀了Kevin Pang 的一篇可能非常老但非常好的有趣文章:每個(gè)程序員都該知道的10大編程格言。
    Kevin給了我們10條按他的觀點(diǎn)的每個(gè)程序員必須知道的編程格言。
    可以看出,這都是不錯(cuò)的格言,而下面是我自己最喜歡的編程格言。
    保持簡單直白(Keep It Simple Stupid)
    不要自我復(fù)制(Don’t Repeat Yourself)
    能干的人解決問題。智慧的人繞開問題(A clever person solves a problem. A wise person avoids it) – Einstein
    沉默會(huì)被理解為贊同(Silence is construed as approval)( Picked from Kevin blog )
    沒有火就不會(huì)有煙(There is no smoke without fire)
    先想好,后編程(Think first, Program later)
    永遠(yuǎn)不要假設(shè)計(jì)算機(jī)為你假設(shè)了任何前提(Never assume the computer assumes anything)
    你有沒有什么喜歡的編程格言?都是些什么?