Skip to content

clean code

Thomas Czogalik edited this page May 7, 2019 · 3 revisions

Clean Code

STUPID

  1. Singleton
  2. Tight Coupling
  3. Untestability
  4. Premature Optimization
  5. Indescriptive Naming
  6. Duplication

SOLID

  1. Single Responsibility Principle
  2. Open/Closed Principle
  3. Liskov Substitution Principle
  4. Interface Segregation Principle
  5. Dependency Inversion Principle
  1. Only One Level Of Indentation Per Method
  2. Don’t Use The ELSE Keyword
  3. Wrap All Primitives And Strings
  4. First Class Collections
  5. One Dot Per Line
  6. Don’t Abbreviate
  7. Keep All Entities Small
  8. No Classes With More Than Two Instance Variables
  9. No Getters/Setters/Properties
Clone this wiki locally