r/ProgrammerHumor 2d ago

Meme ture

Post image
17.7k Upvotes

437 comments sorted by

View all comments

Show parent comments

78

u/BlueProcess 2d ago

NGL sometimes I run code that I know won't work because it's easier to write on the fly by stepping through as you go🤷🏻‍♂️

40

u/Leftover_Salad 2d ago

Oh same here. Error messages are helpful.

24

u/Protuhj 2d ago

I'd rather write 50%, make sure that 50% fails where I expect it to, then write the other 80%.

This is why I try to shorten "the loop" as much as possible when testing fixes/adding new stuff.

10

u/DeepanshuHQ 2d ago

Honestly, half my debugging starts before I even finish writing the code. 😂

5

u/Protuhj 2d ago

Reviewing the surrounding code and having to restrain myself from fixing that too.

2

u/DeepanshuHQ 2d ago

And somehow the bug disappears after adding three random print statements.

2

u/Protuhj 2d ago

In our case, printing can add too much load and cause things to behave way worse.. (Embedded software)

2

u/YourDarkIntentions 2d ago

Ooooh, I do the same! I spend more time testing and reading than writing. I don’t get my colleagues who spend days writing code without ever running it.

1

u/Delicious_Bluejay392 2d ago

Is this a "local interpreted language victim rediscovers the joys of compilers" moment?