[Noisebridge WebDev] [JavaScript Class] Factory, Context Homework

Garrett Smith dhtmlkitchen at gmail.com
Thu Dec 5 01:06:32 UTC 2013


Part II of the lesson on the Factory pattern.

Last week, we covered Part 1 of the Factory lesson,
https://noisebridge.net/wiki/JavaScript/Notes/Factory#Factory_Example up to
newApply.

Some of you struggled to grasp Function.prototype.apply and context
(context determines the `this` value). So, for this week's homework, please
do the following:
https://noisebridge.net/wiki/JavaScript/Notes/Function#Variable_this

Friday's class will be a review of that. I will then move on to Abstract
Factory using a closure and also a Parameter Object:
https://noisebridge.net/wiki/JavaScript/Notes/ParameterObject
-- 
Garrett
@xkit
ChordCycles.com
garretts.github.io
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.noisebridge.net/pipermail/webdev/attachments/20131204/db8b0fef/attachment-0002.html>


More information about the WebDev mailing list