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

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

Motivate transform (function taking function) #4

Open gaand opened 9 years ago

gaand commented 9 years ago

Matt used map

Other possibilities?

jrhorn424 commented 7 years ago

transform is missing as of 5f366e1392baea418a7cfda14dd9be436213317e, as I believe it was replaced by the student cheating example (so much profanity). The example is currently developers submitting things late. I also think this example is aggressive.

Should we bring back transform, or motivate a different callback example?

One advantage that is less clear with the current example is the value in extracting boilerplate provided by having a function take callbacks. The transform example was clean and tight, if a bit unmotivated.

I'd prefer to track this over in #22 if that's ok, @gaand?

gaand commented 7 years ago

I am really unhappy that transform was removed. This seems like a loss of information that is important to this topic.