4 ms·
Every language these days has its "stack" for development. Sure you could sit down with vim and javac and write a "simple app". But once you use Gradle/Maven to
by nobleach 11y ago
Every language these days has its "stack" for development. Sure you could sit down with vim and javac and write a "simple app". But once you use Gradle/Maven to handle dependencies and build process. Once you use a nice unit testing framework... Why on earth would you not just fire it up and tune it for every project? Ruby, C# and every other language I've used has this "development stack" mentality, and now when I try out new languages, I research setting up the stack first!
- cnp 11y agoWhen I made the transition over to JS from another language a few years ago, this was exactly how I did it; I expected to have some kind of system in place that provided the tooling I needed to get the language that I wanted, and immediately landed on Node, preprocessors, etc, easing the transition immensely.
- vorg 11y ago> javac and write a "simple app". But once you use Gradle/Maven to handle dependencies and build Using Gradle or Maven to handle builds for Java require you to learn another syntax and vocabulary, i.e. Groovy or XML. In the case of Gradle/Groovy, if you set up the stack first, you'd need to learn another programming language before you even write your "simple app" in your target language Java, which is tedious at best. Perhaps Ruby, C#, and those other languages you've used use the target language for the build which makes more sense.
- kibibu 11y agoCompare to go, where you can go a very long way using "go get", "go build", "go run" etc.
- woah 11y agoThey just bundled some stuff into the language's CLI. This doesn't mean it somehow doesn't exist or that the language is any simpler.
- kibibu 11y agoNo, but it does mean that mostly everybody uses the same thing and doesn't worry about it.
- MadcapJake 11y agoNode.js apps can be even easier than that (only two necessary commands): `npm install` for `go get` and `node [script.js]` for `go run`. If you want to do compilation there are various solutions available to you as well!
- 0xCMP 11y agoActually you have `npm run named-command` too so you could get a go like thing going.
- Lazare 11y agoThe start and test scripts are special, and can be called directly. For an idiomatic node app, you'd clone the repo, then type `npm install` to get the dependencies, `npm test` to make sure the tests pass, and then `npm start` to run it.