官术网_书友最值得收藏!

Criticism of patterns

Despite their near universal usage, patterns have their share of criticism too. The most common arguments against them are as follows:

  • Patterns compensate for the missing language features: Peter Norvig found that 16 of the 23 patterns in design patterns were invisible or simpler in dynamic languages such as Lisp or Python. For instance, as functions are already objects in Python, it would be unnecessary to create separate classes to implement strategy patterns.
  • Patterns repeat best practices: Many patterns are essentially formalizations of best practices, such as separation of concerns, and could seem redundant.
  • Patterns can lead to over-engineering: Implementing the pattern might be less efficient and excessive compared to a simpler solution.
主站蜘蛛池模板: 汝阳县| 漠河县| 枝江市| 衡南县| 佛坪县| 特克斯县| 景东| 霍林郭勒市| 来安县| 闽侯县| 龙江县| 侯马市| 碌曲县| 海口市| 邵阳县| 司法| 通山县| 当涂县| 宝兴县| 昆山市| 灵寿县| 当阳市| 皮山县| 门源| 泰安市| 高台县| 溧水县| 泸西县| 松阳县| 长武县| 洞头县| 托里县| 隆化县| 灌云县| 延长县| 乐亭县| 娱乐| 义乌市| 隆回县| 七台河市| 阜康市|