Keeping code clean does not have to be a huge endeavor. Just do a little bit at a time, and your code will be shiny in no time.
- Consistency in naming variable. From the database, to the middle layer, to the user interface. If they are the same thing, do not change up the naming. It will make it so much easier for both you and other people to follow the code.
- Delete commented out code. If the build is working without the commented code, then you don’t need it. Maybe it’s someone else’s code. But if it’s been there since you’ve started on this code base, delete it.
- Do not be clever. Short code is NOT better code. Really. And no one else is going to pat you on the back for it.
Clean code is not just for other people, it also for you. Take pride in your work.