2 ms·
> leaving each function or module you touch a little bit better than you found it. This is some of the best advice you can give a developer I think it's known
by gitgud 7y ago
> leaving each function or module you touch a little bit better than you found it.
This is some of the best advice you can give a developer I think it's known as; The Boy Scouts rule: “Always leave the campground cleaner than you found it”.
Some people I've worked with seem to miss the importance of this...
- Aeolun 7y agoSometimes this has been really hard when the campground was already spotless.
- yen223 7y agoThe problem is that someone's definition of "cleaner" can be wildly different from yours. Sometimes even justifiably so.
- gitgud 7y agoYes people can disagree on what "cleaner" code means. But generally people can agree on badly designed code eg; bad naming, deeply nested logic, bad structure, tight coupling, no separation of concerns...
- JohnFen 7y agoThat's the reason that all companies should have in-house coding standards. There are many different legitimate variations on "clean code", so the important thing is that one variation is chosen and used consistently by all devs. Which variation is chosen is less important.