Getting Real: Code Speaks

来源:百度文库 编辑:神马文学网 时间:2024/04/29 22:24:59
Code Speaks
Listen when your code pushes back
Listen to your code. It will offer suggestions. It will push back. It will tell you where the pitfalls reside. It will suggest new ways to do things. It will help you stick to a model of less software.
Is a new feature requiring weeks of time and thousands of lines of code? That‘s your code telling you there‘s probably a better way. Is there a simple way to code something in one hour instead of a complicated way that will take ten hours? Again, that‘s your code guiding you. Listen.
Your code can guide you to fixes that are cheap and light. Pay attention when an easy path emerges. Sure, the feature that‘s easy to make might not be exactly the same as the feature you originally had in mind but so what? If it works well enough and gives you more time to work on something else, it‘s a keeper.
Listen up
Don‘t worry about design, if you listen to your code a good design will appear...Listen to the technical people. If they are complaining about the difficulty of making changes, then take such complaints seriously and give them time to fix things.
—Martin Fowler, Chief Scientist,ThoughtWorks (fromIs Design Dead?)
If Programmers Got Paid To Remove Code...
If programmers got paid to remove code from sofware instead of writing new code, software would be a whole lot better.
—Nicholas Negroponte, Professor of Media Technology at MIT
(fromAnd, the rest of the (AIGA Conference) story)
----------------------------------------------------------------------------------------------------
代码说话
倾听当代码推动时
倾听你的代码。它会提建议。 它要推动你。 它将告诉你缺陷在哪里。 它将建议做事的新途径。它将帮助你坚持精简代码的模式。
有一个新的功能需要花费好几个星期和写几千行代码来开发么? 这是你的代码在告诉你兴许有个更好的办法。 是否有一个简单的途径能在1小时之内编码搞定某个功能 ,而无需采用一个复杂的方法而花费10个小时? 再一次,这是代码在指引。注意倾听。
代码可以引导你找到那些又便宜又轻便的修正方法。 注意,当一个容易的途径出现时。 当然, 那个容易实现的功能也许和你当初想的不完全一样,但那又如何? 如果它工作的很好 并且使你 有更多的时间去做其它事,这是一个守门员。
仔细倾听
不要担心设计,如果你仔细听你的代码,一个好的设计就会浮现... 倾听技术人员的想法。 如果他们抱怨很难进行改变,那么你要重视这些抱怨,并且给他们时间去搞定。
—  马丁. 福勒 ,ThoughtWorks 首席科学家(摘自:设计完了吗?
如果付钱给程序员去砍掉代码...
如果付钱给程序员去从软件中砍掉代码,而不是编写新代码。软件就会好得多。
—尼古拉斯.那个如珀特 , MIT媒体技术教授 (摘自: (AIGA会议)故事的剩余部分