Skip to content

Instantly share code, notes, and snippets.

View rogerwschmidt's full-sized avatar

Roger Schmidt rogerwschmidt

View GitHub Profile

Promises and Ajax Instructor Notes

Objectives

  • Describe what a promise is, and why it is useful
  • Use a promise to manage async behavior
  • Chain promises to determine the order of async actions
  • Return Promises from functions
  • Handle Errors using .catch
@rogerwschmidt
rogerwschmidt / searching.md
Last active October 25, 2018 18:05 — forked from Shurlow/searching.md
Searching & Sorting Lesson Notes

Searching

Objectives

  • Write pseudocode for linear search
  • Write pseudocode for binary search
  • Translate algorithm pseudocode to working code

Guiding Questions

Node Ecosystem

Objectives

  • Create an npm project
  • Install npm packages
  • Require npm packages
  • Export and your own functions
  • Add scripts to package.json

Create an npm project

@rogerwschmidt
rogerwschmidt / accumulator-pattern.md
Created September 17, 2018 14:06 — forked from Shurlow/accumulator-pattern.md
Accumulator Pattern Instructor Notes

Accumulator Pattern Instructor Notes

Objectives

  • Identify the parts of the Accumulator Pattern
  • Use the Accumulator Pattern to solve common problems

What is the Accumulator Pattern

Here is an example of the Accumulator Pattern in action:

Promises Instructor Notes

Objectives

  • Describe how asynchronus code differs from synchronous code
  • Create chained asynchronous events
  • Explain what the drawbacks of callbacks are when handling chained async events
  • Use Promises to flatten async events
  • Use Promises to return async event from a function

Describe how asynchronus code differs from synchronous code

Local storage instructor notes

Objectives

  • Explain what happens when an HTML, with javascript, page is loaded
  • Explain what local storage is
  • Describe why local storage is useful
  • Use local storage to persist data

What happens when an HTML page with Javascript is loaded by the browswer?

  • In your teams, create a timeline of how the following HTML is loaded into a browswer

Stack and Queues instructor notes

Objectives

  • Identify the methods used on stacks and queues respectively.
  • Work out which type of Linked List is better to represent a stack
  • Work out which tyoe of Linkked List is better to represent queue

What are the methods on stacks and queues?

  • With your groups, identify the methods on a stack
  • With your groups, identify the methods on a queue

Custom Data Structures Instructor Notes

Objectives

  • Define what data structures are and why they are useful
  • Define what sets and maps are
  • Implement a custom data structure

What are data structures, and why are they useful?

  • With your table, what data structures have you worked with so far?