posts - 37,comments - 7,trackbacks - 0
          1. can sometimes add a lot of small classes to a design and this occasionally results in a design that's less than straightforward for others to understand.
          2. got typing problems: people sometimes take a piece of client code that relies on specific types and introduce decorators without thinking through everything. Now, one great thing about this pattern is that you can usually insert decorators transparently and the client never has to know it's dealing with a decorator:
          3. introducing decorators can increase the complexity of the code needed to instantiate the component.Once you've got decorators, you've got to not only instantiate the component, but also wrap it with who knows how many decorators.
          posted on 2005-08-11 09:35 Dave 閱讀(96) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 来宾市| 略阳县| 双城市| 江川县| 加查县| 乐平市| 中西区| 双峰县| 运城市| 临颍县| 泸定县| 清涧县| 根河市| 昌乐县| 含山县| 革吉县| 宣威市| 尼木县| 凤山县| 雷州市| 淮南市| 乌鲁木齐县| 常宁市| 汕尾市| 固始县| 高邮市| 泾阳县| 恩平市| 绥滨县| 攀枝花市| 永善县| 六安市| 谢通门县| 即墨市| 大兴区| 太和县| 红安县| 班玛县| 德州市| 南召县| 会泽县|