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

I’m Datta

Welcome to BeingCraftsman — where software architecture is treated as a long-term responsibility. I’m a Software Architect and Cloud Lead based in Pune, India, with over a decade of experience designing scalable systems, guiding teams, and making practical engineering decisions. This space is about clarity in architecture, reliability in systems, and leadership that helps teams build software that lasts.

Let’s connect

Linkedin