4 ms·
You can downvote this, sure, it’s now so far down that most users can’t see it anymore. But that doesn’t change the facts. Good luck getting modern JavaScript
by kuschku 10y ago
You can downvote this, sure, it’s now so far down that most users can’t see it anymore.
But that doesn’t change the facts. Good luck getting modern JavaScript or TypeScript, without using any templates, in equal or less LOC, and easier to understand for a newbie, than my Java Spring Enterprise example below.
JavaScript is easy if you want to do tiny things, but as soon as it gets to larger projects, it has the same issues as PHP and other similar languages. Every language has some things it can do better, and some it does worse. Until JavaScript development slows down, and the compilation pipelines standardize, and there’s simpler ways to handle that, setting up a node.JS project will always be more work than a language where that has already happened.
- tracker1 10y agoI've done some relatively large projects in Node... though I tend to break things down into discrete components either based on deployable assets, or reusable assets. Node pipelines are pretty nice, not quite as nice as go's channels, but nice none the less. There are different options depending on libraries. I don't find it to be significantly more cumbersome than C#/.Net (which I have more experience than with Java). Also, your "example" has a LOT of assumed knowledge, more than a relatively simple express app, that's for certain. It really depends on the approach.
- kuschku 10y agoWell, I don’t think so. I had never worked with Spring or Java Enterprise, and could write the example after 1 hour of reading docs. After years of working with vanilla JS, and weeks of reading docs, I still can’t get a typescript compilation and CSS/SCSS compilation and minification pipeline right. Seriously, I still can’t get it working.
- tracker1 10y agoI've had better luck with flow over typescript, though frankly, I don't use either... I used flow instead of typescript for an angular 2 project a while ago. Not sure if the webpack story for typescript has improved. I've managed to get webpack + babel + sass working pretty readily, in about the same time you mention above.
- deleted 10y ago[deleted]