Why are Exceptions taught SO early? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite

Why are Exceptions taught SO early?

I've been self-taught code and don't understand why exceptions are taught to beginners as early as the third section. They can't comprehend where they should be using them, let alone have big enough code to be able to use them properly. If you're anything like me you need an example to play around with that makes sense, not some 4 liner that almost everyone starting out forgets about. I believe that exceptions should come last because they confuse and deter new-comers to SoloLearn. Am I alone in thinking this?

12th Jun 2019, 7:03 PM
Evan Martine
2 Réponses
Lol, you are a real programmer, when you count the sections from 0. Why do you think exception handling is hard for beginners? I don't think exceptions handling is so complex for beginners, because I think it is similar to if-else statements. I think that OOP concepts is especially the most difficult. It was nice to have something light after the OOP section.
12th Jun 2019, 9:02 PM
Seb TheS
Seb TheS - avatar
Seb TheS Lol I didnt even realize I did that haha. The example they give never clicked with me and I had to source search to understand that exceptions are meant for lengthier codes and 'not' what a beginner will typically run into.
12th Jun 2019, 9:36 PM
Evan Martine