Like most of this "functional programming" malarkey, the gross inefficiency from an execution standpoint and horrifying cryptic nature of the code really makes it look... well... DUMB. Don't Use, Mostly Borked.

This raging chodo we've seen of late for "functions for nothing", "callbacks for nothing" and other such hard to follow and overhead inducing poppycock.

More so when things like MAP and FILTER are used for nothing more than code obfuscation and the introduction of function call overhead that just isn't needed.

If you really think that:

Is any better than:

In terms of speed or code clarity, you really need to learn more about how programming languages REALLY work.

But no, right now crazy nonsense like “for loops are evil” and “don’t use if” are so hot and trendy, people will use twice the code that takes ten times longer to run to avoid it… and gibberish pedantic “career educator” rubbish like “functional programming” is to blame.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store