When you're working on a file that was last updated six years ago
-
This post did not contain any content.
-
This post did not contain any content.
I inherited code that contained files that were last updated in 1997
-
This post did not contain any content.
Ah yes, the “fuck it, no-one is going to use this” code.
-
I inherited code that contained files that were last updated in 1997
That isn’t a bad thing. On the contrary, according to the open-closed principle, you should strive for writing code you never have to touch again.
-
That isn’t a bad thing. On the contrary, according to the open-closed principle, you should strive for writing code you never have to touch again.
And that’s why so many core Linux utilities have worked almost exactly as they did from the very beginning. If your input and output demand no changes, the only improvements left to make are performance.
-
This post did not contain any content.
“Lmao, who runs mathematically optimized assembly? Let’s get this objective-c rewrite going.”
-
Ah yes, the “fuck it, no-one is going to use this” code.
I've written semi-personal tools that other team members sometimes use that will break in 2100. The comments note this and really hope they aren't still using these by then
-
Ah yes, the “fuck it, no-one is going to use this” code.
Or the “too critical and poorly documented so nobody dares change it” code. Good Luck!
-
That isn’t a bad thing. On the contrary, according to the open-closed principle, you should strive for writing code you never have to touch again.
There’s a difference between ” it hasn’t changed because it doesn’t need to be changed” and ” it hasn’t changed because it’s impossible to predict the impact of any change, and no one wants to be responsible for things breaking”.
-
This post did not contain any content.
“Who the fuck wrote this garbage?! …..oh.”
-
This post did not contain any content.
Is that...The 7th Guest?
-
This post did not contain any content.
One title would have been enough.
-
This post did not contain any content.
I get to say that I've truly made it as a programmer. The reason is that I wrote around 75 lines of Rust, came back a year later, and I could see exactly how it works.
In case you're wondering, it's a command line Slack client for sending notifications. Colored highlights and everything.
-
There’s a difference between ” it hasn’t changed because it doesn’t need to be changed” and ” it hasn’t changed because it’s impossible to predict the impact of any change, and no one wants to be responsible for things breaking”.
I was once spelunking a file that hadn't been touched in like 7 years, and there was a weird line where it was adding 2 to the index for seemingly no reason. The comment was like
// Sam: not sure why this is off by 2 here. See ticket #12345 for discussion
Whatever issue tracking software it was referencing was no longer used, so that ticket was gone, and who TF is Sam?
-
This post did not contain any content.
Even if it was my code, after 6 years:
-
“Who the fuck wrote this garbage?! …..oh.”
-
That isn’t a bad thing. On the contrary, according to the open-closed principle, you should strive for writing code you never have to touch again.
I haven't touched those files. The code works, I don't need to change it. I've mostly been working on the later additions.
-
This post did not contain any content.
I mean if it’s worked without modification for 6 years….
-
One title would have been enough.
When you're working on a file that was last updated six years ago
-
This post did not contain any content.
Can't relate, unless you're editing
.gitignore
orLICENSE
files for some reason.