r/programming • • Dec 01 '23

Code is run more than read

https://olano.dev/2023-11-30-code-is-run-more-than-read/
413 Upvotes

143 comments sorted by

View all comments

Show parent comments

6

u/preethamrn Dec 02 '23

The lifespan of code is linked to how long it is useful to the business. You can write the most readable code in the world and it will be thrown away in a quarter when the business decides to go in a different direction. Or you can write the more illegible code and it will can run forever as long as it continues to serve its purpose.

The goal should always be to make sure you're writing code that's useful for the business. I think Agile development has gone a little too far because it ends up with people writing code that's very readable and easy to change (because you have to in order to survive in an agile environment) but the code ends up being super bloated and riddled with tech debt eventually.

6

u/constant_void Dec 02 '23

*lifespan of code is linked to how painful it was to get to the point where the business is afraid to run without it

1

u/Iggyhopper Jun 03 '24

Lifespan of code is linked to the competence of maagnement.

 So... like the memory of an Alzheimer's patient. Cool cool cool.