tailieunhanh - head first design patterns phần 1
để dự án này sẽ là khác nhau từ quản lý một dự án duy nhất trang web collocated. Trong thời đại của nền kinh tế toàn cầu, nhiều người trong chúng ta thấy chính mình trong một tình huống tương tự có lẽ vì một lý do khác nhau. Tỷ lệ lao động được ở quốc gia Đông Âu, Brazil, Ấn Độ, và Trung Quốc, và có thể tiết kiệm chi phí phát triển thuê ngoài cho các | table of contents Table of Contents summary xxv Intro 1 Welcome to Design Patterns an introduction 1 2 Keeping your Objects in the know the Observer Pattern 37 3 Decorating Objects the Decorator Pattern 79 4 Baking with OO goodness the Factory Pattern 109 5 One of a Kind Objects the Singleton Pattern 169 6 Encapsulating Invocation the Command Pattern 191 7 Being Adaptive the Adapter and Facade Patterns 235 8 Encapsulating Algorithms theTemplate Method Pattern 275 9 Well-managed Collections the Iterator and Composite Patterns 315 10 The State of Things the State Pattern 385 11 Controlling Object Access the Proxy Pattern 429 12 Patterns of Patterns Compound Patterns 499 13 Patterns in the Real World Better Living with Patterns 577 14 Appendix Leftover Patterns 611 Table of Contents the real thing Intro Your brain on Design Patterns. Here you are trying to learn something while here your brain is doing you a favor by making sure the learning doesn t stick. Your brain s thinking Better leave room for more important things like which wild animals to avoid and whether naked snowboarding is a bad idea. So how do you trick your brain into thinking that your life depends on knowing Design Patterns Who is this book for xxvi We know what your brain is thinking xxvii Metacognition xxix Bend your brain into submission xxxi Technical reviewers xxxiv Acknowledgements xxxv x intro to Design Patterns 1 Welcome to Design Patterns Someone has already solved your problems. In this chapter you ll learn why and how you can exploit the wisdom and lessons learned by other developers who ve been down the same design problem road and survived the trip. Before we re done we ll look at the use and benefits of design patterns look at some key OO design principles and walk through an example of how one pattern works. The best way to use patterns is to load your brain with them and then recognize places in your designs and existing applications where you can apply them. Instead of code reuse .
đang nạp các trang xem trước