3 ms·
I've looked into Dart a few times and thought it looked interesting, but never really dug much into it. I've also really only heard of it being used in Google.
by TheAceOfHearts 10y ago
I've looked into Dart a few times and thought it looked interesting, but never really dug much into it. I've also really only heard of it being used in Google. Oh, and I remember hearing Notch was using it in a game jam a few years back.
I saw Flutter when it was first announced, and something that caught my eye back then was that it looked like it took some inspiration from React. I'm a big fan of React. Their home page [0] says: "Note: Flutter is an early-stage open-source project. We hope you try Flutter out and send us feedback." Would you say it's ready for production?
Could you provide other examples of use-cases for which you'd use Dart? Does it have good editor integration for autocompletion and linting? Is debugging painful? One of my favorite things about JS is Chrome Dev Tools.
I don't mean for this to come off as rude or negative, but I'd be interested in hearing a bit about where you consider the language or ecosystem falls short. I find discussing the downsides, limitations, and problems helps in understanding the tool and setting expectations. Nobody expects a magic wand solution, of course.
One of my pain points from working with a large SPA is architecting the application so it's easy to lazily views as needed. By itself it's not very difficult, but getting the whole build / development / test environment workflows setup is more challenging to get right. Does Dart have good tooling for generating builds? I use Webpack with the large JS SPA I work on, and one of its killer feature is that it'll crawl the dependency graph, copying assets to the output folder, and updating references. Unfortunately, the default behavior makes it most easy to generate a single large JS bundle.
[0] https://flutter.io/ https://flutter.io/
- ceronman 10y agoI haven't used Flutter yet, and I think it's probably not production ready yet, but I think it has a lot of potential. Regarding editor support, it's been great from the very beginning. A few years ago, the Dart Editor was a pleasure to use and nothing else in frontend development was even close, this was before vscode existed. It had integrated debugger and code completion worked really well, it's a bit sad that they decided to discontinue the editor, but these days WebStorm has all the features and more. There are also Atom and vscode plugins but I haven't tried them. Debugging experience I think it's one of the highlights of Dart tooling. The observatory tool is great and it not only helps with debugging but also with profiling. I seriously recommend it. More good tooling in Dart includes the package manager which is very well designed and easy to use, and the code formatter which just does the right thing. Where it falls short: JavaScript interoperation. There is some, but very limited. They are working on it, but it's not quite there yet.
- bitmapbrother 10y agoThe Chrome Dev tools are nice, but I'll take full integration with IntelliJ IDE any day. https://flutter.io/intellij-ide/ https://flutter.io/intellij-ide/
- j1436go 10y agoI'm missing autocompletion for vim.
- munificent 10y ago> Does it have good editor integration for autocompletion and linting? Yes, we have full IDE support in IntelliJ with auto-complete, go to definition, find references, and all the other navigation stuff you expect from a modern typed language. Similar features are integrated into most other editors too, though I'm not as personally familiar with them. I know we have a lot of people using Dart with Sublime, Atom, Emacs, and Vim. > Is debugging painful? One of my favorite things about JS is Chrome Dev Tools. There's debugger integration into IntelliJ and Atom. If you're using the dev_compiler[1], it generates human-friendly JS that you can step through, and also generates full source maps[2]. That all works really nicely with Chrome Dev Tools. The VM also includes a really powerful profiler/debugger[3] that you can connect to with a browser to poke around and see what's going on in your running program. [1]: https://github.com/dart-lang/sdk/tree/master/pkg/dev_compiler https://github.com/dart-lang/sdk/tree/master/pkg/dev_compile... [2]: https://www.html5rocks.com/en/tutorials/developertools/sourcemaps/ https://www.html5rocks.com/en/tutorials/developertools/sourc... [3]: https://dart-lang.github.io/observatory/ https://dart-lang.github.io/observatory/