4 ms·
The scaffolding to do this in JS and try it out could probably be setup in a weekend. Pair it with one of the various JSFiddle, CodePen, etc. sites and see wher
by moron4hire 11y ago
The scaffolding to do this in JS and try it out could probably be setup in a weekend. Pair it with one of the various JSFiddle, CodePen, etc. sites and see where it gets you.
Then realize that the mini-trend not so long ago to make NPM modules a single function was a freaking nightmare, scratch the whole idea, and remember that modules were invented for a reason.
If two, seemingly unrelated modules contain an equivalent function, does that not suggest the need for a third module? And if that module happens to only contain that one function, aren't we just at the same point as the suggestion of uniquely naming all functions, yet not stuck with it as the only way to invoke functions?
But seriously, this thread title needs a "(2011)" on it. It's been 4 years. If someone thinks this is a good idea, just freaking try it already and see what happens. Lead by example.