…will convey to you that this style is wrong, classes and objects are " too expensive", primitive values are fine, and that this is too verbose.* I learned about this style from Yegor Bugayenko's Book "Elegant Objects", go check it out. https://www.elegantobjects.org/ *) Yes, Java is verbose; not trying to defend that. I am very happy about keyword arguments in Python, for example. But, as soon as you have classes,…
My highlight was Yegor Bugayenko's "Elegant Objects". Volume 2 was released this year (however I found the first Volume (2016) much better). Yegor describes what went wrong with object-oriented programming. Whether you are stuck with Java or broaden your…
…I found them more helpful than the Red Dragon Book. The latter is good, but as a beginner I felt a little lost and Terence Parr's book was much more helpful. Practice & Karate ================= - "Elegant Objects" by Yegor Bugayenko - "Working Effectively With Legacy Code" - Michael Feathers - "Growing OO Software, Guided by tests" - Pryce, Freeman - "Test Driven Development" by Kent Beck And, this last one…
I drank the Elegant Objects[1] koolaid, and recommend the two books (Elegant Objects vol 1 and 2) whole-heartedly to anyone interested in OOP. Pony lang lets you write 95% of the kind of OOP described in the books idiomatically,…
To add another perspective to the discussion, Yegor Bugayenko (author of the Elegant Objects books) says that splitting data and data manipulating objects are "pure evil" because when you do it that way it is going against OOP as you will get functions and data to operate on. Which is exactly…
……会告诉你这种风格是错的,类和对象“开销太大”,用原生类型就挺好,而且这样写太啰嗦了。* 我是从叶戈尔·布加延科(Yegor Bugayenko)的《优雅的对象》(Elegant Objects)里学到这种风格的,推荐去看看。https://www.elegantobjects.org/ *)是的,Java 确实啰嗦,我没想替它辩护。比如在 Python 里能用关键字参数我就挺开心的。但是,只要你用了类,……
…will convey to you that this style is wrong, classes and objects are " too expensive", primitive values are fine, and that this is too verbose.* I learned about this style from Yegor Bugayenko's Book "Elegant Objects", go check it out. https://www.elegantobjects.org/ *) Yes, Java is verbose; not trying to defend that. I am very happy about keyword arguments in Python, for example. But, as soon as you have classes,…
最让我眼前一亮的是叶戈尔·布加延科的《优雅的对象》。第二卷今年刚出(不过我觉得2016年出的第一卷好得多)。叶戈尔讲透了面向对象编程究竟是哪儿走偏了。无论你是被困在 Java 栈里,还是想拓宽自己的……
My highlight was Yegor Bugayenko's "Elegant Objects". Volume 2 was released this year (however I found the first Volume (2016) much better). Yegor describes what went wrong with object-oriented programming. Whether you are stuck with Java or broaden your…
……我觉得它们比红龙书更有帮助。后者确实不错,但作为新手我读起来有点摸不着头脑,而特伦斯·帕尔(Terence Parr)的书实用多了。实践与基本功 ================= - 叶戈尔·布加延科的《优雅的对象》 - 迈克尔·费瑟斯(Michael Feathers)的《修改代码的艺术》(Working Effectively With Legacy Code) - 普赖斯(Pryce)、弗里曼(Freeman)的《测试驱动的面向对象软件开发》(Growing OO Software, Guided by tests) - 肯特·贝克(Kent Beck)的《测试驱动开发》(Test Driven Development) 还有最后这本……
…I found them more helpful than the Red Dragon Book. The latter is good, but as a beginner I felt a little lost and Terence Parr's book was much more helpful. Practice & Karate ================= - "Elegant Objects" by Yegor Bugayenko - "Working Effectively With Legacy Code" - Michael Feathers - "Growing OO Software, Guided by tests" - Pryce, Freeman - "Test Driven Development" by Kent Beck And, this last one…
推荐阅读:《Idea Flow》、《Enduring CSS》、《Beautiful Java》、《优雅的对象》(Elegant Objects)、《Apache Solr 实战方法》、《GSON》(LeanPub 出品)
Recommended: Idea Flow, Enduring CSS, Beautiful Java, Elegant Objects, Apache Solr a practical approach, GSON (LeanPub)
我喝了《Elegant Objects》[1]的迷魂汤,并全心全意地把这两本书(《Elegant Objects》第 1、2 卷)推荐给任何对 OOP 感兴趣的人。Pony 语言让你能以地道的方式写出书中描述的那种 OOP 的 95%,……
I drank the Elegant Objects[1] koolaid, and recommend the two books (Elegant Objects vol 1 and 2) whole-heartedly to anyone interested in OOP. Pony lang lets you write 95% of the kind of OOP described in the books idiomatically,…
为讨论提供另一个视角吧:叶戈尔·布加延科(《优雅的对象》系列作者)说把数据和操作数据的对象分开是“纯粹的恶”,因为一旦这样写就违背了 OOP,你最终得到的不过是一堆函数和被操作的数据而已。这恰恰就是……
To add another perspective to the discussion, Yegor Bugayenko (author of the Elegant Objects books) says that splitting data and data manipulating objects are "pure evil" because when you do it that way it is going against OOP as you will get functions and data to operate on. Which is exactly…