How you are using dcli? #183
whoizit
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
You asked me, how I use dcli?
I still haven't finished studying Dart Language Tour
I like Dart because it's similar to C with classes, it's simple, compilable, statically typed and Null safety sound. When I was looking to see if I could write scripts in Dart, I came across Dcli and at first glance - WOW, it looks awesome, it's even better then I can do on Python.
Of course it's not really scripts, because on low-performance machines it will be slower than Bash and Python scripts until you compile it. But I believe this will be fixed in the future and compilation will happen on the fly when the script is first run. And that won't be a problem. Right now I just recompile my scripts every time while I update my Linux distro and Dcli with
dcli compile --install --overwrite ~/bin/*.dart
Bash (and POSIX SHELL) is frankly a terrible language for scripts and it is unlike any other language.
I really like Python (and MyPy), but even more I like the idea of writing everything in one language.
Dart/Flutter/Dcli allows me to write compilable scripts, desktop, mobile, web, server and embedded applications with multi-platform support on one simple and beautiful language. And I like the way things are developing.
I have only published one Dcli script so far. And it seems much clearer than the POSIX SHELL script on the same page above.
In the future I will probably write all scripts in Dart and Dcli.
Beta Was this translation helpful? Give feedback.
All reactions