Week 39: Why use flatMap over filter + map and the best financial advice in 87 words

Use flatMap instead of filter + map.

Instead of using filter and map together to extract a list. We can also use flatMap to save iterating through the collections.

Since we're not reducing the array to a single item, flatMap seems more natural than reduce.

Scott Adams' Financial Advice

I came across Scott Adams' financial advice. All simple, sensible advice covering mutual funds, credit cards and insurance. The only change it requires to work within the Indian context is, swapping 401K/IRA with National Pension System(NPS). Rest all hold good. But remember, simple is not easy.

Onebible 1.5.10

As said earlier, I've published v1.5.10. If you haven't updated it, update it now.


For my new posts, Subscribe via weekly RSS, common RSS or Subscribe via Email