在TSS最近关于Evans DDD讨论中有老外关于OO争论,转贴如下: http://www.theserverside.com/news/thread.tss?thread_id=42602
A. I have spent more than half of my career fixing other people's code that use this same idea. Good OO makes code robust and maintainable. If you don't understand how to use OO, please get out of the business. 如果你不懂得使用OO,你应该退休了。
B. Java monkeys who think OO is a silver bullet should be getting out of the business or resigning themselves to becoming maintenance blubs. Java狂热分子认为OO是银弹
A.Java is a tool to accomplish OO design, not the other way around. OO can be accomplished with Java, but can also not be accomplished. There are masses of Java developers who think they program OO just because they create classes and encapsulate the state and later expose it through some getter. Their domain logic is scattered beyound belief, etc... Java是实现OO设计的工具,但不是唯一.
A.You're right, OO is a silver bullet when it's real OO and not brain-dead Java OO.
|
|