Skip to content

Exploring the Factory pattern, closure in vanilla JS.

Notifications You must be signed in to change notification settings

devjona/personFactory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

personFactory

Goal:

  • To explore the Factory Pattern with JavaScript
  • To learn about using Prototypes and various Object() methods such as:
    • Object.create()
    • Object.freeze()
    • Object.seal() (perhaps)
  • How closures are helpful for protecting unexpected changes to an object's properties
  • To leverage BDD/TDD for sanity and expediency I was tinkering around with a pattern I had not used in a while and it occurred to me that I could make the most of this exercise if I added some tests to rapidly verify my assertions!

Instructions:

  1. Clone this repo
  2. Install using your preferred tool (yarn, npm, etc.)
  3. Run tests with yarn test.

Documentation of tools used:

GitHub Actions:

A push or a pull request to main triggers GitHub Actions:

  1. A Node.js CI process that ensures yarn test passes.

About

Exploring the Factory pattern, closure in vanilla JS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published