News for hackers. Stuff that matters.
Re:Hard-won lessons: Five years with Node.js by silviogutierrez on Wednesday April 19, 2017 @10:15PM (#14153442)
I'm the biggest JS-on-the-server sceptic of them all, given my past experiences. But this was pre-typescript.

If a TypeScript ORM with automatic schema migrations and decent expressiveness comes around, I'd be willing to give NodeJS another shot.

But so far, nothing comes even close to the productivity of Django + ORM + Django Rest Framework. For your typical CRUD app, this will walk circles around any current JS solution. Even if the lack of static typing eventually becomes a bit of a pain.

Re:Hard-won lessons: Five years with Node.js by jcrben on Wednesday April 19, 2017 @11:53PM (#14153809)
Have you seen typeorm? https://github.com/typeorm/typeorm
Re:Hard-won lessons: Five years with Node.js by silviogutierrez on Thursday April 20, 2017 @12:31PM (#14158191)
I have. It's a great improvement over other ORMs in the NodeJS space but pales in comparison to Django's ORM. At least for now.

Relationships must be done manually, including joins, traversing, and many to many.

Sometimes doing:

w = Widget.objects.get(pk=2) w.category.author.name

Is just all you need. And Django makes that trivial.

Re:Hard-won lessons: Five years with Node.js by sametmax on Thursday April 20, 2017 @04:51AM (#14155016)
This. Yes the site won't be as fast, and yes you don't have realtime.

But if you need a regular web site, not a real time app with 100000 users, then nothing BEAT those techs.

They are mature, stable, productive, and incredibly flexible.

If you use anything else and you need something that is not "the typical hello world", you will have to write it by hand. With DRF ? You google it, you find a module and call it a day.

Re:Hard-won lessons: Five years with Node.js by Daishiman on Thursday April 20, 2017 @03:25AM (#14154631)
I'm on the same boat. Django or Rails are so much more productive for me that I feel that most of the Node.JS love for this sort of domain comes from people who have never tried anything better.
Re:Hard-won lessons: Five years with Node.js by throwanem on Thursday April 20, 2017 @05:22AM (#14155155)
The operative words here being "for me".
Re:Hard-won lessons: Five years with Node.js by douche on Thursday April 20, 2017 @12:05PM (#14157912)
It sounds like you are describing C# with Entity Framework. Throw in the self-hosted OWIN webserver and WebApi or Nancy and you're good to go.

I'm not really up on the state of DotNet Core or whatever they are calling it this week, but when that is shaken out, I'll be interested so see what kind of inroads it makes on Java and Python in the Unixy server world.