B
0

That one Tuesday where my code actually compiled on the first try

I've been learning Python for about 3 months now, mostly through free tutorials. Last Tuesday I was working on a little calculator project and hit run expecting the usual 7 error messages. Instead it just worked. No typos, no missing parentheses, no logic loops. I sat there staring at the screen for a solid 2 minutes wondering if I broke something. Has anyone else had a perfect coding day that felt suspiciously wrong?
3 comments

Log in to join the discussion

Log In
3 Comments
faith_thomas
Wait, are you saying it actually ran without any errors the whole way through? Because I feel like that's one of those things that happens maybe once in a lifetime and then you spend the next month chasing bugs thinking you're cursed or something. idk, maybe it's just the universe testing us, like it gives you one perfect compile just to make you think you've finally got it, then next time you'll get 15 errors for missing a colon. I've had that happen a few times where I'll write something and it works first try, and I'm like "okay, what did I forget?" and I literally check the file path like three times. it's almost suspicious when the code does what you want, you know? like you're waiting for the other shoe to drop. but hey, maybe it means you're starting to get the hang of it and your brain is just catching up to the syntax.
9
amy974
amy97422d agoTop Commenter
nah i gotta push back a little here @faith_thomas. i feel like when code works first try its more about the project being simple enough that you cant mess it up, not the universe messing with you. like if you write a 5 line script and it runs, thats normal. but if you write 500 lines with loops and conditionals and it compiles clean? then yeah thats suspicious lol. but honestly i think we overcomplicate this. sometimes you just type the right thing and it works. doesnt mean you're cursed.
10
noaht15
noaht1522d ago
Is it really that deep though? Sometimes you just type something right and it works, no cosmic balance needed.
1