Today we discussed with a colleague what is good code and what isn’t. We somewhat agreed that good code is code that can be understood and changed by people who aren’t the author. Hours later, I found this quote in the book I’m reading and wanted to share it:
The true test of good code is how easy it is to change it.
Martin Fowler, Refactoring
There’s code people understand, change, and create a mess. There’s code people understand, change, and don’t create a mess. There’s code people don’t understand and don’t change. It stays perfect until somebody decides to start over and create a two-headed Hydra because they see no other way.
I so agree with you! Also, it depends on language 🙂 Some are programming languages are pain in the ass 😀
LikeLiked by 1 person
Not sure 🙂 they all have some logic
LikeLiked by 1 person
Yeah, some languages are stable, but others like JavaScript and PHP need regular refactoring to stay manageable.
LikeLiked by 1 person
Yep, maintenance is important. With JS, it changes a bit too much
LikeLiked by 1 person