Thread Reader
Share this page!
×
Post
Share
Email
Enter URL or ID to Unroll
×
Unroll Thread
You can paste full URL like: https://x.com/threadreaderapp/status/1644127596119195649
or just the ID like: 1644127596119195649
How to get URL link on X (Twitter) App
On the Twitter thread, click on
or
icon on the bottom
Click again on
or
Share Via icon
Click on
Copy Link to Tweet
Paste it above and click "Unroll Thread"!
More info at
Twitter Help
Sandro Maglione
@SandroMaglione
The Coding Explorer 💻・Sharing patterns to build type-safe web & mobile apps・Typescript・@EffectTS_・React・XState Helping devs at https://t.co/5ongGuhjEU 🚀
Subscribe
Save as PDF
Oct 18, 2022
•
15 tweets
•
4 min read
Error handling is hard, harder than you think 🤔
Let's just see a simple example 💁🏼♂️
In how many ways can this
#dart
code below fail?
The answer will surprise you 👇🧵
Note: fail can mean different things ☝️
Here we mean anything that will crash the app (if not handled)
Errors or Exceptions 👇
https://twitter.com/SandroMaglione/status/1581879229121122304
Save as PDF
Oct 17, 2022
•
12 tweets
•
4 min read
What if your
#flutter
app fails? Should you throw? Error? Exception?
#dart
gives you both Error and Exception 🎯
But how do they work? Which one should you choose? 🤔
Here is the answer 👇🧵 Error & Exception ‼️
#dart
has both of them, but they are not the same 💁🏼♂️
👉 Exceptions: conditions that you can plan ahead for *and catch*
👉 Errors: conditions that *you don’t expect*