3
Mb3leb
6y

Sometimes i feel really messy in my code and unorganized.
after a while i regret what i did and in order to fix this mess i re write the class all over again or i end in an endless errors which is time consuming.
So what's the best way to write a clean code in your opinion other than commenting and identation

Comments
  • 2
    Meaningful names for variables and functions. Only comment if the code itself is so convoluted that it can't be easily read through. Vertical space between logical blocks within the same function. If your function can't fit in a single screen, consider breaking pieces of it out into smaller functions.

    Read Clean Coder by Uncle Bob. It's my coding bible.
Add Comment