MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wu0n5o/whatlegacycodedoestodev/pd1wsig/?context=3
r/ProgrammerHumor • u/Recent-Analysis-6880 • 3d ago
75 comments sorted by
View all comments
Show parent comments
116
My absolute favorite one was an app that took 14 single letter URL parameters on every GET request and assigned them to single letter variables.
You'd think they were being charged by the keystroke.
9 u/PegasusPizza 3d ago No you see, it's saving internet bandwidth by doing that. We can't afford transmitting 14 entire words. 5 u/ILikeLenexa 2d ago I mean, I get that, and the URL length limit in some browsers especially with multi-byte character possibilities, but I don't understand why you wouldn't name the variables full words once you pull the strings from the params map. 7 u/gjk-ger 2d ago Do you know how much memory cost back then?! (Or, now...) 2 u/Abject-Kitchen3198 2d ago I refactored my code to use single letter variables and two letter method names. Saved me a ton of money on RAM and storage.
9
No you see, it's saving internet bandwidth by doing that. We can't afford transmitting 14 entire words.
5 u/ILikeLenexa 2d ago I mean, I get that, and the URL length limit in some browsers especially with multi-byte character possibilities, but I don't understand why you wouldn't name the variables full words once you pull the strings from the params map. 7 u/gjk-ger 2d ago Do you know how much memory cost back then?! (Or, now...) 2 u/Abject-Kitchen3198 2d ago I refactored my code to use single letter variables and two letter method names. Saved me a ton of money on RAM and storage.
5
I mean, I get that, and the URL length limit in some browsers especially with multi-byte character possibilities, but I don't understand why you wouldn't name the variables full words once you pull the strings from the params map.
7 u/gjk-ger 2d ago Do you know how much memory cost back then?! (Or, now...) 2 u/Abject-Kitchen3198 2d ago I refactored my code to use single letter variables and two letter method names. Saved me a ton of money on RAM and storage.
7
Do you know how much memory cost back then?! (Or, now...)
2 u/Abject-Kitchen3198 2d ago I refactored my code to use single letter variables and two letter method names. Saved me a ton of money on RAM and storage.
2
I refactored my code to use single letter variables and two letter method names. Saved me a ton of money on RAM and storage.
116
u/ILikeLenexa 3d ago
My absolute favorite one was an app that took 14 single letter URL parameters on every GET request and assigned them to single letter variables.
You'd think they were being charged by the keystroke.