Join Leigh Lawhon for an in-depth discussion in this video Pseudo code, part of Web Portfolio Projects: Binding and Propagation.
- [Instructor] So let's move our diagram over to our code.…We're going to start with some pseudo code.…I'll write it out and then we'll comment it out later.…So again, we're going to have a Game, we'll have a Deck,…we'll have some Cards, and a Discard Pile.…For the Game, we'll build an Info section,…we'll build a Deck, we'll build a Discard Pile,…we'll have some Rules.…
In the Deck, we'll build our Cards.…We'll put a little divider there.…We'll have shuffle function and we'll have a stack function.…For our Cards, each card will have a value and a suit…and we'll have a flip function.…For the Discard Pile, we'll build Holders.…It'll have a function that will either…accept or reject a card.…
Sketching out and pseudo coding your application…is a great way to get organized before you start.…If your original plan changes…and you have to update your pseudo code,…it's a good indicator that you've pivoted on your idea…or that something may take more time…than you originally thought.…I'm going to save this and go ahead and comment it out…
- Working with prototype and dynamic elements
- Using bind, call, and apply
- Using the Fisher–Yates formula
- When to use e.preventDefault() and when to avoid it
- Drag-and-drop life cycle
- Using prototypical inheritance to optimize your code
Skill Level Intermediate
Q: This course was updated on 1/16/2019. What changed?
A: The following topics were updated: propagation and drag and drop.