|
| 1 | +### Lecture Notes Week 2 |
| 2 | + |
| 3 | +#### Before class |
| 4 | +Slack message students for things they'd like to review before diving into new topics |
| 5 | + |
| 6 | +## Reviewing (11-11:30am) |
| 7 | +Cover individual topics that students may still be stuck on from previous lectures and homework |
| 8 | + |
| 9 | +## JSON (11:30am-12pm) |
| 10 | +* Illustration on Google Maps. How do people from Sweden speak to people from Sri Lanka? |
| 11 | +* [Advice Slip](https://adviceslip.com/) and [API](https://api.adviceslip.com/#endpoint-random). If they have machines that run on the programming language RUST, how can we communicate with them? They serialize their data to JSON! |
| 12 | +* Douglass Crawford |
| 13 | +* What is JSON? |
| 14 | + * Javscript Object Notation |
| 15 | + * We are fortunate that it's familiar and easy to understand :) |
| 16 | + * It is a STRING [PokeAPI](https://pokeapi.co/api/v2/pokemon/squirtle/) |
| 17 | + * Not all javascript objects are valid json |
| 18 | +* Coding exercise (lecture-exercise.js) |
| 19 | + * JSON.parse |
| 20 | +* Serialization vs Deserialization |
| 21 | + * JSON.stringify() |
| 22 | + * Other formats |
| 23 | + * protobufs |
| 24 | + * XML |
| 25 | + * GRPC?! |
| 26 | +* Cover homework question #3 |
| 27 | + |
| 28 | +## Functions advanced (12-12:30pm) |
| 29 | +* Different ways functions can be made: |
| 30 | + * function declaration vs expression |
| 31 | + * arrow function |
| 32 | + * Omitting return, parameter parenthesis |
| 33 | +* What's a method? |
| 34 | +* Pure function? or side effects? |
| 35 | +* Example: how does a program run this? (example w/ a function, call of that function, and a console log) |
| 36 | + * Call stack (stack overflow) |
| 37 | +* Params |
| 38 | + * Extra params |
| 39 | + * Default params |
| 40 | +* Recursion (basic example) |
| 41 | +* Example function |
| 42 | + * pigs example? |
| 43 | + * countChar("kakkerlak", "k")? With DOM manipulation? |
| 44 | +* Simplicity of functions |
| 45 | + * while loop from [Chapter 5](http://eloquentjavascript.net/05_higher_order.html) |
| 46 | +* Higher order functions |
| 47 | + * repeat(n, action) |
| 48 | + * greaterThan10 |
| 49 | + |
| 50 | +## Array Manipulations |
| 51 | +## Map, Filter, Reduce (others? every, some, etc) |
0 commit comments