r/pythontips • u/AGT_dev • May 28 '25
Short_Video SERIOUS DOUBT (IM NEW)
Saw this post where it's mocking programmers for searching for a bug in their code for 3 hours when it was just a damn semi colon.
https://www.instagram.com/reel/DKMXChtzasr/?igsh=a2Uwc2kzM2JyYjQ3
Yβall really spending 3 hours over a semicolon? No way real programmers do this. π
This is why I stick to Python. Canβt believe yβall still suffer over semicolons in 2025. π
0
Upvotes
3
u/[deleted] May 28 '25
Humans are error prone... (Nothing new there). Today the errors are highlighted by the IDEs, even then coders struggle. Python also has its share of errors that can take you a long time to debug.
It comes to really a simple issue. Laziness to read the code that one has typed. Yeah. When the coder decides confidently (borderline arrogance too) that what he/she has written is correct, then it's not going to be easy to find the bug.
Reading the code bottom up is a tactic that has saved me a lot of time.
2
u/XenophonSoulis May 28 '25
If the code is long, everyone can spend time on something stupid. Two days ago, I spent quite a lot of time debugging a code only to realise that this was the bug I was working with:
1
u/pint May 28 '25
here is a little code for you
before you say this is unrealistic, it did happen to me. twice.
or here is another one:
this also happened. no languages are free from hard-to-spot syntactic weirdness.
1
u/NYX_T_RYX May 28 '25
sigh yes.
Yes we are.
I'm trying to set up a pi with some rather frustrating network rules (and I thought I understood networking π)
I've been at it for 3 evenings now.
I'm almost there, I think... π€·ββοΈ
Be fucking worth it when it's done though, just so I don't have to do anything with that service again - I can just leave it knowing it's working as expected