I rather like this idea. The single lines published on the front right now are a little basic for me to find interesting, but I do like the idea of studying an interesting line of code each day. I saw a line recently written by a colleague that while simple, I found quite elegant. I’m not sure I would have thought to apply a constructor to the result of a database action like this.
risk <- Entity rid <$> runDB (get404 rid)
I guess the hard part here would be curating a gallery of interesting single lines of code, or otherwise incubating a community to crowdsource that effort.
I end up joining a traversal sometimes.
Here’s one I was able to ripgrep from my archives: second join $ traverse (first return)
second join $ traverse (first return)