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)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 嵊泗县| 大港区| 甘谷县| 保靖县| 随州市| 曲阜市| 阜新市| 安宁市| 冷水江市| 南和县| 磴口县| 阳春市| 潞西市| 海原县| 大化| 南开区| 达拉特旗| 黔西| 宝鸡市| 白水县| 富源县| 梓潼县| 武胜县| 新乡市| 嘉鱼县| 阜阳市| 怀来县| 凤庆县| 上蔡县| 左权县| 峨眉山市| 竹山县| 霸州市| 电白县| 河曲县| 漳平市| 绵阳市| 比如县| 三河市| 商都县| 松桃|