r/ProgrammerHumor • • Jan 02 '22

Debugging Code Be Like.

58.4k Upvotes

283 comments sorted by

View all comments

1.8k

u/waremi Jan 02 '22
  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.

944

u/Quack69boofit Jan 02 '22

Number 2 hurts me to my core

450

u/i3908 Jan 02 '22

Eat more fiber my friend

133

u/[deleted] Jan 02 '22

[removed] — view removed comment

0

u/[deleted] Jan 02 '22

[deleted]

0

u/[deleted] Jan 02 '22

[deleted]

12

u/veedant Jan 03 '22

Me too, guess I gotta collect myself

→ More replies (1)
→ More replies (1)

76

u/N00N3AT011 Jan 02 '22

"WHY THE FUCK ISN'T THIS WORKING"

looks at tabs in editor

"oh"

40

u/DefaultVariable Jan 02 '22

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

→ More replies (1)

70

u/mindbleach Jan 02 '22

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

12

u/marxinne Jan 03 '22

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

22

u/mindbleach Jan 03 '22

And then you reach for ctrl+z and weep.

13

u/marxinne Jan 03 '22

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.

→ More replies (2)

21

u/spainman Jan 02 '22

Hurts me right in the kernel

8

u/japirate777 Jan 02 '22

Setting the wrong starting scene in Godot Moment

→ More replies (5)

102

u/trwolfe13 Jan 02 '22

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.

21

u/[deleted] Jan 02 '22

Locking where?

32

u/trwolfe13 Jan 02 '22

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.

16

u/[deleted] Jan 02 '22

That sounds awful!

8

u/Sir_Applecheese Jan 02 '22

Good luck dude.

→ More replies (2)
→ More replies (2)

0

u/[deleted] Jan 02 '22

[deleted]

→ More replies (1)

16

u/Kyouma118 Jan 02 '22

I felt that...

9

u/rudolfs001 Jan 02 '22

Break points and step throughs baby, all day long

7

u/[deleted] Jan 02 '22

[removed] — view removed comment

5

u/RenaKunisaki Jan 03 '22

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

→ More replies (12)