Tyler McGinnis » AngularJS: Factory vs Service vs Provider

TL;DR

1) When you’re using a Factory you create an object, add properties to it, then return that same object. When you pass this service into your controller, those properties on the object will now be available in that controller through your factory.

2) When you’re using Service, it’s instantiated with the ‘new’ keyword. Because of that, you’ll add properties to ‘this’ and the service will return ‘this’. When you pass the service into your controller, those properties on ‘this’ will now be available on that controller through your service.

3) Providers are the only service you can pass into your .config() function. Use a provider when you want to provide module-wide configuration for your service object before making it available.

via Tyler McGinnis » AngularJS: Factory vs Service vs Provider.

The Startup Spouse: On Risks, Trade-Offs And Never Sleeping On The Floor

“Risk is about evaluating trade-offs,” he continued. “And evaluating trade-offs requires the consideration of opportunity costs: if I do this, then I can’t do that. I could stay at my finance job, continue earning a salary, and insulate myself against the risk of CustomMade’s failure. But what about the opportunity cost of my time?”

via The Startup Spouse: On Risks, Trade-Offs And Never Sleeping On The Floor.