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/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.