Skip to content

sydng/OST4GIS-week3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Week 3

As always: make a copy of this repository to commit changes to

Week 2 Review

Skills Review

  • Data structures
  • Loops

Homework and labs

  • Review of our first assignment
  • Questions and demonstration

Lecture and Labs

Example leaflet application

  • In class walk-through of example application

Section 1: Using functions (liberally!)

  • Function anatomy
    • Naming/defining functions vs calling 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!

Assignment

  • Complete Week 3 Labs (Lab 2, Part 4 is an Optional Challenge)
  • Review difficult concepts (this is subjective)

About

Week 3 - Open Source Tools For GIS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 97.2%
  • HTML 2.8%