逃出面向类编程的魔爪,重新思考对象
This is a refreshing approach to OOP. The Domain Context Interaction pattern allowed us to restore interesting properties of real OOP approach yet not sacrificing modularity and separation of concerns. This simple view of “an object in several contexts” helps quite much in thinking explicitly about and understanding context boundaries. Note that an object(instance) is not defined by a single class but each instance curries the necessary context. This is essential to OOP which is NOT COP (for Class Oriented Programming ;) )
本文介绍了一种名为域上下文交互(DCI)的设计模式,该模式有助于恢复面向对象编程(OOP)的一些有趣特性,同时保持模块化和关注点分离。通过将对象置于不同的上下文中考虑,可以更明确地理解和定义对象的功能界限。
8万+

被折叠的 条评论
为什么被折叠?



