ga-wdi-boston / js-functions-ins-and-outs

JavaScript Function Arguments and Return Values.
Other
2 stars 174 forks source link

Break this into multiple repos? #12

Open gaand opened 8 years ago

gaand commented 8 years ago

Ins, Out, and Closure?

See ga-wdi-boston/js-functions-ins-and-outs/issues/10

jrhorn424 commented 8 years ago

Yes! Nice seams.

jrhorn424 commented 8 years ago

Outs went pretty fast. I'd estimate about 15% of the total delivery time.

I'm not sure how high-priority this should be. I do think there's significant value in breaking this up, if for nothing else to clarify learning objectives for each part, and to give closures its own treatment. Breaking this up would also allow us to move closures to the third unit if we wished.

I still struggle to give examples of when closures are useful for web application solutions.

gaand commented 8 years ago

I still struggle to give examples of when closures are useful for web application solutions.

Is that because we implicitly use IIFEs and so never pollute the global name space?

Maybe that's something we need to make explicit?

I'd like to refactor this part of the curriculum using some of the iceboxed repos I created last time through. Breaking this up would be part of that process (or perhaps the start of that?).

jrhorn424 commented 8 years ago

I still struggle to give examples of when closures are useful for web application solutions.

Is that because we implicitly use IIFEs and so never pollute the global name space?

Yes. Although, I don't think it occurred to me. The "data hiding" part of closures is clean to explain. The fact that the data is still available to inner functions, less so.

I'd like to refactor this part of the curriculum...

:+1: