News for hackers. Stuff that matters.
Re:Functional Programming Is Not Popular Because It Is Weird by jonahx on Saturday February 27, 2016 @06:05PM (#11188908)
The author's attempt to rewrite the cake recipe in a functional style misunderstands the paradigm completely.

The correct image here is all the stuff -- oven, pans, butter, flour, salt, etc -- entering a funnel on the left and producing a baked cake on the right. The funnel itself, if you were to peer inside it, would be composed of multiple sub-funnels: pans with batter + oven as the last step, empty pans and bowls of batter as the step before that, and so on.

It's natural, not weird. The metaphor is used all the time on cooking shows, where they show you bowls of all the ingredients, and the final product next to them.

Re:Functional Programming Is Not Popular Because It Is Weird by braythwayt on Saturday February 27, 2016 @06:56PM (#11189067)
It’s easy to imagine the funnel you describe, if we imagine we are building a factory for cakes. Naturally, the ingredients arrive on various conveyor belts or in pipes, are mixed, and cakes emerge from the other end.