Week 3
Lecture 1
Last week of the course.
Issues week 2
- More code comments, skip faster through code
- What if API calls has error. Why u has error.
- When do you use
init()
? 1 init, not on every object.
General notes
- Push consistent (once a day). Everytime you leave mac.
- Throttling trough chrome devtools. WHen do you load data?
- Make many generic objects.
- Not extra features but how to structure current code.
- Cache data if you plan on using it again.
- Hide the API key on github
Slides
Loaders & Spinners localStorage; save data client side. Data comes in memory.
Filter & sort Users can manipulate data. Map / filter / reduce. Map and filter are essential.
Events
Modules Use this pattern in assignment.
Visualizing Flow
Actor diagram
Lecture 2
In Actor diagram put data in database box. Seperate actor diagram and user diagram.