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
threeseed1 reply#
Scala, ScalaJS, Slinky React.

No Javascript to learn and no worrying about ECMA versions or whatever today's new build tool is. Shared code between client and server. Type safe so you can get a proper IDE, refactoring and a lot less bugs. Full reuse of React + Javascript libraries as well as the incomparable JVM ecosystem on the backend.
Also probably the fastest and most scalable language you can use and is used at Twitter, Netflix, Linkedin, Spotify, Tumblr.

mark_l_watson#
Thanks for the Slinky reference, I had not seen it before. I spent some time evaluating Scala.js a few years ago and liked it, but ended up not using it. When I retire from my full time job in a few months I am planning on reworking/rewriting a few of my web apps and I will do an evaluation of Scala.js with Slinky.
_xnmw3 replies#
My safe enterprise monolith stack for long term maintainability and high productivity is:

Backend: Django
Realtime/DB: Realm + Postgres
Frontend: Angular
Surprised few have mentioned Angular yet. It is highly opinionated unlike React, and backed by a giant unlike Vue. Seems like a safer enterprise choice.

jf-#
It is. Angular 7 and .NET core are a particularly good pairing.

I’d go further and say this is a good combination for any team who want sound frameworks with out-of-the-box functionality, without having to research the ecosystem and discriminate between lots of third party modules.

tinyvm1 reply#
> It is highly opinionated unlike React

Agree on that point , I like Angular because it's opinionated compared to React.
> and backed by a giant unlike Vue
Strongly disagree , Vue is backed by many large corporations and unlike AngularJS was designed to guarantee backward compatibility.
AngularJS not being compatible with Angular is what has killed for good the frameworks and left thousands of entreprises in dust when they believed angular would become a standard because "it's backed by a giant".
Workings for banking sector , I've many customers build CRM or KYC applications on top of Nuxt. Developers love the Vue ecosystem.
> Seems like a safer enterprise choice.
Strongly disagree here as well.
Angular is a great framework but it has absolutely unacceptable build size,
A "Hello World" using Angular 7 with Ivy Rendering is 500KB+ ( tested this morning ). This is not acceptable for modern frameworks to be that big.
Vue and React stay largely under 100KB in terms of build size.
They are lots of scenarios where picking Angular over Vue & React would made things more complex for a project.

gitgud#
Angular is notorious for breaking compatibility. They're constantly redesigning and breaking the API of random components.

The best parts about Angular are; the dependency injection system and the opinionated component templates.

h1d#
Safe or not, people choose over productivity.

Worst case, if it's popular enough, the nature of open source will handle itself and finds a new maintainer.

ralala3 replies#
I am surprised no one has mentioned Pyramid and SQLAlchemy yet. SQLAlchemy is by far the most complete ORM/Query-Builder I have used (yes, I have tried out Rails, Django and Hibernate).

Also Pyramid's traversal routing is awesome to build REST-applications and ACL authorization.
What ever stack you decide on, I recommend to stay away from too much magic as it complicates debugging and understanding the framework completely (Hibernate, Laravel). If a framework needs to dynamically generate proxy classes, either the framework has a bad approach or the language is not the right choice for the approach.

sethammons1 reply#
Lots of folks love sqlalchemy. I just don't get it. I only have to use it infrequently, but when I do, I spend very little time crafting my SQL and a much longer time translating it to sqlalchemy's query builder. Even a join is a PITA.
ralala#
Have you tried out SQLAlchemy Core without the ORM?

Regarding the joins:
j=t_user.join(t_address, t_user.c.id==t_address.c.user_id)
select([...], from_obj=j)

blattimwind#
I've made good experiences with that combination as well, and it is very noticeable that Pyramid was truly designed with extensibility in mind (just look at e.g. using different or multiple template engines or using a different ORM). Pyramid also largely avoids magic (unlike Django and Flask, though Django likes magic a lot more) and global state (in a clean way, not Flask's put-everything-in-a-function way).
ergo14#
Yeah, Pyramid poweres PyPI itself - it is one of best thought out frameworks in Python land.

It builds on years of prior experiences and it shows in how mature and pleasant it is, they didn't have great marketing but the project deserves more recognition from community.

mogambo1#
I recently tried Google's cloud functions for backend and firestore for database on a decently sized project. I think it is a good fit for quick small projects and a good experiment if you don't mind a small learning curve. The minor shift in design patterns took me a while to adjust.

Pros:
- Setup is pretty quick, you can move quickly from scratch.
- Deployment is painless.
Cons:
- Firestore is NoSQL which is a huge caveat.
I had to scale the project and add some features later on. Faced some bumps here and there but nothing major (since firebase is still under development). AWS also has similar offerings (lambda, hosted DB etc.) in the same space. I haven't tried them out but look forward to doing so.
For frontend use Vue 10/10 especially if you're looking to put together something quickly. I felt Vue provides a lot more room for "hacking" quick solutions(and improving on top of it later) compared to Angular or even React.
I only prefer this stack for "reactive" web apps though that have a lot of dynamic components. For a traditional website I'd still go with jQuery/Django/SQL.

Load more comments