首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 其他相关 >

We Should Care About OCP

2012-10-30 
We Should Care About OCP……because closing our classes allows us to focus on new functionality. It m

We Should Care About OCP…
…because closing our classes allows us to focus on new functionality. It makes us more productive.

…because more productivity means less waste. Less waste means less cost. Less cost means more money. More money is the goal.

…because when we create extension points in our classes we provide flexibility for the consumers of our software.

…because when we create extension points in our classes for our own needs, we create extension points the future needs of future customers without succumbing to YAGNI.

…because it lets us extend the behavior of components outside of our control. Even if we do control dependencies, it’s a shorter feedback cycle to add novel functionality when said dependencies are open to extension. Shorter feedback cycles equate to more productivity and, well, you know.

热点排行