Programming principles cheat-shit

Cohesion

In computer programmingcohesion refers to the degree to which the elements inside a module belong together.

Modules with high cohesion tend to be preferable because high cohesion is associated with several desirable traits of software including robustness, reliability, reusability, and understandability. In contrast, low cohesion is associated with undesirable traits such as being difficult to maintain, test, reuse, or even understand.


https://www.planetgeek.ch/2014/11/18/clean-code-cheat-sheet-v-2-4/

  • Don’t repeat yourself
  • keep it simple stupid
  • single responsibility pattern
  • separation of concerns
  • interface segregation principle
  • dependency injection principle
  • Liskov substitution principle
  • open close principle
  • law of Demeter
  • principle of least astonishment
  • you ain’t gonna need it
  • use a version control system
  • issue tracking
  • continuous integration
  • automated tests
  • mocking
  • code coverage
  • test first
  • reviews
  • and some more