News for hackers. Stuff that matters.
Re:The Cost of Abstraction (2016) by Tarean on Sunday February 24, 2019 @05:52PM (#19241173)
On the other hand, the lens library in haskell is extremely abstract. Libraries obviously have different tradeoffs but using lens can increase the onboarding cost significantly for new team members.

I am mentioning lens because it has a both function:

    incBoth = both += 1
Which has a fun type signature:

    incBoth :: (Bitraversal p, MonadState (p a a) m,  Num a) => m ()
Re:The Cost of Abstraction (2016) by tome on Monday February 25, 2019 @11:19AM (#19246659)
Hmm, don't you use it as a monadic action like

    do
        ...
        both += 1