Skip to content

Instantly share code, notes, and snippets.

@e-l-i-s-e
Last active May 2, 2019 16:26
Show Gist options
  • Select an option

  • Save e-l-i-s-e/f82f9cdbedb52bbd87abfa6415cfe787 to your computer and use it in GitHub Desktop.

Select an option

Save e-l-i-s-e/f82f9cdbedb52bbd87abfa6415cfe787 to your computer and use it in GitHub Desktop.

Object Oriented Programming - Part I

Pre-Reading

The pre-reading (in the Learn Dot workshop) covers TDD, reading test specs, the prototype chain, factory functions, and constructor functions.

Instructors should open this repo to allow students to complete the "Reading Test Specs" exercises.

Learning Objectives

By completing this workshop, students will be able to:

  • Define test-driven development and list some of its advantages
  • Articulate the difference among testing frameworks, test suites, and specs
  • Read basic Jasmine test specs
  • Define JavaScript’s internal [[Prototype]] property and its relation to built-in methods
  • Construct a prototype chain
  • Create an object “instance” with and without using the ‘new’ operator
  • Explain what the “this” keyword references and how it can be used

Key Topics

TDD, testing frameworks, unit tests, prototype chain, factory functions, constructor functions, "new" operator, and "this" keyword 

Lesson

Assets Time
LECTURE
START PT Github
WORKSHOP Learndot
SOLUTION Video1 Video2 Code

Additional Resources

Pre-requisite — RF: Toolbox 

Notes

There is a Object Oriented Programming Part II. Both should be completed before the Selector.js workshop

Solution Videos

Factory Functions Constructor Functions The other solution videos are included in the workshop actions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment