🐿️
18

Sat down to learn Python and found out most beginner tutorials skip error handling completely

I was going through a free course on YouTube last week and noticed something weird. Out of 20 videos, only 2 ever mentioned what to do when your code breaks. I looked it up and found a stack overflow thread saying over 70% of crash bugs come from missing try-except blocks. How are we supposed to build anything stable if nobody teaches us how to catch errors? Did anyone else run into this wall when they started coding?
2 comments

Log in to join the discussion

Log In
2 Comments
paul330
paul33018d ago
Out of 20 videos, only 2 ever mentioned what to do when your code breaks" - I mean, yeah, that sucks, but is it really that big of a deal? Most beginners are just trying to print "hello world" or sort a list, not build banking software. You can pick up try-except in like 5 minutes once you actually need it. Are you really making crash-heavy stuff right out the gate?
2
betty_shah
betty_shah16d ago
Remember learning to drive and nobody mentioning what to do when a tire blows out on the highway? Same vibe here. Most tutorials are just showing you the smooth road, and you kinda have to learn the scary stuff from your own dumb mistakes later. But honestly, knowing how to read an error message is way more useful than memorizing try-except syntax anyway.
6