4 ms·
>> Why is it a bad idea to call my jQuery plugin "jQuery Combinators," and why are K and T such terrible names for its methods? FWIW, In Prototype.js, K is the
by lhorie 16y ago
>> Why is it a bad idea to call my jQuery plugin "jQuery Combinators," and why are K and T such terrible names for its methods?
FWIW, In Prototype.js, K is the identity function.
I think the problem is in assuming that people reading the code will know K and T are combinatory logic concepts, considering the terms aren't even described on Wikipedia (at least as far as I can tell).
(BTW: On a side note, the code currently throws an error if you don't have "Functional" declared.)
- steveklabnik 16y ago> considering the terms aren't even described on Wikipedia (at least as far as I can tell). http://en.wikipedia.org/wiki/Combinator#Completeness_of_the_S-K_basis http://en.wikipedia.org/wiki/Combinator#Completeness_of_the_...
- lhorie 16y agoI stand corrected. In any case, is this supposed to be a given to a javascript programmer? I don't think anyone in my company would see a .K() and go "oh, that's a combinator", for instance, and most programmers there have CS degrees. I'd say that even asking for a definition of combinator would be pushing it, in fact...
- steveklabnik 16y agoTotally. I myself haven't put in enough time to know more about combinators than "they exist."
- raganwald 16y agohttp://github.com/raganwald/JQuery-Combinators/issues/closed/#issue/1 http://github.com/raganwald/JQuery-Combinators/issues/closed...