Sunday, June 02, 2013

Inject

I’m finally loving inject — it’s gone from an exotic thing of which I’m vaguely aware, to an idiom that feels warm and friendly to use, and bad form not to use.

Say there are a bunch of farms, each with zero or more ponies, and we want to add up all the ponies from all the farms. Without inject, there’s distracting ceremony before and after the iteration:

With inject, the ceremony goes away, and there’s just intention:

blog comments powered by Disqus