Skip to content

Example of using functional, dynamic, and object-oriented JavaScript features to create modules. Inspired by the GOF factory pattern, this code takes the analogy even further.

Notifications You must be signed in to change notification settings

JoshuaRamirez/JsComponentManufacturing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JsComponentManufacturing

Description:

  • Example of using functional, dynamic, and object-oriented JavaScript features to create modules.
  • Inspired by the GOF factory pattern, this code takes the analogy even further.
  • The factory consists of small builders that create parts which are used in an assembly line and finally packaged.

Instructions:

  • Download the html and js file.
  • Step through the code in the browser or your favorite IDE.
  • Notice the control flow when creating the factory.
  • Notice the control flow when saying hello on the product.
  • Notice how the call stack informs you of where the pieces of the object were built.

@joshuaRam [email protected]

About

Example of using functional, dynamic, and object-oriented JavaScript features to create modules. Inspired by the GOF factory pattern, this code takes the analogy even further.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published