DEV Community

Discussion on: 6 Principles For Better, Cleaner Code

Collapse
catalinradoi profile image
CatalinRadoi

I am a huuuge fan of Uncle Bob and I believe that everyone should watch his course or read his book on Clean Code.

Just to give you a taste:

  • Names - always reveal your intent, write honest methods
  • Functions - a function should do one thing and it should do it well. They should be kept small.
  • Law of Demeter - avoid.Train.Wrecks.Like.These()
  • Aim for high Cohesion
  • Unit Tests ........................... I could talk for hours about clean code. Unfortunatelly, not everyone has "time" to listen.
Collapse
tdmoor profile image
Thomas De Moor Author

Great list!

Collapse
attkinsonjakob profile image
Jakob Attkinson

Where can one watch his course?