关于这种方法(常被称为“基本类型偏执”——http://sourcemaking.com/refactoring/primitive-obsession)我看过写得最好的一篇,是杰夫·贝在《Thoughtworks 文集》(http://www.amazon.co.uk/The-ThoughtWorks-Anthology-Technolog...)里的一篇短文《Object Calisthenics》:“一个单纯的 int 不过是个标量,因此没有任何语义。当一个方法拿 int 作为参数时,方法名就必须得去承担……
The best write up I ever heard for this approach (often called "primitive obsession" - http://sourcemaking.com/refactoring/primitive-obsession) was in Object Calisthenics, an essay by Jeff Bay in The Thoughtworks Anthology (http://www.amazon.co.uk/The-ThoughtWorks-Anthology-Technolog...): "an int on its own is just a scalar, so it has no meaning. When a method takes an int as a parameter, the method name needs to do…
…teaching but they have help me to see the world in a different light: The Mystery Method - Erik Von Markovik[Social Engineering at its best] Rich Dad Poor Dad: Guide to Investing - Robert Kiyoski The Thoughtworks Anthology: Essays on Software Technology and Innovation (Pragmatic Programmers) Bible - First class book in teaching how to behave towards others, especially proverbs. Tao Te Ching - For this two verse you should…
关于这种方法(常被称为“基本类型偏执”——http://sourcemaking.com/refactoring/primitive-obsession)我看过写得最好的一篇,是杰夫·贝在《Thoughtworks 文集》(http://www.amazon.co.uk/The-ThoughtWorks-Anthology-Technolog...)里的一篇短文《Object Calisthenics》:“一个单纯的 int 不过是个标量,因此没有任何语义。当一个方法拿 int 作为参数时,方法名就必须得去承担……
The best write up I ever heard for this approach (often called "primitive obsession" - http://sourcemaking.com/refactoring/primitive-obsession) was in Object Calisthenics, an essay by Jeff Bay in The Thoughtworks Anthology (http://www.amazon.co.uk/The-ThoughtWorks-Anthology-Technolog...): "an int on its own is just a scalar, so it has no meaning. When a method takes an int as a parameter, the method name needs to do…
……讲授方式,但它们确实帮我换了个角度看世界:《谜男方法》——埃里克·冯·马尔科维奇[社会工程学的巅峰之作] 《富爸爸穷爸爸:投资指南》——罗伯特·清崎 《Thoughtworks 文集:软件技术与创新散论》(Pragmatic Programmers 出品) 《圣经》——教你待人接物的一流好书,尤其是箴言篇。《道德经》——光是这两句就值得你……
…teaching but they have help me to see the world in a different light: The Mystery Method - Erik Von Markovik[Social Engineering at its best] Rich Dad Poor Dad: Guide to Investing - Robert Kiyoski The Thoughtworks Anthology: Essays on Software Technology and Innovation (Pragmatic Programmers) Bible - First class book in teaching how to behave towards others, especially proverbs. Tao Te Ching - For this two verse you should…