Posted on May 12th, 2020
Today’s topics
- Reviewing and practicing object-oriented techniques
- Understanding how to use canvas and requestAnimationFrame
- Building up a working application in stages
Project
Build a game, Day 2
This project is due on Thursday, May 14. Continue working with your study group!
Links and resources
Kyle Simpson’s You Don’t Know JS series of books has been around for 5+ years which is about 1000 years in JS time. He is currently updating the whole series and kindly shares all of his writing on GitHub. He’s still writing the second edition of his book on this
& Object prototypes, so you’ll have to make do with the first edition. I find that he is really good at explaining things clearly, although this is not really beginner material. Still, if you need to know more, I would recommend reading what he has to say.
Code, slides, and video from class
Posted on May 11th, 2020
Today’s topics
- Intro to object-oriented programming in JS
- Using classes in JS
- Building games in JS
- using requestAnimationFrame
- the Canvas API
Project
Build a game
This project is due on Thursday, May 14.
Study groups for this project are to encourage you to put your heads together to solve the problems this project poses. You will need to wrestle with this material; read other people’s code; take that code apart and run it, change it, and break it to understand what it’s doing; read documentation and just try stuff until things start to click for you. Doing this with other people will help a lot!
- Dave/Sarah/Britton
- Alyshia/Ben/Luke
- Ashley/Danny/Steve/Kaley
- Iziz/Hanny/Blake/Aaron
Link to assignment invitation
TODO for tonight
Whew! Today was a lot. To recap, below are some strategies I recommend to get started. Mix and match! You don’t have to do these in order, but I would strongly recommend beginning with reading the updated space invaders code.
- Watch Mary Rose Cook’s video again; read her annotated code. Get the updated space invaders code from our examples repo and run it locally. Read that code, change it, and see what happens. See if you can start to understand what is happening. (Links to all of these things below)
- Play with the Canvas API and requestAnimationFrame. Both of these are used in the space invaders code. See if you can write code to draw a player on the screen in your own browser.
- Play the games that are provided as options in the homework assignment. Begin to write a CRC model for the one that you feel most interested in.
End of Phase Project
Instructions for technical presentations
Links and resources
Code, slides, and video from class
Posted on May 7th, 2020
Today’s topics
- Using Fetch to create, read, update, and destroy data (CRUD)
- HTTP methods: GET, POST, PUT/PATCH, DELETE
- HTTP status codes
Project
Create a single page note-taking app
Link to assignment invitation
Links and resources
For more information about how the internet works and the mechanics of a request over HTTP, check out this comic by the always brilliant Julia Evans!
Code, slides, and video from class
Posted on May 6th, 2020
Today’s topics
- Using JSON for retrieving data
- Basics of HTTP requests
- Make requests with Insomnia client to GET data
- Make GET requests using the Fetch API and display response data on a page
Project
Create a GitHub Profile
Link to assignment invitation
Links and resources
Code, slides, and video from class
Posted on May 5th, 2020
Today’s topics
- Introduction to the object data structure in JavaScript
- Storing data in and retrieving data from objects
Project
Build a customer database
Link to assignment invitation
Links and resources
Code, slides, and video from class