Monday, 21 November 2016

程序员修炼之道读书笔记 52




Sign Your Work 为你的作品签名
We want to see pride of ownership. "I wrote this, and I stand behind my work." Your signature should come to be recognized as an indicator of quality.
我们希望看到人人都为自己的作品而骄傲的情况。 “这是我写的,我为自己的工作负责”。你的签名应该成为质量的标示。
全书完。

Sunday, 20 November 2016

程序员修炼之道读书笔记 51




a document's presentation should be independent of its content.
文档的呈现方式(无论是网页还是slides或者帮助文档)应该和内容独立。严禁复制拷贝,因为很容易过时,修改麻烦,应该只有一个data model 多个view 自动生成。当model 变化是,自动更新view.

Saturday, 19 November 2016

程序员修炼之道读书笔记 50



The model is the source code: one view of the model can be compiled; other views are meant to be printed out or viewed on the Web. Our goal is always to work on the model—whether the model is the code itself or some other document—and have all views updated automatically.
代码就是MVC 模型中的M (model),视图(view)可以通过编译产生出来,其他视图可以通过打印或者网页浏览到。我们的目标就是所有的工作都集中在模型上,无论模型是代码本身还是其他文档—所有的视图(view)都应当自动被生成出来。 -à 何其对哉!如若如此,每个项目程序员开发都将轻松许多!