Single responsibility principlean object should have only a single responsibility.
Open/closed principlesoftware entities … should be open forextension, but closed for modification
Likov substitution principleobjects in a program should be replaceable withinstances of their subtypes without altering thecorrectness of that program
Interface segregation principle many client specificinterfaces are better than one general purpose interface
Dependency inversion principle one should “Depend upon Abstractions. Do not dependupon concretions.” Dependency injection is one method of following this principle.
オブジェクト健康体操● One level of indentation per method● Dont use the ELSE keyword● Wrap all primitives and Strings● First class collections● One dot per line● Dont abbreviate● Keep all entities small● No classes with more than two instance variables● No getters/setters/properties
Pair Programming Ping Pong Pattern● A writes a new test and sees that it fails.● B implements the code needed to pass the test.● B writes the next test and sees that it fails.● A implements the code needed to pass the test.
提供Global Day of Code Retreat http://goo.gl/Cru1t