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

How to use patterns

Although some of the previous criticisms are quite valid, they are based on how patterns are misused. Here is some advice that can help you understand how best to use design patterns:

  • Patterns are best used to communicate that you are following a well-understood design approach
  • Don't implement a pattern if your language supports a direct solution
  • Don't try to retrofit everything in terms of patterns
  • Use a pattern only if it is the most elegant solution in your context
  • Don't be afraid to create new patterns
主站蜘蛛池模板: 灌阳县| 保德县| 博客| 南陵县| 厦门市| 霍林郭勒市| 永新县| 启东市| 金平| 潞城市| 车险| 泽普县| 靖州| 黎平县| 滦平县| 新野县| 神木县| 张家港市| 原平市| 老河口市| 城固县| 卓资县| 醴陵市| 龙州县| 靖安县| 万载县| 汤阴县| 滨海县| 永安市| 漠河县| 灵宝市| 永泰县| 禹城市| 枣庄市| 常德市| 北安市| 措美县| 墨玉县| 溧阳市| 邯郸县| 宁强县|