Back to Browse

Functional Error Handling in Flutter & Dart (#2 – Either, Task, FP)

28.1K views
Dec 14, 2019
36:17

πŸ“— Learn from the written tutorial πŸ‘‡πŸ‘‡ https://resocoder.com/proper-error-handling-2 🎯 The biggest Flutter conference in Europe: https://fluttereurope.dev πŸ“§ Get Flutter news πŸ“° and resources: πŸ‘‰ http://flutter.education πŸ‘¨β€πŸ’» Do you write good code? Find out now! https://resocoder.com/good-code-quiz From the first part, you already know that you shouldn't catch every exception with a blanket catch statement and you also learned how to get error messages over to your state management solution, such as a ChangeNotifer. Some may say "That's it!", but as proper software developers we should prefer hard rules over conventions. Currently, we won't get any compile-time or even run-time errors when we don't display an error message to the user. Secondly, we treat error flow and "success data" flow separately - one through exceptions, another through return values. Similarly, we store the "success data" and its associated Failure in two distinct fields in the ChangeNotifier... Is there a way to join them? Go to my website for more information, code examples, and articles: ● https://resocoder.com Follow me on social media: ● https://instagram.com/resocoder ● https://www.facebook.com/resocoder ● https://twitter.com/resocoder

Download

0 formats

No download links available.

Functional Error Handling in Flutter & Dart (#2 – Either, Task, FP) | NatokHD