- 博客(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 531
原创 Design Patterns
Chapter 1: Welcome to Design Patterns Strategy 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 271
原创 Effective Java
Item 2: Enforce the singleton property with a private constructor Item 3: Enforce noninstantiability with a private constructor Item 4: Avoid creating duplicate objects Item 5: Eliminate obsolete
2012-02-17 00:48:21 273
原创 Effective Java
想记住自己的学习的点滴,亲。 Creating and Destroying Objects Item 1: static factory methods 1,One advantage of static factory methods is that, unlike constructors, they have names. 代码的可读性。 2,对于相同参数列表的构造函
2012-02-16 01:34:20 267
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人