3 ms·
For a hot minute this post was right above this post. http://doctrina.org/Javascript-Function-Invocation-Patterns.html http://doctrina.org/Javascript-Function-
by chubbard 14y ago
For a hot minute this post was right above this post.
http://doctrina.org/Javascript-Function-Invocation-Patterns.html http://doctrina.org/Javascript-Function-Invocation-Patterns....
Had to giggle a little over this silly discussion of FP and are there design patterns or not. A strategy is the same intent whether you use a enclosed function or an anonymous object as the strategy. Remember the old computer programmer adage. Objects are the poor man's closure, and closures are the poor man objects.