Earlier quoted context omitted.
What would Mongo give you that Postgres doesn't?
Admittedly I'm not yet using it in production, but the simplicity is the most appealing factor, albeit this depends a lot on client libraries used. In addition to my original comment, with Postgres we also had to deal with schemas and migrations. We can also easily leverage reactive streams with reactive Spring Data. Technically you could also use JDBC in a reactive manner, but it looks unlikely to work with the fram…
Ask HN: Go-to web stack today?
291–300 of 453 posts
Re: Ask HN: Go-to web stack today?
#292I'm amazed at how many people use a client side framework, am I the only one who prefers good old server side rendered static html with maybe a little bit of javascript on top? When I need a more dynamic page, I create a react app specifically for this one page. Whenever I need to write JS these days, I go for either TypeScript or F# using Fable (an F# to javascript compiler).
For a long time I was in the server-side html + js for ajax/validation/effects camp, but I'm starting to gravitate to the SPA side of the fence. Why? While server-side based web sites can load quickly, there's something dissatisfying (to me) about clicking around a site, waiting for server responses, when nothing has changed . Sure, js, css, img, etc. assets are likely cached in the browser, and you're just downloadi…
Also - using WebSockets for a one-way communication channel is ridiculous. I know it's the cool kid way to do things, but that invariably means it's over hyped and has a more appropriate alternative. In this case, it's EventSource/Server Sent Events.
Re: Ask HN: Go-to web stack today?
#293Earlier quoted context omitted.
I urgently encourage you and anyone else reading this to check out Turbolinks 5, ideally in tandem with Stimulus. https://www.youtube.com/watch?v=SWEts0rlezA&t=3m22s https://github.com/turbolinks/turbolinks https://stimulusjs.org/ You can get all of the benefits of server-generated pages with the speed of an SPA. 90%+ of the sites built using SPAs would be better served by Turbolinks and Stimulus.
Just looked at stimulus. Really cool framework. circa 2008 or so there was this concept of non-intrusive javascript where you bind js to elements. So you could wysiwyg html and then inject js where you need it. Thought that was a neat idea and like what stimulus does it. Any real life experience from anyone ?
Really should add a gif or something.
Re: Ask HN: Go-to web stack today?
#294Earlier quoted context omitted.
I would personally never use MongoDB again. Broke one too many times. Postgres on the other hand has never failed me.
MongoDB was released nearly 10 years ago. Do you believe those issues are still relevant today?
Re: Ask HN: Go-to web stack today?
#295Earlier quoted context omitted.
I would go with NestJS and TypeORM on the backend with node..
Thank you, I will have a look. How mature are those currently?
There's is already a lot third party plugins and resources https://github.com/juliandavidmr/awesome-nestjs
Re: Ask HN: Go-to web stack today?
#296Earlier quoted context omitted.
What would Mongo give you that Postgres doesn't?
Admittedly I'm not yet using it in production, but the simplicity is the most appealing factor, albeit this depends a lot on client libraries used. In addition to my original comment, with Postgres we also had to deal with schemas and migrations. We can also easily leverage reactive streams with reactive Spring Data. Technically you could also use JDBC in a reactive manner, but it looks unlikely to work with the fram…
Schemata are good things. Migrations are the database insisting on tedious bureaucratic nonsense like "don't blow your foot off" and "don't regret this later".
> Technically you could also use JDBC in a reactive manner, but it looks unlikely to work with the frameworks we use with Postgres.
The Spring team are pretty keen on removing that gap: http://r2dbc.io/
Re: Ask HN: Go-to web stack today?
#297Earlier quoted context omitted.
MongoDB was released nearly 10 years ago. Do you believe those issues are still relevant today?
If that’s the argumentation then Postgres is over 22 years old which makes it over two times better? On the other hand Windows is over 30 years old and it still hasn’t fixed many issues which for me are the reasons why I don’t want to have anything to do with it.
Re: Ask HN: Go-to web stack today?
#298Earlier quoted context omitted.
> - Do not use redux until you know React well. You might not need it. Indeed, I would say not using redux at all. I never understood why redux has become so popular, IMAO it's such poor design. It forces you to use switch statements, reducers, mapStateToProps(why?), etc.. Tons of boilerplate in order to set 1 single variable. Not talking about how to put data from the backend into the store in a SSR app.. I'm now us…
Redux still baffles me. I've implemented it 4 times, and it still confuses the hell out of me. MobX is a much better fit for most react apps IMHO. Redux could be good, if you have a database [id] driven application, but for most people is way too restrictive. If you are working in a small team, and are using Redux, you are probably making life harder than it has to be.
This is the point of redux. If you don't have these restrictions, then state will be all overt the place, race conditions, side effects will make your life much harder as the app matures especially with multiple developers.
Re: Ask HN: Go-to web stack today?
#299- On the frontend, use React with TypeScript. Create React App now makes it dead easy. Just do: npx create-react-app myapp --typescript - Do not use redux until you know React well. You might not need it. If you do need it, use `redux-starter-kit` offered by the core Redux team. - For backend, just use Django (or Rails). Elixir's Phoenix is also very well thought out. - If you use node: express, sequelize. Async/awai…
We've been following this stalk for quite a while and are super happy with it. But there's huge downside: It's really hard to find Django/ Python engineers - let alone phoenix devs. Right now I'm considering a move to JVM. But the frameworks i've seen are all far behind Django. Any thoughts?
Re: Ask HN: Go-to web stack today?
#300Backend: Self Hosted headless CMS such as Strapi