Dart is awesome for scripting
Over the past year, I have been working on my Chinese learning app (recently published to Android *yay*) and I have to work with a lot of data, like dictionaries, example sentences, character decompositions, stroke orders, and a bunch of other stuff.
I used to be a hardcore Python guy whenever it comes to scripting, but not being able to import all the classes/functions from my Flutter project was a showstopper, so I started writing Dart scripts. And now I absolutely love it and even prefer it over Python!
I think a major reason is how much nicer functional programming feels in Dart compared to Python. Most of the data I'm working with is written line-by-line in text files and in Dart I can just start with a simple File("...").readAsLinesSync()
and then chain a bunch of map
and where
.
The only remaining problem for me is the size of the ecosystem. There are still too many use cases where nobody has bothered to write a Dart library yet. Examples that I have encountered are font management (`fonttools` in Python) and image manipulation (`wand` in Python).
What do you think?