NOTES.mdView |
---|
18 | 18 | |
19 | 19 | - Vertical slice |
20 | 20 | - Design for front end dev |
21 | 21 | - Decorate |
| 22 | + - could be painful to maintain / needs a clear spec |
22 | 23 | - Opinionated folder structure. Human readable API. |
23 | 24 | - Testing |
24 | 25 | - Linting with ale |
25 | 26 | - Give your test files `*.test.js` filenames. It helps with readability when there are errors. |
26 | 27 | - the inject pattern |
27 | 28 | - prefer passing a single object rather than ordered args |
28 | 29 | - don't modify data passed into a function |
| 30 | +- Observables: |
| 31 | + - making everying obs takes A LOT of time |
| 32 | + - could just make async cb, then have a pull stream which announces updates. On update, re-run async cb, or whatever |
| 33 | + - could write an async cb which takes a `refresh` function which gets run when there's a change. |
| 34 | + - not everything really needs live updates |
| 35 | + - not that important: |
| 36 | + - body / title / choices (none of these can change) |
| 37 | + - important: |
| 38 | + - new positions / results |
| 39 | + - closesAt |
| 40 | + - when I post a new position (should update view) |