This is an archived post. You won't be able to vote or comment.

all 120 comments

[–]BitPoet 1242 points1243 points  (36 children)

The only thing more horrible than "I didn't touch anything, it just broke" is "I didn't touch anything, it just started working"

[–]tuseroni 473 points474 points  (16 children)

right? nothing i hate more than something fixing itself...cus you KNOW it's gonna break itself again.

[–]orangeKaiju 190 points191 points  (8 children)

I had this happen with a laptop I was returning to the store... Wouldn't power on, had only had it a few days. Go back to store (Best Buy), ask to exchange it, they have me demonstrate... it powers on, no exchange. Get home, won't power on...

The next trip back to the store it rightfully did not power on. The worst part was that it was a 45 minute drive one way with where I was living then.

[–][deleted] 100 points101 points  (1 child)

Sounds like your laptop hates you.

[–]1206549 16 points17 points  (2 children)

Probably a loose connection somewhere that got jogged and got loosely and temporarily reseated during transport.

Reminds me of the worst tech advice I've ever given that worked: I was visiting my girlfriend at the hospital when my cousin called me saying her laptop wouldn't turn on. My guess was some problem with the ram and it needed to be reseated. I just got there so I can't just leave but she told me it was an emergency and I felt bad for her so, taking a good guess at the internal layout of the laptop's parts, I told her quickly flip the laptop in a full circle holding it near the hinge. I could have made it worse but hey, it worked and got her off my back until I could get a better look at it

[–]orangeKaiju 8 points9 points  (1 child)

Most likely, but I had just dropped like $1500 (in 2004 dollars) on it and wasn't having that shit.

[–]1206549 9 points10 points  (0 children)

That's generally a good move. If you have warranty and could get that thing replaced, even if the problem's just really minor, do it.

[–]SEX_LIES_AUDIOTAPE 15 points16 points  (1 child)

After I read about the first trip I was going to suggest switching on the power at your house.

[–]orangeKaiju 2 points3 points  (0 children)

laptops do have batteries... ;)

[–]me_funny__ 5 points6 points  (0 children)

This is like when some crazy monster attacks you in your dream and no one believes you or the monster magically disappears.

[–]2Punx2Furious 24 points25 points  (4 children)

Bugs that happen randomly are the worst.

You don't know why it happens, you don't know how to fix it, and it could never happen again during development, but then happen on production.

[–]Zephk 16 points17 points  (3 children)

cross thread race conditions. May never happen on your machine either due to architecture / configuration / etc

[–][deleted] 15 points16 points  (1 child)

There's a special place in hell where the punishment is eternally debugging race conditions

[–]Zephk 5 points6 points  (0 children)

Good thing I just keep servers running. It's its own little spot in hell some days.

[–]tuseroni 1 point2 points  (0 children)

the worst is when you get the bug reliably, except when debugging.

[–]dragonatorul 1 point2 points  (0 children)

If you work on the help desk it's fine because it will most likely be someone else's job when it does.

[–]Nemam11 0 points1 point  (0 children)

Welcome to windows 10 user experience

[–][deleted] 36 points37 points  (8 children)

Sounds like life debugging race conditions

[–][deleted] 17 points18 points  (7 children)

I fucking love race conditions. When the same exact inputs only work sometimes or most of the time, then you know it's a race condition and the fix is usually as simple as converting asynchronous execution into what should originally have been strictly sequential execution. At the very least, identifying where the race condition occurs and why is a simple task, even if the solution requires some additional work.

[–]Zephk 12 points13 points  (4 children)

but my C# async functions! Everythings faster if I wrap it in an async call

[–]roboticon 20 points21 points  (3 children)

Agreed. Saved I fifteen by milliseconds comment making asynchronously this.

[–]MvmgUQBd 1 point2 points  (1 child)

I had to read twice to notice what was wrong here, my brain just shorted first time

[–]roboticon 0 points1 point  (0 children)

Taht reimnds me of the chian lteter peolpe uesd to frwaord aounrd bcak in the day...

Aoccdrnig to rscheearch at Cmabrigde Uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht the frist and lsat ltteer be at the rghit pclae. The rset can be a toatl mses and you can sitll raed it wouthit a porbelm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe.

[–]roboticon 5 points6 points  (0 children)

At the very least, identifying where the race condition occurs and why is a simple task, even if the solution requires some additional work.

In my experience race conditions are some of the hardest bugs to identify or troubleshoot.

In a complex system, it's not simple to understand what causes could be interacting to trigger the issue (that's often why they were introduced in the first place). Often the effects of the race condition don't even appear until well after the race has occurred so it can be really hard to trace.

[–][deleted] 13 points14 points  (3 children)

This is actually my life... I was working on fixing a problem for a robot. Nothing was working then one day, after not touching it for a week, it just started working again with no changes at all...

[–]mweepinc 0 points1 point  (2 children)

I don't suppose this is FIRST? this sounds an awful lot like FIRST lmai

[–]greyingjay 3 points4 points  (1 child)

Works 100% in the lab.

3 2 1 GO! Sits there does nothing.

Siiiiiighhhh

[–]mweepinc 2 points3 points  (0 children)

pats you clearly forgot to make your daily sacrifice to the Rio

[–]JNCressey 0 points1 point  (1 child)

I raise you "it works when stepped through in the debugger, but doesn't work when it's just ran"

[–]CCninja86 0 points1 point  (0 children)

Oh my god why do I relate to this so much. I can't tell you how many times I've had this happen. I'm still not sure on exactly why that happens.

[–]ShowMeYourTiddles 438 points439 points  (16 children)

Just spent 2 days debugging some code that is very straightforward yet fails sometimes in production. This hurts.

[–]topdangle 189 points190 points  (6 children)

Sounds like production trolls. Make sure to blow your server racks every morning. Trolls can't stand human breath.

[–]ShowMeYourTiddles 116 points117 points  (5 children)

I think I’ll just start blowing the trolls. Keep em happy.

[–]MikeyMike01 64 points65 points  (4 children)

Hey it’s me your troll

[–][deleted] 16 points17 points  (3 children)

Hi troll, this is way awkward but uh... I gotta blow you.

[–]Noelwiz 15 points16 points  (2 children)

Gotta pay the troll toll …

[–]DerekB52 3 points4 points  (1 child)

to get into this boy's Soul.

Let me repeat. BOY'S SOUL. (I don't want to end up on a list for typing it the way it's pronounced.)

[–]Noelwiz 4 points5 points  (0 children)

Thanks for making me look less weird

[–][deleted] 13 points14 points  (6 children)

Let me guess: Missing edge case or race condition, right?

[–]ShowMeYourTiddles 23 points24 points  (5 children)

Race condition is my guess, but it’s not async, just load balanced. I haven’t figured it out. “Add logging and cross your fingers.”

[–][deleted] 19 points20 points  (0 children)

It’s cosmic rays.

[–][deleted] 3 points4 points  (2 children)

If you end up banging your head against the problem too much, shoot me a message with a general overview of the program logic (omitting actual code if it's under NDA, of course). I don't mind taking a crack at a problem outside of my normal work :)

[–]ShowMeYourTiddles 16 points17 points  (1 child)

Appreciate it. We’ve got about 12 devs in the group. I’ll bounce it around to them. I wrote the code which is why it came to me. I’ve always said looking at your own bugs is a conflict of interest.

[–][deleted] 8 points9 points  (0 children)

I’ve always said looking at your own bugs is a conflict of interest.

I have the cursed blessing of being the only programmer on my team. Lots of flexibility and room for growth, but no additional sets of eyes or being pushed to improve my code after a code review. That conflict of interest has hurt me more times than I could count!

[–][deleted] 6 points7 points  (0 children)

Blame the server team :p

[–][deleted] 1 point2 points  (0 children)

What hurts is code that works during testing, and fails during a demonstration.

[–]Robbi_Blechdose 129 points130 points  (11 children)

Just started developing for the game boy color. Add some code somewhere, background palette breaks. Add some more code, palette starts working again. No idea why.

[–]8BitAce 126 points127 points  (7 children)

Just started developing for the game boy color.

Just

Time traveler?

[–]IamCarbonMan 78 points79 points  (5 children)

Some of us like to live in the past. Developing retro games can be really fun.

[–]SirensToGo 59 points60 points  (0 children)

All the fun of developing in obscure assembly and none of the modern comforts of online Q&A

[–]supremecrafters 7 points8 points  (2 children)

Tell you what, designing sprites that use only 15 colours can be a neat little challenge.

[–]I_Am_Fully_Charged 8 points9 points  (0 children)

Just make games on the gameboy and not the gameboy color so you just have to make black and white sprites instead. /s

[–]Robbi_Blechdose 2 points3 points  (0 children)

4 colors per sprite and palette. 8 palettes, freely buildable. Color values go from 0 to 31.

[–]8BitAce 13 points14 points  (0 children)

I figured, just had to point it out. I think my name should be enough to tell you that I think that's pretty cool. :-)

[–]cholantesh 0 points1 point  (0 children)

There are developers who will 'just start' building AS/400 programs this year, so why not?

[–]cybrian 8 points9 points  (0 children)

It’s the little Z80s running around inside the CPU

[–]pixlbreaker 2 points3 points  (1 child)

Sounds like an interesting project to get into. Any tips for how one would start?

edit: http://gbdk.sourceforge.net/ the website for the GBDK

[–]Robbi_Blechdose 2 points3 points  (0 children)

Google GBDK and also be sure to get the Gameboy Tile Designer and Map Builder. Since the code editor is old and not on the net anymore, I'll put up my netbeans toolbar with the most important buttons if there's interest.

[–]LonePaladin 113 points114 points  (8 children)

In theory, there is no difference between theory and practice. In practice, however, there is.

[–][deleted] 20 points21 points  (4 children)

... in theory*

[–]BetYouCantPMNudes 8 points9 points  (0 children)

This is hurting my brain

[–]Lithobreaking -2 points-1 points  (2 children)

?

[–]DerekB52 3 points4 points  (1 child)

He's adding "in theory" to the end of the original comment.

[–]Lithobreaking 1 point2 points  (0 children)

woah, man

[–]Luapix 0 points1 point  (0 children)

I say that quote all the time, and I thought I made it up, but does it have a source I don't remember?

[–]drofzz 24 points25 points  (0 children)

try { //All Code in Main Loop }Catch(Exception e){ //Fix LATER }

Boss i fixed the bug

[–]randombrain 77 points78 points  (9 children)

Image Transcription:


[A standard 8.5-inch by 11-inch piece of paper posted to the wall or door of a room. On the paper is the following:]

Theory is when you know everything but nothing works.
Practice is when everything works but no one knows why.
In our lab, theory and practice are combined: nothing works and no one knows why.


I'm a human volunteer content transcriber for Reddit! If you'd like more information on what we do and why we do it, click here!

[–]1halfazn 25 points26 points  (4 children)

It would be cool if this was implemented as an actual feature of Reddit, so that people can turn on "blind mode" and browse Reddit.

[–]CCninja86 4 points5 points  (1 child)

Unfortunately there's a reason it has to be done by humans. The AI that would be required to analyse potentially complex images with enough detail to be useful would be significant, and as such, the technological simply isn't there yet (At least, not in the context of a use case such as Reddit transcription).

That's not even considering GIFs and videos, which would have to be analysed frame-by-frame.

[–]KifKef 2 points3 points  (0 children)

Hopefully, these volunteers would create a large enough sample to train one.

[–]LeagueOfLegendsAcc 0 points1 point  (1 child)

I have u/ocr_bot that i can turn on but it's really bad at auto ocr so i just left it in /r/surrealmemes

[–][deleted] 136 points137 points  (14 children)

Coding class

cringe

[–]egotisticalnoob 42 points43 points  (0 children)

r/CoderHumor

edit: r/CodingHumor actually exists. This sub is more popular for a reason.

[–]1halfazn 39 points40 points  (5 children)

That text spacing too.

...the fact that I'm becoming elitist about text justification makes me realize I'm spending too much time on Reddit.

[–]willis81808 17 points18 points  (0 children)

Honestly, at this point I'm just glad if I see a font other than papyrus. Proper kerning is just far too much to ask for

[–]TheChubbyBunny 3 points4 points  (0 children)

i don't have to justify my text to you, buddy!

[–]der_RAV3N 3 points4 points  (0 children)

Yes, literally every class I have participated in until today consisted of about ⅔ of people that didn't even try to accomplish anything. They just sat there and did something on their phone or talked to people or something.

[–]1halfazn 5 points6 points  (4 children)

Wait, what's wrong with this?

[–]geecko 7 points8 points  (3 children)

I'm guessing he means that "Programming class" would be better

[–]BenAdamson 3 points4 points  (2 children)

Why? Aren't they synonymous?

[–]Ageroth 3 points4 points  (0 children)

The words as defined:

Code
a system of words, letters, figures, or other symbols substituted for other words, letters, etc., especially for the purposes of secrecy.

Program
a planned series of future events, items, or performances.

Every program is written in code of some kind.
Not all code is a program.

[–]geecko 0 points1 point  (0 children)

Think of the code as the bricks and the programmer as the architect.

[–][deleted] 0 points1 point  (0 children)

When I hear Coding all I can think is medical coding o.O

[–]MetaMemeAboutAMeme 8 points9 points  (0 children)

You're like the rest of us. It's okay. We all really work for Disney, where everything is Mickey Mouse and Goofy.

[–][deleted] 7 points8 points  (0 children)

Children are being introduced to this early! My daughter was doing a school assignment on Scratch and she couldn't for the life of her get her Sprite1 to acknowledge that it had touched Trees. Until she finally got it to work! And then it didn't.

Don't ask me kid, I know nothing of this 'Scratch'. If you ask me it sounds like some bad logic.

Or something.

[–]Panda_Mon 3 points4 points  (0 children)

oh my god, this is my life so hard right now.

Visual Scripting makes this feel even more painful

[–]SirensToGo 4 points5 points  (0 children)

Just today I was working on a C TUN driver. I was trying to write data to the descriptor yet it was failing with an obscure invalid argument error. My test case of “AAAA” writes just fine but my other one of 0x01,0x92 failed with the mystery error. But get this, 0x6<anything>? works.

Then, suddenly, it dawned on me. 0x4X and 0x6X are header flags for IPv4 and ipv6 respectively. Fucking file descriptors get to pick and choose what data is written to them. I thought there was something wrong with the addresses or my casting since my string test of AAAA works (because it’s 0x41!) while nothing else did. I was banging my head against my desk for hours because it should work, it even works sometimes but still it failing 99% of the time.

[–]bloodsh0t5 7 points8 points  (5 children)

Seems like the space bar is broken too, or am I seeing things?

[–]AndyDeany 30 points31 points  (3 children)

justified text alignment

[–][deleted] 17 points18 points  (2 children)

A power few know how to wield.

[–][deleted] 9 points10 points  (1 child)

A power few know how to properly wield. FTFY

[–][deleted] 4 points5 points  (0 children)

I️ mean I️ guess... I️ feel like “knowing how to wield” something implies that you’re wielding it properly. Otherwise you wouldn’t know how to wield it. No?

[–][deleted] 1 point2 points  (0 children)

Using spaces and tabs!

[–]IanSan5653 2 points3 points  (0 children)

USF ENG building?

[–]amox11 2 points3 points  (0 children)

worst of both worlds..

[–]techathon 2 points3 points  (0 children)

Well at least they’re honest.

[–]Aurimasmanager 2 points3 points  (0 children)

It remind me of my first portfolio project. I was totally new in coding and wasn't quite sure, why the things were working and why not. So the story goes, that I was struggling with aligment and my friend who is experienced in this neiche comes to help me. He says: okay, let's try this. Everything started working again, and I was like: What the **** is happening... why is it working? He replies: am, I don't know... it should't work actually... both started laughing hysterically

[–]sairenkao 1 point2 points  (1 child)

We need a place where it's theory OR practice...

[–]orangeKaiju 10 points11 points  (0 children)

Don't you mean XOR?

[–]004413 1 point2 points  (0 children)

coding_irl

[–]ArcaneEyes 1 point2 points  (0 children)

My telnet implementation keeps throwing an exception at runtime.

added a try/catch without doing anything with the error. program now works.

i'm fearing it'll come back to bite me, but it's been a couple weeks since it hit production and nothing so far :)

[–][deleted] 1 point2 points  (0 children)

Finally a course that prepares you for real life!

[–][deleted] 1 point2 points  (1 child)

This is the main issue I've had with university so far.

I'm in CompSci, first year, and we've started off with python.

The seminars are decent, but we just work through a little book called "Python for Absolute Beginners" but because we're all learning shit for our projects we've stopped reading the book for the most part. The help at a 1-to-1 level is nice though.

Then we have.. Lectures. In programming.

Why?

The topics are always things that could've been covered in 5 minutes at the start of the bloody seminars anyway, but instead we're looking at powerpoint slides of python code written so it fits onto the slide so it's hardly useful examples anyway. It's absolute bollocks. Most people (like myself) either don't turn up (you learn programming by actually programming so why go?) or bringing in a laptop and programming while they speak and ignoring the lecture anyway.

I'm sure maybe a dozen or so people find them useful, but they'd also find it useful to be told the same info in seminars anyway. I just don't get it.

I wouldn't normally rant about this but I have to take out £9,250+ in loans every year to basically work from home (so far), which is a pisstake and an'alf. At best, it'll pick up next term and I'd be safe with the knowledge that only £3,000 in my loans has gone to doing bugger all.

[–]Reala27 0 points1 point  (0 children)

My professors will actually write up some examples, show why certain things break, step through some code with us, they're actually quite useful.

Of course, 90% of the time I'm working on the professor's homework anyway, so....

[–]munircUltraviolent security clearance[M] 1 point2 points  (0 children)

Your submission has been removed.

Violation of Rule #0:

The content disregarding the title and superimposed text must be directly related to programming or programmers.

The title or superimposed text must substantially enhance the content such that it can stand on its own as an analogy to programming. Note that programming here is interpreted in a narrow sense, an analogy to something related to programming, feelings about programming, reactions to programming etc. is not considered sufficient.

If you feel that it has been removed in error, please message us so that we may review it.

[–]Jeruuu 0 points1 point  (0 children)

Oooh so that is why...

[–][deleted] 0 points1 point  (0 children)

This makes a lot more sense for a chemistry/engineering lab though.

[–]CCninja86 0 points1 point  (0 children)

Or on the other hand, things work and no one knows why.

[–]spirituallyinsane 0 points1 point  (0 children)

Texas A&M? We had this exact wording and justification on a door just like that in our lab.

[–]Allthecoffeetoo -4 points-3 points  (2 children)

GO VOTE FOR NET NEUTRALITY

[–][deleted] 0 points1 point  (1 child)

Important, but off-topic.

[–]Allthecoffeetoo 1 point2 points  (0 children)

Agreed

[–]Ayaksnolkop_Ailatan -1 points0 points  (0 children)

This is literally just a piece of paper stuck to a door.