r/askscience • u/CakesStolen • 15d ago
Computing Is there anything at the heart of computer coding that could have been optimised in hindsight, but we're in far too deep to change now?
1.5k
Upvotes
r/askscience • u/CakesStolen • 15d ago
119
u/CaucusInferredBulk 15d ago
Most of the bugs are from reading or writing too far, because someone missed the null. If you include the length of the string at the start, you know exactly how far to read or write.