This looks incredibly cool, but if there is one thing that I've learned, it's that less magic is generally better when building a real production application (vs a weekend project). While typing something like 'sails generate model User' is nice, I literally have no idea what that just did. In the video it then shows a user creating new attributes on the model via a REST API - what??(he even mistakenly adds a bad att…
$ sails generate model User $ git diff
Sails.js: Realtime MVC framework for Node.js
71–80 of 107 posts
Re: Sails.js: Realtime MVC framework for Node.js
#72I tried it before when it was RailwayJS and it was really good and fast. I didn't do any major projects in it.
Re: Sails.js: Realtime MVC framework for Node.js
#73i just wish the hero graphic wasn't so gross. what we have there is a white man-child in the middle, spectacled, with little beady eyes behind the big frames, hunched forward like he wants to get punched in the face. to his right we have a hot a chick, her sexy little stomach is showing. she's got big anime eyes. i'm not sure what her deal is—is she the project manager? to the left is a black dude smiling so wide you can't even see his face. that guy looks straight out of some racist shit from the 20s. i wouldn't be surprised if it turned out that guy was a white dude in blackface. anyway, weird graphic.
Re: Sails.js: Realtime MVC framework for Node.js
#74Re: Sails.js: Realtime MVC framework for Node.js
#75sails business case rev2.pptx ?
Re: Sails.js: Realtime MVC framework for Node.js
#76Node is excellent from an architectural point of view, but I can't get over JavaScript. I really think web developers have Stockholm syndrome with this language.
Having said that, there are a tonne of libraries and tools which make it much better these days. A language is only as good as the available libraries and there are some really good ones on npm.
What, particulary, do you find problematic?
Re: Sails.js: Realtime MVC framework for Node.js
#77This looks great! The automatic API generation is a killer feature that makes me want to try this out sometime soon. Only thing that seems strange to me is adding the /create, /update, and /destroy GET endpoints -- why not keep it RESTful?
Hey Peter-- RESTful endpoints are supported. The other options are just there for convenience while testing. You can disable those routes later if you like in your routing table. Policy mapping happens at a controller level to solve this very problem and prevent devs from inadvertently granting access to a piece of code they didn't mean to. # List of all users http://localhost:1337/user # Find the user with id 1 http…
nice work btw, the end to end of it is attractive if somewhat magical.
Re: Sails.js: Realtime MVC framework for Node.js
#78Earlier quoted context omitted.
It does look exciting, but I can't trust a framework that promotes saving data on a GET request.
Definitely not promoting it! That's a convenience feature to make it easy to see what's happening during development. You can disable that behavior in your routing table.
Re: Sails.js: Realtime MVC framework for Node.js
#79Node is excellent from an architectural point of view, but I can't get over JavaScript. I really think web developers have Stockholm syndrome with this language.
Still though, I stare longingly into JS's eyes when she looks my way...
Re: Sails.js: Realtime MVC framework for Node.js
#80The logo on the front page makes me feel old ...