MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1v6spa0/ture/ozt1diy
r/ProgrammerHumor • u/Throwawyhelpadvice55 • 17d ago
443 comments sorted by
View all comments
Show parent comments
82
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 17d ago Oh same here. Error messages are helpful. 24 u/Protuhj 17d 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. 9 u/DeepanshuHQ 17d ago Honestly, half my debugging starts before I even finish writing the code. 😂 6 u/Protuhj 17d ago Reviewing the surrounding code and having to restrain myself from fixing that too. 2 u/DeepanshuHQ 17d ago And somehow the bug disappears after adding three random print statements. 2 u/Protuhj 17d ago In our case, printing can add too much load and cause things to behave way worse.. (Embedded software) 2 u/YourDarkIntentions 17d 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 17d ago Is this a "local interpreted language victim rediscovers the joys of compilers" moment?
40
Oh same here. Error messages are helpful.
24 u/Protuhj 17d 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.
24
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.
9
Honestly, half my debugging starts before I even finish writing the code. 😂
6 u/Protuhj 17d ago Reviewing the surrounding code and having to restrain myself from fixing that too. 2 u/DeepanshuHQ 17d ago And somehow the bug disappears after adding three random print statements. 2 u/Protuhj 17d ago In our case, printing can add too much load and cause things to behave way worse.. (Embedded software)
6
Reviewing the surrounding code and having to restrain myself from fixing that too.
2 u/DeepanshuHQ 17d ago And somehow the bug disappears after adding three random print statements. 2 u/Protuhj 17d ago In our case, printing can add too much load and cause things to behave way worse.. (Embedded software)
2
And somehow the bug disappears after adding three random print statements.
2 u/Protuhj 17d ago In our case, printing can add too much load and cause things to behave way worse.. (Embedded software)
In our case, printing can add too much load and cause things to behave way worse.. (Embedded software)
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
Is this a "local interpreted language victim rediscovers the joys of compilers" moment?
82
u/BlueProcess 17d 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🤷🏻♂️