Proper Error Handling in Flutter & Dart (#1 - Principles)

Reso Coder
Reso Coder
52.9 هزار بار بازدید - 5 سال پیش - 📗 Learn from the written
📗 Learn from the written tutorial & get the code 👇👇
https://resocoder.com/proper-error-ha...

🎯 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

As much as we'd all like to close our eyes and pretend that errors don't exist, we still have to deal with exceptions on a daily basis. Modern languages, including Dart, support exception throwing and catching. However, if you've developed apps for some time you may have become frustrated with this special flow of errors in the program. Is there a way to return errors just like you return regular values while keeping the code maintainable?

This two-part tutorial series will show you how to deal with errors properly. In the first part, you're going to learn the best practices of classic error handling, using try-catch blocks. The second part will introduce powerful concepts from functional programming that will make handling errors even more streamlined.

Go to my website for more information, code examples, and articles:
https://resocoder.com

Follow me on social media:
Instagram: resocoder
Facebook: resocoder
Twitter: resocoder
5 سال پیش در تاریخ 1398/09/20 منتشر شده است.
52,948 بـار بازدید شده
... بیشتر