Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.25 KB

README.md

File metadata and controls

48 lines (35 loc) · 1.25 KB

Week 3

As always: Fork and clone this repository to commit changes to

Class Outline

slides

Week 2 Review & Introduction

  • Posting in Gitter // Making issues
  • Functions
  • Data structures

Functions continued

Section 1: Using functions (liberally!)
  • Function anatomy
    • Naming functions
    • Providing arguments
    • The function body
    • The return statement
  • Thinking functionally
    • Programs are data and its transformations
    • Functions are just transformations on data
    • Functions as values
  • Lab 1

Live coding: refactoring code into functions

  • Step through the code and discuss
  • Imagine alternative code flows
  • Organize the code
  • Make code DRYer ('don't repeat yourself')
    • Redundant code is a headache to maintain

underscore.js

Section 2: Library overview
  • Selecting (filtering for) elements in lists
  • each: No more for loops!*
  • Lab 2

*Mostly!

Homework Assignment (Due: Thursday, February 7th)

  • Complete Week 3 Lab1 (entirely)
  • Complete week 3 Lab2 (parts 1 and 4 only)