4 ms·
I think it's a bit over the top to compare Scala to JavaScript and node.js. If you're comparing the two you have way more flexibility than you should because t
by leokun 13y ago
I think it's a bit over the top to compare Scala to JavaScript and node.js.
If you're comparing the two you have way more flexibility than you should because these are two widely divergent tools with different implications reaching beyond "easier" or "faster." I don't think people ought to even consider scala if they're considering "easy" as being a significant factor.
Scala enjoys type safety and compilation and a vast and deep sophisticated feature set, not the very least of which is inherited from the proven and storied java libraries. Node.js is a mess of shit heaped on the turd that is script-kiddy npm-land covered with int-less and unicode unsafe JavaScript.
- jwcooper 13y agoThis is such an odd argument. As a developer that likes to produce usable products, 'easy' is something I'm always looking for. Why not? Just because something is 'easy' doesn't mean it's inadequate. It all depends on what you're building. Also, your misguided rant against node and npm rather hurts your credibility. Your argument was at least ok up until that point.
- leokun 13y agoI'm sorry, it is over the top, I'm just so tired of npm libraries I depend on going dark or changing things without updating the version.
- Q_the_Novice 13y agoFIY, npm does not allow you to push a module version more than once.
- leokun 13y agoPretty sure dependencies can come straight from a git url, bypassing npm. Put something on npm, and in your package.json you can depend on something straight up from github. npm will install and build that and it may break your stuff, it's a gamble. Given how dependencies nest into a massive web, you don't have to use many things before you end up with something that breaks you.
- elliotf 13y agoI think you're looking for npm shrinkwrap: https://npmjs.org/doc/cli/npm-shrinkwrap.html https://npmjs.org/doc/cli/npm-shrinkwrap.html It locks in all dependencies, including dependencies of dependencies, and turtles all the way down.
- Touche 13y agoshrinkwrap just locks down a version of a dependency, if the dependency points to a git master branch, that's not locked down. shrinkwrap doesn't install any code. I think his point is valid, although also probably still very rare.
- elliotf 13y agonpm will translate the git branch to its commit sha when you `npm shrinkwrap` so you're pretty well covered.
- vpatryshev 13y agoIt's interesting how lack of understanding turns into a declaration of misunderstanding.