(no title)
mpolichette | 3 years ago
I leave notes like that sometime as indicators of intention… or invitation to the next reader… but if it never changes and is not causing issues… that’s fine, leave it as is.
mpolichette | 3 years ago
I leave notes like that sometime as indicators of intention… or invitation to the next reader… but if it never changes and is not causing issues… that’s fine, leave it as is.
josephg|3 years ago
Don't leave mess alone. Tidy it up. A codebase you actively nurture will make you feel like change is easy. Its well worth the time investment.
tgsovlerkhgsel|3 years ago
There is such a thing as "too tidy", and while everyone disagrees on where the point is, companies tend to be very good at forcing that point through constrained resources.
mazuhl|3 years ago
simplotek|3 years ago
Because most of the time your hack only works by accident, or doesn't handle expected corner cases, or leaves out important use cases, or is a ticking time bomb.
hamburglar|3 years ago
drewcoo|3 years ago
That's a Talking Heads lyric and not a point of fact.
unknown|3 years ago
[deleted]
quietbritishjim|3 years ago
Two obvious problems: (1) more likely future bugs; (2) wasted time
Often "fix it later" means "de-duplicate this copy and pasted code later", where the copy is slightly different so there's some refactoring required to do that.
The future bugs come from changing one copy but forgetting to change the other. Sounds unlikely but very common in practice.
The wasted time comes from having to redundantly update both (or several!) copies. That's more work than it sounds because you have to understand the subtle differences in each, whereas if you had refactored them into one code base then the differences would be some obvious function/class/etc. Of course, each time, this update to all the copies is less effort than doing the refactoring, so the wasted time builds up gradually over time.
mopsi|3 years ago
It may be very inefficient, for example. Works now, but may unintuitively slow down when dealing with workloads that looked very far-fetched at the time.
I have inherited a really nice C++ codebase from 1980s that contains warnings for Year 2038 problem and all sorts of other potential issues, and I can't thank those engineers enough. So many times I've dug into a problem or started implementing a new feature only to discover that someone had already thought of that and left useful pointers in comments.
Whatever version control or note-taking applications they might've used instead, I doubt I could even run or open their files 30+ years later.
philipwhiuk|3 years ago