Has anyone considered making the examples a bit more practical? #2358
Unanswered
WarboxLiam
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently doing error handling and personally, I find errors 5 and 6 hard to even understand what's going on due to the terms used, all the keywords, enums, etc sound the same and it's awful to follow along with.
For example in errors6, this could easily be converted into a realworld example of an ecommerce basket, updating quantities.
A user has an input that they can type in, which gives us our ParseIntError.
We certainly aren't expecting a negative or zero values if it actually parses, so that use case is similar.
I just personally things that more real world examples that are actually easier to walk through could be something to consider. As soon as this example was explained to me in this way, things just made sense instantly.
Beta Was this translation helpful? Give feedback.
All reactions