Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. ## Psuedocodin'
  2.  
  3. ---
  4.  
  5. ## Learning Objectives
  6.  
  7. In the conext of our Tic-Tac-Toe exercise let's:
  8.  
  9. 1. Understand the utility of stubbing out functions and writing architecture diagrams.
  10. 2. Use an organizational pattern to reason about our programs.
  11.  
  12. ---
  13.  
  14. ## A Pictoral Representation
  15.  
  16. Let's take a look at this ->
  17.  
  18. ---
  19.  
  20. ## Ok
  21.  
  22. So we got
  23.  
  24. * a `render` function that is passed state.
  25. * an `update` function that is called on `click` event which updates state
  26.  
  27. Whenever state is updated we also update our view.
  28.  
  29. ---
  30.  
  31. ## What Does This Psuedocode Look Like?
  32.  
  33. ---
  34.  
  35. Let's look at some code...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement