Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "d'oh"
-
Uh, I gotta do Task #1337. It better is a good one!
*reads the title*
"Write technical documentation for... "
... D'oh! -
FUCK! agshdklgdahgisdahl;k!
I just spent 45 FUCKING MINUTES debugging try to figure out WHY THE HELL a function that is supposed to return either a pointer to a valid object OR ZERO if a valid object is not found, was RETURNING FUCKING EIGHT!
Then I saw it... I typed:
nodeList[index];
instead of:
return nodeList[index];
It took me looking at a stack trace and a disassembly of the function to realize this.
Can't wait for this three-day weekend...18 -
Guy: - "Your restart script doesn't work."
Me: - "What do you mean?"
Guy: - "It does nothing."
Me: - "It should kill every processes that's running within the project and start them again. Wait... Why do you terminate it?"
Guy: - "I don't. It just stops."
Me: - "It says `Terminated` here. You killed it. Just let it do it's job, don't kill it."
Guy: - "I'm not killing it! It just stops!"
(...two hours later...)
Me: - "Wait... Where do you run it from?"
Guy: - "What do you mean? I just run the script you gave me."
Me: - "Yeah, but where do you run it from? Where did you put it?"
Guy: - "It's part of the project so I put it in the project, d'oh!"11 -
Craziest bug, not so much in the sense of what it was (although it was itself wacky too), but in what I went through to fix it.
The year was 1986. I was finishing up coding on a C64 demo that I had promised would be out on a specific weekend. I had invented a new demo effect for it, which was pretty much the thing we all tried to do back then because it would guarantee a modicum of "fame", and we were all hyper-ego driven back then :) So, I knew I wanted to have it perfect when people saw it, to maximize impressiveness!
The problem was that I had this ONE little pixel in the corner of the screen that would cycle through colors as the effect proceeded. A pixel totally apart from the effect itself. A pixel that should have been totally inactive the entire time as part of a black background.
A pixel that REALLY pissed me off because it ruined the utter perfection otherwise on display, and I just couldn't have that!
Now, back then, all demos were coded in straight Assembly. If you've ever done anything of even mild complexity in Assembly, then you know how much of a PITA it can be to find bugs sometimes.
This one was no exception.
This happened on a Friday, and like I said, I promised it for the weekend. Thus began my 53 hours of hell, which to this day is still the single longest stretch of time straight that I've stayed awake.
Yes, I spent literally over 2+ days, sitting in front of my computer, really only ever taking bio breaks and getting snacks (pretty sure I didn't even shower)... all to get one damn pixel to obey me. I would conquer that f'ing pixel even if it killed me in the process!
And, eventually, I did fix it. The problem?
An 'i' instead of an 'l'. I shit you not!
After all these years I really don't remember the details, except for the big one that sticks in my mind, that I had an 'i' character in some line of code where an 'l' should have been. I just kept missing it, over and over and over again. I mean, I kinda understand after many hours, your brain turns to mush. and you make more mistakes, so I get missing it after a while... but missing it early on when I was still fresh just blows my mind.
As I recall, I finally uploaded the demo to the distro sight at around 11:30pm, so at least I made my deadline before practically dropping dead in bed (and then having to get up for school the next morning- D'oh!). And it WAS a pretty impressive demo... though I never did get the fame I expected from it (most likely because it didn't get distributed far and wide enough).
And that's the story of what I'd say was my craziest bug ever, the one that probably came closest to killing me :)5 -
Spent 45 minutes debugging an issue. I was calling the errorHandler on success, and successHandler on failure. D'oh!1
-
It's amusing how every time something doesn't work with Linux somebody spent a bunch of time customising their OS into oblivion (because well, the whole point of using Linux is the ability to have it your way, d'oh), and it's never their fault for changing everything or using some distro with 0.05% market share, it's the company's fault not providing bulletproof support for their exact setup and not testing everything they put out on every combination of kernel & system software.6
-
Bug requires 2 developers, full-time for 4 days to trace, debug, scratch heads, analyse logs. Third developer helping occasionally. Finally identify fix. Fix is 2 lines. D'oh.3
-
After 30 minutes of trying to figure out why a guid is empty, I realize it's because it is initialized, but not assigned.
I'm not ready for Monday. -
When you testing your exception handling by throwing an exception, but the code throwing the exception has a bug and throws an exception, so you think it works... d'oh
-
Let's say you're working on some pretty complex JavaScript code, and it's just not working right, nothing you try seems to fix it and you can't figure out what's going on. So, rather than continuing to bang your head against the desk, you decide to do the smart thing and shut down for the day.
You then come back to it the next day, refreshed and ready to do battle with the code! You start by adding a few simple logging statements to see what the hell is going on.
You then run the code and... IT WORKS PERFECTLY?!
You scratch your head for a while before finally realizing that cache didn't get cleared yesterday, so your changes were never executing.
D'oh!
Do you:
(A) Beat yourself up for missing such a stupid and basic thing despite doing this shit for literally over 25 years now, or:
(B) Do a happy dance because you just got a free day and can effectively start the weekend early knowing you accomplished your goal for the week?
(or, I suppose, both, which is kind of where I land)6 -
!dev
Fuck, I hate moving. All the tearing down and subsequent assembly takes sooo bloody long. And you have to be extra careful not to destroy all your (no so) cheap IKEA furniture when taking off the screws and nails. ~Lê stupid me didn't think he'd have to disassemble this stuff, so I actually used nails. D'oh. So now I have some splintered wood. Congrats, you cockwomble. Good luck repairing that.
I'll use screws (torx head, of course) when reassembling though, not making the same mistake again.
Oh, and then there's all the dust and cobwebs and fucking spiders living under the furniture, because I can't tilt my wardrobe to vacuum underneath it. Just. Fucking. Lovely.
On the upside, I get to do an early spring cleaning on all my accumulated trash. New apartment is gonna be so clean and minimal, you'd mistake it for a monastic meditation room. With a pair of monitors and my beautiful desktop to the side. Meditation is lovely, but I also pray to the silicon and transistor gods. Need mah tech shrine.2 -
For some reason I always forget the enctype from forms with file uploads. Spent half an hour today digging through the functions for saving the file before discovering the image want being posted at all. D'oh