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 閱讀(95) 評論(0)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 金塔县| 霍邱县| 竹山县| 瓮安县| 巴南区| 临海市| 平乡县| 富宁县| 资溪县| 托里县| 高陵县| 星座| 木兰县| 常州市| 上犹县| 凤阳县| 通辽市| 栾城县| 塔城市| 宣化县| 伽师县| 图木舒克市| 合肥市| 沁水县| 景泰县| 西畴县| 黄山市| 辛集市| 肇庆市| 双鸭山市| 奇台县| 弋阳县| 旬邑县| 辽宁省| 湛江市| 洛浦县| 东海县| 东阳市| 明溪县| 双牌县| 大竹县|