Live data from Hacker News

Live Sails.js Course

courses.platzi.com

41–48 of 48 posts

Re: Live Sails.js Course

#41

Does anyone have any experience with sails?

I've used sails in production on a couple of apps and it's mostly pretty good but there are a couple of annoyances that will inevitably get ironed out as it develops. For me the most irritating thing is being unable to write good unit tests for controllers that use models as sails models are scoped globally and controllers have to be objects which makes injecting mocks difficult. It's great for getting a prototype up…

Why not place the model usage in services and use the services in the controllers?

Re: Live Sails.js Course

#43
post #39

Does anyone have any experience with sails?

I built my SaaS app backend on sails. There are quite some gotchas left but overall I'm pretty happy with it. Deep relational fetches would be very very helpfull though, now you basically have to cobble up seperate async fetches to do more complex joins.

Deep relational fetches would be very very helpfull though

Seconded. I'm still early on with a project where we're very close to replacing Waterline for this reason. I always thought ActiveRecord was one of the great strengths of Rails but unfortunately I'm finding Waterline to be the biggest weakness of Sails.

Re: Live Sails.js Course

#44
post #40
post #38

Too bad it seems you can only join with Tweeter or FB account.

We're working on more options. Should we include github or an email/password login first?

Email / password please, before anything else. As a rule I don't signup any service unless it makes me create an account separate from any other one I have. My password manager remembers them for me (keepassx).

Re: Live Sails.js Course

#45
post #41

Earlier quoted context omitted.

I've used sails in production on a couple of apps and it's mostly pretty good but there are a couple of annoyances that will inevitably get ironed out as it develops. For me the most irritating thing is being unable to write good unit tests for controllers that use models as sails models are scoped globally and controllers have to be objects which makes injecting mocks difficult. It's great for getting a prototype up…

Why not place the model usage in services and use the services in the controllers?

While that is a nice separation of concerns (Angular-style), it doesn't solve the problem for unit testing the controller because you still won't be able to inject a mock service into the controller without some beforeEach global variable hackery.

Re: Live Sails.js Course

#46
Couple of things here:

1. The site and the courses look great but, why can't I sign up without a Facebook or Twitter account? This one issue was enough for me to leave the site. I compartmentalize my web affairs for many reasons and keeping my online accounts separate is very important for me. I'm writing this to encourage you (and others) to reconsider this practice.

2. I can see the icon that says "Beginner," but that doesn't tell me much. In your FAQ, I would recommend expounding on this. Beginner is too ambiguous.

Re: Live Sails.js Course

#48
post #9

Earlier quoted context omitted.

The cost.

It's truly free. Is that weird?

The 3 courses that are available in English seem to be freely accessible, but in their FAQ it is mentioned that you require a monthly/yearly subscription [1].

So I'm a bit confused.

[1]: https://courses.platzi.com/frequently-asked-questions/#how-i...

Post reply on HN