Do not default to object-oriented or message-passing

Do not default to object-oriented or message-passing Object-oriented programming is good for some problems. Excellent even. But OOP shouldn’t be used by default. Using OOP by default leads to inheriting (🥁) unnecessary complexity. Use pure functions by default, mutating closures when you need the extra power, and then OOP when you need even more. The same applies to message passing. Decoupling via message passing is amazing for some problems. But I don’t think it should be the default. Both strong coupling

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论