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

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


          網站導航:
           
          主站蜘蛛池模板: 安达市| 望奎县| 睢宁县| 资源县| 徐州市| 宣威市| 垦利县| 雷山县| 自贡市| 山西省| 诸暨市| 易门县| 家居| 五台县| 正安县| 鹤庆县| 库尔勒市| 宁乡县| 大理市| 呈贡县| 万宁市| 荣成市| 宜春市| 卢湾区| 宁武县| 永仁县| 罗江县| 松溪县| 出国| 浠水县| 东乡| 长葛市| 固安县| 江永县| 芦溪县| 类乌齐县| 漳平市| 南岸区| 志丹县| 台安县| 湛江市|