3 Effortless Ways To Keep Your Code Clean

Keeping code clean does not need to be a colossal attempt. Simply do a tiny bit at once, and your code will be sparkling in the blink of an eye.

  1. Consistency in naming variable

    From the database, to the client interface. On the off chance that they are the same thing, don’t switch up the naming. It will make it such a great amount of less demanding for both you and other individuals to take after the code.

  2. Erase commented code

    On the off chance that the solution is working without the commented code, then you needn’t bother with it. Possibly it’s another person’s code. Be that as it may, in the event that it’s been there since you’ve begun on this code base, erase it.

  3. Try not to be smart

    Short code is the worst code, truly. Also, nobody else is going to congratulate you for it.

Note: Point 3 is not for competitive programming challenges because in competitive programming you have to code as short as possible and make it less memory consuming code.

Clean code is not only for other individuals, it is additionally for you. Take pride in your work.

Ebook Download
View all
Learn
View all