Re:Clojure at Netflix (2013) [slides]
by Scarbutt on Wednesday October 31, 2018 @03:18PM
(#18348509)
To clarify, the reason I prefer nodejs (for web apps) over clojure these days is the vast amount of libs and documentation for almost all your needs. Clojure has the java ecosystem, but it was very tedious (more cognitive load) investing lots of time doing interop instead of just focusing on the problem at hand. Interop is both a feature and a curse.
Of course, as a language I find Clojure superior in almost every way compared to JS.
Re:Clojure at Netflix (2013) [slides]
by CyberSun on Thursday November 01, 2018 @06:08AM
(#18352459)
> Clojure has the java ecosystem, but it was very tedious (more cognitive load) investing lots of time doing interop instead of just focusing on the problem at hand.
I suspect you have no JVM/Java experience? Because I do, and I don't in NodeJS, and I find the reverse to be true in my case.
You can use ClojureScript on top of Node. My team started using Node for some services, and I published Macchiato based on that https://macchiato-framework.github.io/
I like the idea behind Macchiato but unlike it's Clojure cousin, Luminus, there doesn't seem to be any documentation on database access. I especially like HugSQL in Luminus. Is it possible to use it with Macchiato?
There is macchiato-sql [1] which is modeled on HugSQL. I've used it for a couple of projects, but YMMV. I tend to use sequelizejs since it works with most databases and it's well documented.
Bejesus, Sequelize.js is a LOT more work than HugSQL. I keep looking at Macchiato but without a Clojurescript database layer I can't see it being useful.
I mean if you're on Node, it's not going to be any better with plain Js either. Stuff like this is precisely why I prefer the JVM ecosystem myself.
Re:Clojure at Netflix (2013) [slides]
by paulie_a on Wednesday October 31, 2018 @03:50PM
(#18348729)
Honestly the vast amount of libs is the reason I don't like nodejs. It's a lot of shoddy duplicates.
Re:Clojure at Netflix (2013) [slides]
by abritinthebay on Wednesday October 31, 2018 @02:51PM
(#18348295)
We’re heavy users of LOTS of languages at Netflix to be fair. Clojure included.
Since Netflix likes to constantly write about their tech (videos, blog), my guess would be no, but interested in an official answer too.
They are now heavy users of nodejs though.
I personally ran out of reasons to prefer another dynamically-typed language over Javascript on the server (not a hard rule of course).