程序语言是一种科学,程序编写却是一种艺术。同样的问题,有些程序员写了几十行代码,有些却要写几百行代码。几十行的比较好吗?可是,可能几百行的跑得快,几十行的跑得慢!几百行比较好吗?可能,跑得快却问题多,运行结果错误,跑得慢的,可能运行结果正确!同样的问题,有些程序编写员花了两个月写了程序,运行两个多小时,运行结果:错误。有些程序编写员花了两个小时写了程序,运行六、七秒,运行结果:正确。(这是一个活生生的例子哦!)要如何才能制造出优秀的软件呢?
Programming Language is a Science, Programming itself is an art. For the same issue, some programmers write tens lines of codoes, but some programmers need to write hundreds of codes. Is former better? But, it might be the latter's code execute faster, while the former's code execute slower. Is latter better? May be, former, has bugs or generates wrong result, and the latter alwawys generates correct result! Same issue, some programmers spend 2 months to write a code, execute for more than 2 hours, and the result is wrong. Some programmers spend 2 hours to write the code, execute for less than 10 seconds, and the result is correct! (This is a real life example!) So, how to produce great software?
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment