News for hackers. Stuff that matters.
Re:Play, Scala, and Iteratees vs. Node.js and Socket.io by kirinan on Wednesday December 04, 2013 @01:35PM (#6849003)
As someone who has used both, I have to give this battle to Node.js and Socket.io. The ease of use because of the common client/server code almost blurs the line between the client and server and makes it almost a pleasure to use. Whereas in Play/Scala, there isn't a libary I can use for both the client and server, thus I either have to write my own client library (or use one) and then write my server code. From a maintainability standpoint, Node, in this particular use case, just demolishes Scala/Play.
Re:Play, Scala, and Iteratees vs. Node.js and Socket.io by kodablah on Wednesday December 04, 2013 @01:50PM (#6849139)
Your main point appears to be sharing code on the client and server side. Scala.js has reached 0.1 and is quite decent [1]. Personally, the only code I find worth sharing is validation code and template rendering code. As for "maintainability", I find it is much lower in node.js and JS projects in general. Each has its own structure and is scary to refactor (unless you're a TypeScripter or something). I don't believe it's fair to use those two points to say it "demolishes" Scala/Play. Also, some webapps do real work per request (not just routing IO), and even though it is very quick (i.e. not worth farming out to a resque-like job engine or a web-worker in node), the fact that it blocks the node process scares me as well.

1 - http://www.scala-lang.org/news/2013/11/29/announcing-scala-j...

Re:Play, Scala, and Iteratees vs. Node.js and Socket.io by leokun on Wednesday December 04, 2013 @01:44PM (#6849099)
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.

Re:Play, Scala, and Iteratees vs. Node.js and Socket.io by jwcooper on Wednesday December 04, 2013 @01:53PM (#6849170)
This 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.

Re:Play, Scala, and Iteratees vs. Node.js and Socket.io by leokun on Wednesday December 04, 2013 @02:06PM (#6849270)
I'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.
Re:Play, Scala, and Iteratees vs. Node.js and Socket.io by Q_the_Novice on Wednesday December 04, 2013 @02:50PM (#6849634)
FIY, npm does not allow you to push a module version more than once.
Re:Play, Scala, and Iteratees vs. Node.js and Socket.io by leokun on Wednesday December 04, 2013 @03:05PM (#6849746)
Pretty 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.
Re:Play, Scala, and Iteratees vs. Node.js and Socket.io by elliotf on Wednesday December 04, 2013 @05:36PM (#6850931)
I think you're looking for npm shrinkwrap:

https://npmjs.org/doc/cli/npm-shrinkwrap.html

It locks in all dependencies, including dependencies of dependencies, and turtles all the way down.

Re:Play, Scala, and Iteratees vs. Node.js and Socket.io by Touche on Wednesday December 04, 2013 @05:48PM (#6851037)
shrinkwrap 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.
Re:Play, Scala, and Iteratees vs. Node.js and Socket.io by elliotf on Wednesday December 04, 2013 @06:12PM (#6851185)
npm will translate the git branch to its commit sha when you `npm shrinkwrap` so you're pretty well covered.
Re:Play, Scala, and Iteratees vs. Node.js and Socket.io by vpatryshev on Wednesday December 04, 2013 @05:28PM (#6850863)
It's interesting how lack of understanding turns into a declaration of misunderstanding.