Anyone do that thing where you wonder why something isn't working and think how to fix it, only for 30 minutes later realise you have already implemented the fix somewhere else for another function and you forgot?
if its a compiler error, start commenting out stuff untill it compiles, if its a run time error, disable function logic and give a constant as return to see which function fucks up if its a logic error: sucks to be you
4
u/Torebbjorn Jun 01 '26
Instead of trying to find out why, try to find out what
2
u/Ruff_Ratio Jun 01 '26
Anyone do that thing where you wonder why something isn't working and think how to fix it, only for 30 minutes later realise you have already implemented the fix somewhere else for another function and you forgot?
2
u/Exelegious Jun 03 '26
2 and a half hours? Man...I wish I could find errors that fast.
\s of course.
2
u/socratic-meth Jun 01 '26
Be honest, did you copy and paste it out of an LLM?
1
u/Vamosity-Cosmic Jun 01 '26
Its not the errors that get you. It's when it just doesn't work.
1
u/Neo_Ex0 Jun 02 '26
if its a compiler error, start commenting out stuff untill it compiles,
if its a run time error, disable function logic and give a constant as return to see which function fucks up
if its a logic error: sucks to be you
1
u/Chidogrin Jun 02 '26
Perhaps the error isn't in the code, but rather the path you have chosen to take.
1
u/SovoK_404 Jun 02 '26
reaSON:
happy cake day btw
1
u/-goldenboi69- Jun 03 '26
Use the debugger ðĪŠ
1
u/CounterfeitSaint Jun 05 '26
Missing a semicolon.
1
u/[deleted] Jun 02 '26
[removed] â view removed comment