- 博客(4)
- 资源 (6)
- 收藏
- 关注
原创 Design Patterns
Observer Pattern: a one-to-many relationship between a set of objects. When the state of one object changes, all of its dependents are notified.Design Principle: Strive for loosely coupled desi
2012-02-28 21:04:25 517
原创 Design Patterns
Chapter 1: Welcome to Design PatternsStrategy pattern: defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy lets the algorithm vary independently from clie
2012-02-24 21:13:05 261
原创 Effective Java
Item 2: Enforce the singleton property with a private constructorItem 3: Enforce noninstantiability with a private constructorItem 4: Avoid creating duplicate objectsItem 5: Eliminate obsolete
2012-02-17 00:48:21 262
原创 Effective Java
想记住自己的学习的点滴,亲。Creating and Destroying ObjectsItem 1: static factory methods1,One advantage of static factory methods is that, unlike constructors, they have names. 代码的可读性。2,对于相同参数列表的构造函
2012-02-16 01:34:20 253
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人