NOTES - Conferences notes about "clean code"

Conferences notes about "clean code"

After watching many conferences about clean code on Youtube. I share with you what I have learned.

General rules about clean code:

  • do not abbrieviate
  • return early
  • do not use return
  • Keep classes and methods small
  • features separeted in methods
  • defensive controls exit early
  • one ident level

To summarize clean code should be:

  • maintainable (understandable by human)
  • flexible (open to new features and improvements)
  • tested
  • easy too refactor
  • Use setters and getters in the right context, for example: downloadPage() is not the same as getPage()

No thoughts on “NOTES - Conferences notes about "clean code"”

Alexandre ELISÉ

Développeur #PHP spécialiste #Joomla! Si mon travail vous a plu n'hésitez pas à laisser votre avis sur Google Reviews. Si mes articles vous ont été utiles vous pouvez me le dire avec Paypal.me ça m'encourage à continuer et me permet de savoir que vous apprecier le contenu. Sinon vous pouvez toujours m'envoyer un email pour me faire part de vos suggestions.

Get the newsletter

Super Joomlers! Get the most out of Joomla!
We hate spam as much as you do and we will not send you email without your prior consent. You can unsubscribe / resubscribe any time you want.