I generally understand the construction.. (you know, the canonical example of splitting a string of words by spaces, which returns a collection, which is then flattened). But there seem to be so many ways to use it differently.. resolving futures, spark dataframes, scala collections, all have their idiosyncratic ways of processing the results The dsls of the transformations are the most confusing for me. When I’m bored at work like I am now, I think of all of the ways that flatmap gets used and I try to refresh my memory on how it’s used. For some reason, it’s harder for me to grok than any other idiom.
(Unfortunately) major Scala libraries are essentially universes of their own. Learning one's idioms and dsl does not neccessarily transfer to the other one. That's the price of the "powerful high-level abstractions" that these libraries are trying to bring to users.
5 comments
[ 3.1 ms ] story [ 13.4 ms ] thread