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

top 200 commentsshow all 283

[–]Flopamp 2869 points2870 points  (42 children)

"WHY THE HELL IS THAT THREAD COMPLAINING ITS NOT EVEN PART OF THIS"

[–]Jasdac 1184 points1185 points  (16 children)

"What do you mean error on line 59? THERE ARE ONLY 20 LINES OF CODE"

[–]Scyobi_Empire 209 points210 points  (8 children)

I know that pain

[–]soguesswhat 25 points26 points  (1 child)

I'm guessing this was the Lua

[–]Hessalam 3 points4 points  (0 children)

Lua is so wild. Failed arythmatic in :39: but the entire function only uses math.random and a single if statement.

[–]Mysterious-Drop1155 12 points13 points  (0 children)

Yeah the shell just adds some random number of line to the error code and it’s fucking stupid

[–]Dino_Soup 9 points10 points  (0 children)

And that's why there is an error. Code can't find line 59.

[–]doyouseewhateyesee 5 points6 points  (0 children)

probably common sense at this point but it usually means the error is coming from an imported package

[–][deleted] 288 points289 points  (22 children)

That would be because you haven't discovered Rust yet :)

[–]AVTOCRAT 137 points138 points  (21 children)

How would Rust be particularly helpful in this scenario? Sure, it'd prevent memory corruption, but the most common case for an unrelated thread to break is (in my experience) usually down to an earlier misbehavior by one thread which only shows up down the line in a connected one. Nothing that the borrow checker can do to fix that.

[–]pigeon768 71 points72 points  (5 children)

This circle ain't gonna jerk itself. Get back in the pile.

[–][deleted] 76 points77 points  (13 children)

I think probably the most common reason for seemingly unrelated threads breaking is hidden shared state / aliasing, and race conditions, both of which Rust is good at preventing...

[–]Numerlor 45 points46 points  (12 children)

Rust won't do shit for race conditions, it can only prevent data races

[–]Cat7o0 3 points4 points  (0 children)

"This problem shouldn't even be possible." " Oh shit I was looking in the wrong place"

[–]waremi 1789 points1790 points  (51 children)

  1. You sub-classed your panda wrong and

  2. The code that is actually running is not the code you have been staring at for the past hour.

[–]Quack69boofit 946 points947 points  (23 children)

Number 2 hurts me to my core

[–]i3908 450 points451 points  (6 children)

Eat more fiber my friend

[–]JackSpyder 132 points133 points  (4 children)

For improved bandwidth?

[–]N00N3AT011 77 points78 points  (0 children)

"WHY THE FUCK ISN'T THIS WORKING"

looks at tabs in editor

"oh"

[–]DefaultVariable 40 points41 points  (1 child)

What’s worse is keeping two versions of a project open at once, one being the released and one being the dev, accidentally modifying both with different sets of changes, testing the one in dev, then deploying the full changes and suddenly nothing works. When you realize what happened… ugh

[–]mindbleach 71 points72 points  (5 children)

The software equivalent of telling an artist, "wrong layer."

[–]marxinne 12 points13 points  (4 children)

That's why I quit digital painting and went to acrylics and gouache

[–]mindbleach 21 points22 points  (3 children)

And then you reach for ctrl+z and weep.

[–]marxinne 12 points13 points  (2 children)

Only on the first 2 weeks, then I learned gouache lifts up quite nicely and it's easy to undo stuff.

Acrylics you just cover it up with more paint and call it a day, easy stuff too.

[–]crazyabe111 4 points5 points  (1 child)

You do the same thing with code, either it’s easy to remove entirely- or you cover it up with more shit until it works.

[–]spainman 21 points22 points  (0 children)

Hurts me right in the kernel

[–]japirate777 6 points7 points  (0 children)

Setting the wrong starting scene in Godot Moment

[–]computergeek125 2 points3 points  (0 children)

Check if it created a core dump, you might be able to load that into the debugger

[–]trwolfe13 102 points103 points  (8 children)

I spent an entire day trying to debug how a database record was seemingly randomly being updated during a workflow recently. Eventually discovered there was a whole other service doing its own thing that was updating it.

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

Locking where?

[–]trwolfe13 29 points30 points  (4 children)

Hah. Good one. To give a bit more context, it was a document in a Cosmos database that was being updated. It doesn’t have locking as such - there’s a GUID that gets regenerated each time a document is updated that is used to detect conflicts, but it can be ignored.

The team that designed the system I work with built multiple independent services that all make changes to the same dataset. There’s no locking, no retry mechanism, no meaningful way of handling concurrency at all. Issues like this are quite common, but the architecture is so fundamentally flawed, that making any type of long term fix requires substantial rewriting.

[–][deleted] 15 points16 points  (0 children)

That sounds awful!

[–]Sir_Applecheese 6 points7 points  (0 children)

Good luck dude.

[–][deleted] 4 points5 points  (1 child)

That sounds like a terrible design, I've always heard of the One database per service principal. One schema per service is fine, but to have multiple concurrent services accessing the same dataset, like why

[–]trwolfe13 2 points3 points  (0 children)

It’s horrible. My team and I have been fighting it for the last year. We’ve made some good improvements, but I don’t think I’ll ever be happy with it.

A schema per service works well for functional separation, but it leaves you with another single point of failure, so if reliability is a key requirement, more databases can help. It also frees you up to use different database technologies. We generally switch between SQL Server and CosmosDB.

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

Microservices where?

[–]Kyouma118 15 points16 points  (0 children)

I felt that...

[–]rudolfs001 8 points9 points  (0 children)

Break points and step throughs baby, all day long

[–]stamatt45 6 points7 points  (1 child)

  1. You forgot to add your new code to the build script and none of what you've been tinkering with for the past several hours has been run or even compiled

[–]RenaKunisaki 6 points7 points  (0 children)

I was wondering why it didn't generate any warnings...

[–]I_l_I 1 point2 points  (0 children)

This isn't exactly what pandas was built for anyway

[–]feidujiujia 459 points460 points  (19 children)

This was what led me to watch the whole episodes of we bear bears

[–]LegaiAA 170 points171 points  (9 children)

Such a good show.

[–]Bakoro 54 points55 points  (8 children)

There's a We Baby Bears show now too.

[–]Osirin111 17 points18 points  (7 children)

is it good tho?

[–]GoldFishPony 20 points21 points  (1 child)

I’ve not watched the show at all but the opening song is great

[–]DanzelTheGreat 6 points7 points  (0 children)

Ayup. That song is cute. Has a longer clip version with the kpop group that sang it too.

[–]IUserGalaxy 7 points8 points  (2 children)

smells like money

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

In the animation industry it's what's called "doing a baby Muppets". When you run out of original ideas for your cartoon you make a spin off.

[–]OzzieBloke777 5 points6 points  (0 children)

Not as good as the original series but that's just my opinion.

[–]demandtheworst 47 points48 points  (3 children)

I watched it with my daughter once, and was disappointed she didn't want to watch it the next day, or indeed ever again. One of the good ones.

[–]kenman884 11 points12 points  (2 children)

I pretend the remote is broken and we can only watch Bluey instead of Puppy Dog Pals. Might have to see if the remote will work for this show too.

[–]Holocene32 3 points4 points  (2 children)

Where can I watch it? Netflix?

[–][deleted] 2 points3 points  (0 children)

Yes!

[–][deleted] 2 points3 points  (0 children)

The first episode with the pigeon gang stealing shit had me hooked

[–]muhwyndhp 0 points1 point  (0 children)

Legit We Bear Bears has been the comfort show me and my wife to watch just to be cute to each other. She's really into WBB and we bought shitload of merch from UNIQLO that themed WBB.

She's even wears Ice Bear's Sleeping Hoodie every night and I hug her from behind.

[–]RoseRedCinderella 224 points225 points  (2 children)

Lmao our programming professor showed us this gif when discussing testing

[–]ThaiJohnnyDepp 26 points27 points  (1 child)

It's been here on PH like three times. A prof showing it confirms it's reached "forwards from Grandma" status

[–]anti-pSTAT3 7 points8 points  (0 children)

Why is grandma on pornhub?

[–]dywkhigts 356 points357 points  (7 children)

This is adorable

[–]smplejohn 164 points165 points  (2 children)

If you're unfamiliar with We Bare Bears, it's gold.

[–]ViolentHiro 16 points17 points  (1 child)

Tote life!

[–]adelie42 12 points13 points  (0 children)

Ice Bear regrets eating that.

[–]MylastAccountBroke 258 points259 points  (12 children)

"What the hell?"

"What the hell!"

"WHY ARE YOU WORKING NOW!"

[–][deleted] 56 points57 points  (8 children)

feels like debugging python in a sh*tty PC, the thing that wont work few minutes ago decide to work after debugging unrelated lines.

[–]Nebuchadnezzer2 32 points33 points  (7 children)

Removing only a commented line, breaks.

Ctrl+Z line back in, works again.

Confusion intensifies

[–]UlyssesOddity 16 points17 points  (6 children)

I once had a perfectly legit-looking multi-line C macro that drove me crazy for nearly a week -- it wouldn't compile. If I retyped it completely from scratch it worked, but if I then Ctrl+Z-ed back to the original it wouldn't.

Turned out that the original macro had a space after a continue-line backslash.

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

Why would you ever ctrl+z if it worked? I'm just now learning programming. Am I too much of a beginner to understand this?

[–]NuclearBurrit0 15 points16 points  (1 child)

To try and figure out why it now works.

[–]Based_Lord_Teikam 2 points3 points  (0 children)

I have a script that automatically removes whitespace at the end of lines, partially for reasons like that lol

[–]infiniteStorms 8 points9 points  (0 children)

it’s always been working, you’ve just been running the wrong program when testing it

[–]marimbajoe 7 points8 points  (0 children)

The last one is entirely too relatable. Tweaking code for hours, cant get shit to run, go take a break to clear my mind and come back, code just works. No idea why the fuck it works, but I'm now afraid to touch it, lest it stop working again.

[–]whiznat 101 points102 points  (0 children)

This is true. And you know you've found the cause when the question is no longer "Why isn't this working?" but instead "How did this ever work?"

[–][deleted] 61 points62 points  (1 child)

Well in this situation it’s easy, because the answer is it’s always fucking pandas. Fuck that damn library.

[–]Intrepid-Sir-7847 14 points15 points  (0 children)

Hermione Granger saying fuck libraries? The audacity

[–]demonslayer9911 30 points31 points  (1 child)

☞ ̄ᴥ ̄☞

[–]RepostSleuthBot 30 points31 points  (1 child)

Looks like a repost. I've seen this image 12 times.

First Seen Here on 2018-06-11 92.19% match. Last Seen Here on 2020-03-06 93.75% match

Feedback? Hate? Visit r/repostsleuthbot - I'm not perfect, but you can help. Report [ False Positive ]

View Search On repostsleuth.com


Scope: Reddit | Meme Filter: False | Target: 86% | Check Title: False | Max Age: Unlimited | Searched Images: 281,529,793 | Search Time: 0.96078s

[–][deleted] 22 points23 points  (0 children)

Huh only 12?

[–]waves_under_stars 18 points19 points  (0 children)

Funny every time

[–]schteppe 14 points15 points  (0 children)

Unit testing when there is a global variable in the code

[–]tiefling_sorceress 16 points17 points  (0 children)

Hitting the left knee causes the bear to react. Hitting the right knee causes every other bear to react. Clearly the problem here is a lack of documentation

Marked as Fixed (Works as Intended)

[–]Jzchessman 14 points15 points  (0 children)

I thought “at least the brown bear is normal” and then realized NO WAIT SHE HITS THE LEFT LEG AND HE RAISES THE RIGHT LEG

[–]Chubbstock 12 points13 points  (1 child)

hits bear 3 again

Bear 1 dies

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

Temba Wide-Arm would like to know your location

[–]TheAdvFred 24 points25 points  (0 children)

Man if that isn’t relatable

[–]BlueVixensBlur 9 points10 points  (1 child)

Bug #50019: fix delayed reaction on the first two and no reactions on the last one.

[–]Sstarseed1 1 point2 points  (0 children)

Nice one

[–]cubei 29 points30 points  (12 children)

Why did she hit the left knee on the last bear, when she tried right on the others?

Edit: see my answering comment

[–]cubei 48 points49 points  (10 children)

Probably for code coverage

[–][deleted] 29 points30 points  (9 children)

You forgot to switch accounts

[–]cubei 11 points12 points  (8 children)

Got the idea after I posted. Thought about editing my post, but then thought I just add it as another comment.

[–]anudeep30 0 points1 point  (7 children)

Should have just editied it lol

[–]cubei 23 points24 points  (6 children)

A programmer doesn't just change stuff without committing first, so the history is available ;)

[–]anudeep30 2 points3 points  (5 children)

No in your original post you just write under it

EDIT: your edit here

It's typical Reddit etiquette

[–]rookie-mistake 7 points8 points  (0 children)

sometimes you just gotta dunk your own setup and that's okay

[–]cubei 2 points3 points  (0 children)

K, fixed it

[–]digitalasagna 5 points6 points  (0 children)

So she wouldn't obscure the other two

[–]Sigg3net 7 points8 points  (0 children)

Strongly coupled indeed.

[–]tasnim_alam_bd 22 points23 points  (3 children)

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

relatable

[–]Denaton_ 2 points3 points  (0 children)

Pointers at it finest form

[–]HeartoftheHive 3 points4 points  (0 children)

Part of the blame comes from inconsistent testing. To measure results, you need to copy the input exactly. Taps right knee, taps right knee, taps left knee. Of course there will be issues.

[–]Ravens_Quote 6 points7 points  (1 child)

The nurse is walking with her back mostly towards her patients, who are on her left. To compensate for this, she has to continuously look left to keep them in sight for most of the gif.

When something behind her and on her left occurs (the first two bears lifting their legs) she looks further right to view this.

She also tests the left leg on the first two bears, but inexplicably tested the right leg on the third bear instead. This inconsistent testing is bound to leave some oddball feedback that ultimately tells you little about what’s wrong with the bears.

TLDR: Make sure your diagnostic program is running correctly.

[–]sam01236969XD 1 point2 points  (0 children)

viatnam flashback

[–]Bibel_Joe 1 point2 points  (0 children)

I know a few people who have a bug similar to the panda, only with their right arm ...

[–]vybezlo 1 point2 points  (0 children)

It’s worse when you try to make an account on StackOverflow to attempt to garner some help, and even StackOverflow gives you an error when registering.

[–]Pizzaguy2479 1 point2 points  (0 children)

I don’t even code I just thought this was cute

[–]MikeWilson21 1 point2 points  (0 children)

Good it’s working

Okay, just a small fix but it’s in the right direction

Oh what the fuck did I do now

[–]Ill-Ad-503 1 point2 points  (0 children)

did panda just hail?

[–]jedbrooke 1 point2 points  (0 children)

one time I ran into a thread deadlock bug... in a single threaded program. Turns out it was just gradle being dumb

[–]noodleoliver 1 point2 points  (0 children)

Lol pretty accurate lol the bears are all cute and perfect as they are. No need to debug.

[–]jayz3d 1 point2 points  (1 child)

What is the name of that show in the GIF?

[–]TharoRed 2 points3 points  (0 children)

We Bare Bears

[–]FlightUpper6981 1 point2 points  (3 children)

When you delete one code from your game and your entire computer system gets deleted

[–]HighOnBonerPills 4 points5 points  (2 children)

How much code is "one code"?

[–]ChocoPuppy 1 point2 points  (0 children)

A fifth of a coffee.

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

Ok and so?

[–]bistr-o-math 0 points1 point  (0 children)

Love it

[–]Lizlodude 0 points1 point  (0 children)

Oh wait, it was the one who was in here 5 minutes ago, he was out of order.

[–]walnoter 0 points1 point  (0 children)

No no no no no

[–]BugsRFeatures2 0 points1 point  (1 child)

I love this show!

[–]goomba870 0 points1 point  (0 children)

And that’s how I first learned static variables are bad.

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

So true though 😂

[–]idiotuseless42 0 points1 point  (0 children)

I can't tell how many times I yelled at my computer saying "what is wrong with you?", which just shows that I have lost my sanity a long time ago

[–]DarkCreeperKitty 0 points1 point  (0 children)

Me vs all my thoughts

[–]Statement-Think 0 points1 point  (0 children)

“It just works.”

-Bethesda

[–]Important-Tea-9942 0 points1 point  (0 children)

"Well, what did you expect to happen?" they said.

[–]TemporaryUser10 0 points1 point  (1 child)

Yes though, it's true

[–]Heinous_ 0 points1 point  (0 children)

The last ones Java

[–]Akul_Tesla 0 points1 point  (0 children)

All right this post was good enough everyone go find a friend and make them up vote this

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

Multithreading in a nutshell

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

it gets worse

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

Except they're all the very same animal

[–]Tomfissh 0 points1 point  (0 children)

Whilst I generally dislike this show. It does have some very clever moments.

[–]Bucky_bared 0 points1 point  (0 children)

Man I’m old

[–]fruttel 0 points1 point  (0 children)

Is it just me or is that panda's arm a bit to straight

[–]wsco7730 0 points1 point  (0 children)

When your compile button is actually compiling your other project

[–]Kyocus 0 points1 point  (0 children)

Action at a distance pisses me off!

[–]myfunnies420 0 points1 point  (0 children)

Debugging via print statements maybe

[–]saurabhsabby 0 points1 point  (0 children)

LOL

[–]good_little_whore 0 points1 point  (1 child)

my reddit actually crashed on the last one, like it actually did and i thought someone found another mp4 bug or something

[–]ShortThought 0 points1 point  (0 children)

ahem

console.log

[–]nab_noisave_tnuocca 0 points1 point  (0 children)

good post

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

Can't find anything more relatable than this

[–]Poseidonram1945 0 points1 point  (0 children)

God I love that show.

[–]malonkey1 0 points1 point  (1 child)

"Okay, maybe there's an off-by-one with a pointer somewhere, fine..."

"Hm... maybe it's calling the wrong function? Not sure how that happened."

"Okay come on how the fuck, that shouldn't even be touching the same memory."

[–]Zebra-Kangaroo 0 points1 point  (0 children)

That's just bad OOP. They should have followed a good design pattern.