- For fetching relationships from APIs:
- Use JSON API link style: { related: }
- Look at Pagination Lib
- Overriding isInvalid can help with error types aside from 422
- Also normalizeErrorResponse
- Ember Data URL Templates https://github.com/amiel/ember-data-url-templates
- Returning partial data (promises for other attrs that may or may not be there) https://github.com/BookingSync/ember-data-partial-model
- For users? https://github.com/mike-north/ember-api-actions
- New AdapterErrors emberjs/data#3586
HospitalRun.com
Service Workers
- exposing browser internals
- fetch ("new XHR")
- can't use XHR in service workers
- run in the background
- run in a separate thread
- https only
- https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers
- Service Worker Toolbox
- express-style routing for service workers
- PouchDb
- Server Side adaptive network delivery (**)
- e.g. on a 2g network, reduce payload for load times, fetch size, etc.
- https://twitter.com/reubenbond/status/662061791497744384?lang=en
- Unit testing gaps exist
- working on it, but an outstanding issue
http://talks.brennaobrien.com/ember-select/selecting-good-ember-patterns.pdf
get
helper
disabled={{get fruit disabledKey}}
useful in cases where we would typically produce a sub-component or a CP in the component
- cool trick I've seen in a few demos
let selection = this.get('fruits').findBy('id', +value);
the +value
part converts the string over to an int without parseInt
https://github.com/felixrieseberg/ember-electron
- "thoughtful composition using components yields an app that is coherent, flexible and maintainable"
- decompose a design into the components that it's made of
- allow passing through edge case data
- empty
- "expected"
- "wow" - outliers and edge cases https://github.com/chrislopresto/ember-freestyle
https://github.com/nickiaconis/ember-prefetch https://github.com/chadhietala/ember-fastboot-server/commit/2e8fd45a806a0ebd235b399298009844a85524b1
- aws free certs