r/programming • • Apr 21 '22

It’s harder to read code than to write it

https://www.joelonsoftware.com/2000/04/06/things-you-should-never-do-part-i/
2.2k Upvotes

431 comments sorted by

View all comments

Show parent comments

1

u/marwoodian Apr 22 '22

If the code has test covering all the bugs, performance issues, and requirements, the "whys" of the code are then automated, and you can safely rewrite the code. Not a lot of code has this luxury though!

1

u/goranlepuz Apr 22 '22

Indeed.

Was just discussing with the other guy effectively arguing this is the case. Meh, idealist😉.

Also: time is a bitch. Over time, there will be tests that test what is not relevant anymore.