💡
7
c/coding-for-beginners•ellis.faithellis.faith•26d agoProlific Poster

Why does nobody talk about how tutorials skip error handling?

I spent 3 weeks following a Python tutorial series and felt solid until I tried to run my own script with bad input. Every tutorial showed the happy path, no one covered what happens when the file is missing or the user types letters instead of numbers. Then I found the official docs on exceptions and realized the tutorial left out like half of real coding. That surprised me because I thought I was learning the language, but I was just learning the demo. Now I check the docs first and use tutorials only for quick examples. Has anyone else hit this wall where a course skipped the boring but necessary parts?
1 comments

Log in to join the discussion

Log In
1 Comment
davis.noah
davis.noah25d agoTop Commenter
Is it fair to blame the tutorial for not covering every edge case, though? Most beginner courses are trying to show you how the pieces fit together, not give you a full manual. I learned way more by breaking my own code and reading the traceback than I ever did from a tutorial, and that's kind of the point.
1