课程: Programming Foundations: Design Patterns
今天就学习课程吧!
今天就开通帐号,24,100 门业界名师课程任您挑!
Applying patterns
- After a long discussion of design patterns, it's easy to see design patterns can be powerful. And it's easy to see all kinds of ways you can use design patterns in your current and future designs. Developers love to create beautiful architectures that are ready to take on change from any direction. But is that how we should think about patterns? Don't think of patterns as a magic bullet. When you see the need for one, you'll sleep well knowing many developers have been there before and solved the problem using similar techniques. However, patterns aren't the solution to every problem. - So how do you know which patterns to use? If you've got a good knowledge of patterns, you may know of a pattern that is a good match. Otherwise, review patterns that look like they might solve the problem. Once you've found a pattern that appears to be a good match, make sure it has a set of consequences you can live with and study its…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。