10
Rant: Tutorials keep skipping error handling, is that on purpose?
Honestly, I've been going through a 12 part course on Python and every single example just assumes the file exists or the input is correct. Not one line of try/except until lesson 9, and by then I'd already built 3 broken scripts that crashed on bad data. Tbh, it feels like they're teaching you to write code that works only in a perfect world, not in real life where someone types a date wrong or a CSV has a blank row. Ngl, I think beginners should learn errors first, but maybe the courses think it's too scary for day one. Which side are you on, should error handling be front and center or saved for later?
1 comments
Log in to join the discussion
Log In1 Comment
michaelchen22d ago
Three broken scripts by lesson 9? That's honestly wild.
9