4 ms·
The problem with your argument is that "every single mobile app worth its salt" will want to handle slow networks by showing pretty progress indicators, and jus
by Hixie 9y ago
The problem with your argument is that "every single mobile app worth its salt" will want to handle slow networks by showing pretty progress indicators, and just calling a single method won't do that.
Having said that, we definitely need to make Flutter's network story better. This isn't one of our near-term priorities, but medium term I plan to implement a library that abstracts away issues like unreliable networks, offline, etc, and has a very simple API.
- jbob2000 9y ago> showing pretty progress indicators, and just calling a single method won't do that. No of course not, but let's not go down that road because Dart loses that battle too. With fetch, I just attach the .finally() callback and set my loading flag to false. It's one extra line. Showing an error state is also one extra line using .catch(). > we definitely need to make Flutter's network story better You can try, but it'll just end up looking like fetch, it doesn't get any simpler than that. The fetch spec has been discussed on end, you're just going to have the same conversations they did. And lo, when you have undergone all the work of making Flutter a first class package, you will step back and say "huh, our view layer looks just like HTML and CSS, and our logic looks just like JavaScript... we recreated Web!"
- Hixie 9y agoWell hopefully I won't make the same mistakes this time. :-)
- munificent 9y agoIn case you don't know, Hixie used to be the editor of the HTML specification, so I'm pretty sure he's familiar with what that HTML and CSS are like and isn't likely to inadvertently recreate the web.
- gsnedders 9y agoIf I'm not mistaken, a large proportion of the Flutter team is made up of people who were part of the early Chrome team, many of them having worked on the web for 15+ years.
- jbob2000 9y agoI am glad that I did not know that, it might have influenced my decision to post and reply with my opinion (an apparently naive one).