Google Works in Mysterious Ways

I was in a pairing session with one of my teammates earlier today and we stumbled into an interesting little bit of inspiration.

Working in Javascript, we were thinking about splitting some values while iterating through an array but that didn’t really feel like the right answer.  Looking for some kind of better solution, my teammate Googled “split” looking for documentation and similar examples.

I immediately laughed because a Google Maps search result was included, which was completely outside the context of what we were searching for (though a valid search result for the simple query we entered).  As I explained why I was laughing, though, something hit us:

That gut feeling was right.  We didn’t want to split anything.  We wanted to apply a map to it.

I guess Google gave us our answer.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.