3 ms·
If only Java had a slick CLI tool like "dotnet" for C#. man that thing can do so much, so easily
by abledon 4y ago
If only Java had a slick CLI tool like "dotnet" for C#. man that thing can do so much, so easily
- SemanticStrengh 4y agoYou mean JShell? (yes the naming is perfect)
- twic 4y agoNo, the dotnet tool is more like Gradle or Cargo. You say "dotnet new" to set up a new project, "dotnet build" to build it, "dotnet nuget push" to release to an artifact repository, etc. The JDK doesn't have this because many of the concerns involved are outside its remit. Java does not define a project layout, a build process, or a way to acquire or distribute libraries. But the Java world does have Gradle and Maven, which are, for better or for worse, the options to satisfy abledon's desire.
- SemanticStrengh 4y agoThere is also Jlink and yeah I get your point, Gradle has moderate complexity and is extremely featureful.
- abledon 4y agothat seems to be a REPL. dotnet cli is more broad, great developer ergonomics imo. terse/concise design https://docs.microsoft.com/en-us/dotnet/core/tools/ https://docs.microsoft.com/en-us/dotnet/core/tools/ e.g. to make a new console app.... ``` c# dotnet new console java go install extra maven program (if your team uses maven)... mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 ```