DEV Community

Discussion on: What is your advice on writing "clean code" ?

Collapse
 
appurist profile image
Paul / Appurist

If the goal is clean code, remember that there is no such thing as "later".

Make it work, and then commit that working code first so you have it, but then immediately follow that with a cleanup commit (so you can compare or revert if the cleanup breaks something).