this post was submitted on 23 Jul 2023
722 points (100.0% liked)

Programmer Humor

32572 readers
102 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Speculater@lemmy.world 9 points 1 year ago (1 children)

Sometimes starting from someone else's code and stripping only to the functions you need is fun!

[–] db2@lemmy.one 8 points 1 year ago (1 children)

That's how you find that one variable that isn't used anywhere but breaks everything if you remove it.

[–] Speculater@lemmy.world 7 points 1 year ago (1 children)

Then you fill the fucking code with print statements because you don't know to use debug, realize the variable feeds some stupid fucking function that does nothing but has to be there and a few hours later comment out said print statements and just re add the variable.

[–] db2@lemmy.one 6 points 1 year ago

You know, it occurs to me that doing that with print really isn't any different than the accepted method of debug logging other than where the output is directed to.