Clean code

Click for: original source

Clean code can be read and enhanced by a developer other than its original author. By Moises Gamio. This kind of practice Robert C Martin introduced it. If you want to be a better programmer, you must follow these recommendations. The article then explains:

  • Clean code has intention-revealing names
  • Clean code tells a story
  • Functions should do one thing
  • Don’t comment bad code, rewrite it
  • Choose simplicity over complexity
  • Avoid hard coding
  • Name your variables according to the context
  • Clean Code separates levels of detail
  • Clean Code needs a few comments
  • Clean Code has small methods

Video and code examples for each principle are attached, too. Nice one!

[Read More]

Tags code-refactoring app-development programming performance