G
1
c/coding-for-beginnersben402ben4029d agoProlific Poster

Built my first function that actually did what I wanted on the first try.

Last night I wrote a script that pulls user names from a CSV file and sorts them alphabetically, and it worked without throwing an error for the first time in three weeks; has anyone else had that moment where everything just clicks for no reason?
2 comments

Log in to join the discussion

Log In
2 Comments
the_shane
the_shane9d ago
Wait, are you sure you actually want it to work on the first try? I mean, the whole point of coding is the thrill of the chase, right? The debugging, the head-scratching, the panic when you accidentally delete a semicolon and everything breaks. That's where the real learning happens (or so I've convinced myself after 47 failed attempts). If your code works perfectly the first time, you're basically cheating yourself out of a character-building experience. Plus, you'll never have that sweet, sweet dopamine hit when you finally fix a bug at 3 AM in your underwear.
2
claire958
claire9589d ago
Do you ever wonder if we're all just adrenaline junkies who found a cheaper hobby than skydiving? Solidarity on the 3 AM underwear debugging sessions, that is where the real character is built.
4