如何写出无法维护的代码
刚买了一本书《重构-改善既有代码的设计》还没看完,碰巧又看到一篇如何搞烂代码的文章。
这篇文章的原文在这里(http://mindprod.com/jgloss/unmain.html)。
If builders built buildings the way programmers write programs, then the first
woodpecker that came along would destroy civilization.
(如果建筑师盖房子就像程序员写程序一样,那么,第一只到来的啄木鸟就能毁掉我们的文明)
~ Gerald Weinberg (born: 1933-10-27 age: 77) Weinberg’s Second Law
相当有趣,你可以把他当反面教材,也可以把他当混淆方法,或者你只是显摆自己的代码很高深…
clarkok 12:35 下午 on 7月 30, 2011 固定链接 |
— —!牛。。。