Archived What is your favorite comment you came across in code? (programming)
submitted ago by for_satan
Posted by: for_satan
Posting time: 5.5 years ago on
Last edit time: never edited.
Archived on: 2/12/2017 1:51:00 AM
Views: 1720
SCP: 30
30 upvotes, 0 downvotes (100% upvoted it)
Archived What is your favorite comment you came across in code? (programming)
submitted ago by for_satan
Sort: Top
[–] dogmatic 0 points 16 points 16 points (+16|-0) ago
Back in the day, in an age before the internet here was a COBOL payroll system. The system ran weekly. There was an error message generated for the check stub description line if an amount had more than 4 digits for dollars (>9999.00). The error message was "THIS PERSON MAKES TOO MUCH MONEY". It was triggered. Management was...somewhat less than pleased.
[–] Unleeb 0 points 10 points 10 points (+10|-0) ago (edited ago)
I have two that come to mind:
First one was a piece of software used to simulate some military hardware interface. Since I do not have access to the code anymore, this is a recreation from memory:
And another one, which I merely have observed on the Internet (Edit: As pointed out by Enemby; this one is from xkcd):
[–] Enemby 0 points 2 points 2 points (+2|-0) ago
the 2nd one is from xkcd.
[–] Unleeb ago
How could I not remember that?!
[–] taxation_is_slavery 0 points 10 points 10 points (+10|-0) ago
Probably a few others in business apps, but they elicit the wtf, and don't ask it.
[–] for_satan [S] 0 points 4 points 4 points (+4|-0) ago
That one is always a good one. Made a lot of game code faster.
[–] CathyTheGreatsHorse 0 points 4 points 4 points (+4|-0) ago
Is it well known? Just curious if there is a story behind it.
Seems like that witchcraft would be near impossible to troubleshoot without a deep understanding of how the floating point data type worked.
[–] captbrogers 0 points 9 points 9 points (+9|-0) ago
I can't remember it exactly, but it was something like:
Backstory: My team lead was heavily against using any 3rd party code, including frameworks (writing PHP like it was 1998, but it was just two years ago!).
So I had to writing something that does pretty much what Carbon does, but object oriented code wasn't used on this project. Had to do it as procedural with several functions. Any attempt to just scrap the file and rewrite it would end up just as corrupted with spaghetti as before as he made some edits. I'd get it working, he'd break it again. I lasted 6 months at that job.
[–] taxation_is_slavery 0 points 4 points 4 points (+4|-0) ago
If a company survives long enough on products like that, they usually start asking why development is so expensive, then they outsource to Indians which sends the company into a swan dive above concrete.
[–] captbrogers 0 points 2 points 2 points (+2|-0) ago
Oh they already did that for the HTML/CSS. Tables. Tables everywhere. Nested. I was surprised it didn't say "best viewed in IE".
[–] for_satan [S] 0 points 1 point 1 point (+1|-0) ago
We had something similar in a code base that I worked in, effectively
It was also PHP coded like 99, in 2012
[–] captbrogers 0 points 1 point 1 point (+1|-0) ago
Same kind of mentality I had to face. It was salt in the wound because I took the job out of necessity. I had to drive over 40 miles one way, so it took me nearly an hour because of traffic when driving.
[–] yewbontheboat 0 points 7 points 7 points (+7|-0) ago (edited ago)
Came across a set of comments in an automated mrp export program written in c that is about 10 years old
//if (qty == 507)
//return;
//why the fuck did I have to comment this out
//why did you even setup this fuck you bomb to go off 3 years after you left
Or something like that haha, I of course left it in
[–] kilroy 0 points 6 points 6 points (+6|-0) ago
[–] [deleted] 0 points 4 points 4 points (+4|-0) ago (edited ago)
[–] for_satan [S] ago
Oh, nice! I hadn't ever seen that before.
[–] HentaiOjisan 0 points 3 points 3 points (+3|-0) ago
I like this one:
And this one;