3 ms·
I'm a backend developer; so not much stake in this game. But honest question: why does this need a relatively unknown and unloved language, i.e. Dart? I mean Go
by jillesvangurp 8y ago
I'm a backend developer; so not much stake in this game. But honest question: why does this need a relatively unknown and unloved language, i.e. Dart? I mean Google just made a big commitment to Kotlin, which is awesome (using it on the backend) and has lots of momentum, and does native compilation as well. So what is up with Dart, aka yet another language not quite unlike swift, java, javascript, c# and indeed kotlin? They've been pushing Dart for nearly a decade and I've yet to meet a single developer specializing in it. I more or less considered this completely dead, obsolete, irrelevant, and forgotten until Google started talking about this flutter thing.
Why is this language needed at all? What's so good about this flutter thing that it could not possibly be done with other languages (i.e. Kotlin) but must have its own language (and associated tools, and other cruft).
I mean, I look at this and think: when is Google going to walk away from this one (again)? Or did they already and just not bother to inform the poor people behind it. It sort of fits in a long line of Google abandon ware. Call me cynical but; really honestly: is this a last ditch attempt at getting Dart on people's agenda or just plain and simple dead on arrival abandon ware.
- Apocryphon 8y agoTechnical reasoning for Dart: https://hackernoon.com/why-flutter-uses-dart-dd635a054ebf https://hackernoon.com/why-flutter-uses-dart-dd635a054ebf https://flutter.io/docs/resources/faq#why-did-flutter-choose-to-use-dart https://flutter.io/docs/resources/faq#why-did-flutter-choose... As for having to learn another language- Dart seems simple and boringly conventional enough to pick up. And it's not as if there isn't ample precedence for mobile engineers having to learn a niche language to make apps. How many Swift, Kotlin, or Objective-C uses are there outside of mobile apps right now? How many servers are running Vapor? How many programs are using Kotlin/Native? Which isn't a knock on those projects. Like Flutter, they're all relatively new endeavors using fairly new languages. And so, Dart might not be used as much yet, as it's not the native language of choice, and Google's attempts to promote it in web haven't caught on, but low adoption at the beginning doesn't mean it's fundamentally unsound.
- ptx 8y agoIt seems to mostly boil down to the fact that they were able to work together with the Dart team to integrate the tooling, compiler and VM to provide a good debugging and hot reloading experience. Kotlin/Native was not really ready at the time they started on Flutter. But otherwise, I think Kotlin would be a much better fit, since it has fairly unique features to support building UI hierarchies[1] in code the way Flutter wants to do[2], which Dart lacks. They way this kind of code has to be written in Dart reminds me of old Java code, with callbacks using anonymous classes for lack of lambda functions. [1] https://kotlinlang.org/docs/reference/type-safe-builders.html https://kotlinlang.org/docs/reference/type-safe-builders.htm... [2] https://flutter.io/docs/development/ui/layout#step-2-implement-the-title-row https://flutter.io/docs/development/ui/layout#step-2-impleme...