D
24

Pro tip: Don't skip the error messages when you're just starting out

Last Tuesday, I spent 6 hours trying to get my first Python script to run. I kept ignoring the red text in the terminal because I thought it was just noise. Tbh, the error literally said 'File not found: data.txt' but I was too focused on my code. I finally read it, made the file, and it worked in 2 seconds. Honestly, has anyone else wasted a whole day on something that simple?
3 comments

Log in to join the discussion

Log In
3 Comments
haydenc10
haydenc1024d ago
I used to think reading errors out loud was silly... but your comment made me try it and it actually helps.
2
brooke_carter
That "wasted a whole day" feeling is the worst. I've been there so many times, staring at code when the answer was right in front of me. It's like your brain just refuses to see the obvious fix. Now I force myself to stop and read the error out loud. It saves so much time, even if it feels silly. What was the last thing you got stuck on?
1
blair_allen
Ever notice how this happens with everything, not just code? I spent ten minutes looking for my phone while I was talking on it. My friend tore her kitchen apart looking for a measuring cup she was holding. It's like when your brain gets locked on one idea, it just shuts down the simple answer. Maybe we all need to stop and say what we're doing out loud more often.
4