News for hackers. Stuff that matters.
Re:SailsJS 1.0 – Rails-like JS Framework by everdev on Tuesday April 03, 2018 @06:58PM (#16750213)
I tried Sails about 3-4 years ago. Basically, you're taking the good from Rails (MVP code generation, relations, convention over configuration) and puts it on JS, which unfortunately it's still a nightmare to develop CRUD apps with.

Async is great for lots of things, but not for your entire app.

If you want an async-first app, JS is probably a good choice. If you want CRUD, use Rails.

Re:SailsJS 1.0 – Rails-like JS Framework by mikermcneil on Tuesday April 03, 2018 @07:02PM (#16750236)
major changes occurred here in 2017 with `await` making its way into the LTS release of Node - more on that: https://gist.github.com/mikermcneil/c1028d000cc0cc8bce995a2a...
Re:SailsJS 1.0 – Rails-like JS Framework by wild_preference on Tuesday April 03, 2018 @07:29PM (#16750421)
> Async is great for lots of things, but not for your entire app.

That criticism is pretty dated now that JS has async/await. Given that you understand promises, async code has become trivial.

Re:SailsJS 1.0 – Rails-like JS Framework by everdev on Tuesday April 03, 2018 @08:34PM (#16750800)
It's still an extra step to undo the async by default of JS. In other languages, the async is added only as needed, which I prefer.
Re:SailsJS 1.0 – Rails-like JS Framework by always_good on Tuesday April 03, 2018 @10:02PM (#16751264)
What do you mean by undo?

Languages that aren't async by default (most of them) make async tedious when you do want it. A web application is precisely the sort of thing I want async. So it's in fact an extra step to write async code in most languages when building a web app.

For example, just firing off a few requests (database, other APIs) in a route and awaiting them. JS makes this trivial.

Re:SailsJS 1.0 – Rails-like JS Framework by spraak on Tuesday April 03, 2018 @11:31PM (#16751652)
Sails is definitely not a great framework, but overall it's not hard to do CRUD in Node.
Re:SailsJS 1.0 – Rails-like JS Framework by thorin on Wednesday April 04, 2018 @06:31AM (#16753470)
That may be the case but coming from using frameworks such as .net webapi/mvc or spring do I really want to write all the controller/view code by hand every time when I don't need to or are you using other generators/methods for this?
Re:SailsJS 1.0 – Rails-like JS Framework by phillnom on Tuesday April 03, 2018 @11:41PM (#16751712)
JS is fine for CRUD