Lurker News
As a long time software developer who hasn't done full stack in awhile (since 2013), what's everyone's go to web hosting stack today? Wanted to quickly put together a simple website with react/node.

Comments (441) 141 threads

Earlier comments
vemv1 reply#
Clojure + ClojureScript

* One language across the whole stack
* Its approach for React makes it both easier to grasp and more correct/maintainable than its ES6 counterpart
* Gradual typing for the parts that matter
* The overall experience is the opposite of "Javascript fatigue"
Needs some investment, cannot be denied but it pays off over the years.

swah1 reply#
* Feels lonely
harperlee1 reply#
That is true, at least from here. But it sure is a pity, as the technology is fun and technically awesome, and the stack is not so esoteric - it is actually used by a lot of people.

Part of the reason is that libraries can be “finished” (as in, so stable that they don’t need frequent updates), so there is way less busywork and noise in the open.
Another reason is that clojure is open source but not free software, and this has affected the community. There was a big discussion lately about this, where some vocal leaders of the community complained about it: https://news.ycombinator.com/item?id=18538123

pushtheenvelope#
thanks for sharing your thoughts.

Could you elaborate on why or how libraries feel "finished" in Clojure versus in other languages?
Also, curious about the gradual typing bit. How sophisticated is Clojure's type system once applied, compared to one found in (say) Typescript, or as another extreme Scala?

tanin2 replies#
* Statically-typed languages like Typescripts, Kotlin, Scala, or even Java. Avoid dynamic-typed language in general

* Single-page application, which means complete separation between frontend and backend. When developing locally, you have to run two servers. I prefer the traditional way but it's hard to make JS build tools (e.g. webpack) to work well.
My choice is Playframework (because I know Scala well). The frontend is Vue in Typescripts.
I am not using the single-page application and have developed a Playframework plugin to make it work seamlessly (e.g. hot reloading) with Vue/webpack (https://github.com/GIVESocialMovement/sbt-vuefy). It wasn't easy to do.
I imagine other web frameworks would encounter the same issue, so I can't recommend the not-single-page-application way.

mkurz#
Same here: Playframework for backend - but using Java instead of Scala.

Using it for many years already, that's probably why I am most productive in it. However I try to look at other frameworks every now and then (Spring, Django) but I always come back to Play, because it just feels more "right" to me.
BTW: You can use Play without Scala, but Java only. No problem. There seems to be this wrong assumption that Play is a Scala only framework - which is wrong. Yes, Play is written mainly is Scala (69% according to GitHub stats) however as a framework user you can choose between Java or Scala. Or even mix both languages. Back in the early Play 2.x days some features/components of the framework where usable only via Scala, meaning you had to write Scala code to make use of them, however these days are long gone. We run major projects in production written entirely in Play Java.
Play 2.7 will be released soon, containing many nice enhancements and fixing many hickups (for Java users at least). It will be a really great release!

fxfan#
Why wouldn't you even mention Scala.js given you use play. Its amazing.and specially god sent with the code reuse across client and server.
honopu1 reply#
You can go really far with node. I'm a node js and Vue dev these days, but I think we will end up switching over to React for public facing stuff due to ease of hiring and getting devs to work in it. I like sticking to one language, it performs pretty well, and is fairly easy to hire for and get help with.

I am looking at React on the front-end instead of vue, due to how much easier it is to hire for react.
The isomorphic/universal rendering is really awesome for node on the server, one set of templates vs two, plus it seems like the GraphQL stuff is way more mature on node. We're not currently using GraphQL, but having that option open to us is nice.
Combined with all the success stories from Linkedin, Paypal and even Walmart around moving stuff to node, it's also an easy decision to defend.
I'm not a huge fan of debugging node, that could be a bit improved, but overall I am happy with the choice to try to build everything in node unless there's a compelling reason not to.

christophilus#
I prefer React to Vue, and MithrilJS over anything else. But I don’t think that hiring should be difficult for any of those. If you find someone who knows React, they can easily pick up MithrilJS or Vue, no?

Load more comments