5 ms·
If I write an application I use Java as I am most comfortable with it. But it is not always the best choice. If I needed to write an application for windows wit
by ivolimmen 3y ago
If I write an application I use Java as I am most comfortable with it. But it is not always the best choice. If I needed to write an application for windows with a GUI I would be more successful with C# as it would look more native. If I am writing a command line tool it would be a faster and smaller application if I build it in Go, Dart or Crystal. But then I would need to be good in it as well.
I like seeing these kinds of posts. I often script in Groovy as I am fluent in Java. I like to experiment with other languages when I have time...
- hocuspocus 3y agoAdmittedly I don't know Groovy well and I'm a bit biased due to bad experiences with Gradle builds and Jenkinsfiles. But if you're most comfortable with the JDK, Scala 3 with the Scala CLI provides an unmatched developer experience for small scripts and command line tools. And the output can be self-contained JAR, a GraalVM native image, or even a Scala Native binary if you use compatible libraries.
- Alifatisk 3y agoI feel like the Dart syntax is very very close to Java!
- ivolimmen 3y agoIf you like to experiment with a language that is similar to Java is suggest you try Vala. It looks a bit like Java but has some differences and uses ref counting instead of garbage collection. It compiles to C++ (or C?) and then to native; this makes the build extremely steep and difficult but once you get that going it is really nice.