摘要: 1.CSS Block vs Inline CSS Display Styleshttp://www.webdesignfromscratch.com/html-css/css-block-and-inline/2.Containing Floatshttp://www.complexspiral.com/publications/containing-floats/http://css-tricks.com/all-about-floats/3.CSS Positioninghttp://www.vanseodesign.com/css/css-positioning/4.CSS Organ 阅读全文
posted @ 2012-05-05 19:32 qiangzhu 阅读(226) 评论(0) 推荐(0) 编辑
摘要: Sometimes you want to make a good impression with everyone and seem like you're interested in the rest of the group. Especially when you've just met some new people, it's usually better to lean towards the outgoing end of the scale. Getting that "quiet" label often works agains 阅读全文
posted @ 2012-05-05 19:29 qiangzhu 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 1.Refactoringhttp://sourcemaking.com/refactoring2.Inversion of Control Containers and the Dependency Injection patternhttp://martinfowler.com/articles/injection.html3.ConCurrentHashMaphttp://www.ibm.com/developerworks/java/library/j-jtp08223/4..Continuous Integrationhttp://martinfowler.com/articles/ 阅读全文
posted @ 2012-05-05 19:28 qiangzhu 阅读(137) 评论(0) 推荐(0) 编辑
摘要: The Factory Method Pattern defines an interface for creating an object, but lets subclassed decide which classto instantiate. Factory Method lets a class defer instantiation to subclasses.Dependency Inversion PrincipleDepend upon abstractions. Do not depenfd upon concrete classesGuidelies to follow 阅读全文
posted @ 2012-05-05 17:47 qiangzhu 阅读(515) 评论(0) 推荐(0) 编辑
摘要: The State Pattern allows an object to alter its behavior when its internal state changes. Theobject will appear to change its class.State Pattern Diagram:State Pattern VS. Strategy Patternwith the state pattern, we have a set of behavior encapsulated in state objects; at any time thecontextis delega 阅读全文
posted @ 2012-05-04 11:25 qiangzhu 阅读(692) 评论(0) 推荐(0) 编辑
摘要: The Composite Pattern allows you to compose objects into tree structures to represent part-wholehierarchies.Composite lets clients treat individual objects and compositions of objects uniformly.The Composite Pattern allows us to build structures of objects in the form of trees that contain bothcompo 阅读全文
posted @ 2012-05-03 20:48 qiangzhu 阅读(464) 评论(0) 推荐(0) 编辑
摘要: The Iterator Pattern provides a way to access the elements of an aggregate object sequentially withoutexposing its underlying representation 阅读全文
posted @ 2012-04-27 21:47 qiangzhu 阅读(485) 评论(0) 推荐(0) 编辑
摘要: The Template Method Pattern defines the skeleton of algorithm in a method, define some steps tosubclasses. Template Method lets subclass redefine certain steps of an algorithm without changingthe algorithm's structrue.Class diagram:abstract class AbstractClass{ final void templateMethod(){ primi 阅读全文
posted @ 2012-04-27 21:19 qiangzhu 阅读(474) 评论(0) 推荐(0) 编辑
摘要: 1.FindBugs -http://findbugs.cs.umd.edu/eclipse/eclipse plugin installation -http://findbugs.cs.umd.edu/eclipse2.PMD -http://pmd.sourceforge.net/eclipse/eclipse plugininstallation -http://pmd.sourceforge.net/eclipse3.CheckStyle -eclipse plugin installation -http://sevntu-checkstyle.github.com/sevntu. 阅读全文
posted @ 2012-04-26 15:15 qiangzhu 阅读(281) 评论(0) 推荐(0) 编辑
摘要: Design Principle(Open-Closed Principle)Classes should be open for extension, but closed for modification.The Decorator Pattern attaches additional responsibilitis to an object dynamically.Decorator provide a flexible alternative to subclassing for extending functionality.public abstract class Bevera 阅读全文
posted @ 2012-04-25 14:33 qiangzhu 阅读(444) 评论(0) 推荐(0) 编辑