September 9, 2017

On Abstraction

This post is a direct answer to this other post, which itself is mostly an answer to a bunch of discussions on Twitter, talks and more posts. While this post has probably value by itself, it’s probably better to read the original post first, because I’m going to refer to some of its statements. There’s an interesting discussion going in the functional Swift community: whether using abstract data types, like Monoid, is actually useful, and how this relates to the way protocols are usually laid out in the standard library. ... Read more

December 29, 2016

Lenses and Prisms in Swift: a pragmatic approach

This article is a little outdated and doesn’t really represent anymore the actual way I use these concepts in my day-to-day work. I’m going to update it soon with some of the concepts expressed in my talk Lenses and Prisms in swift. The concept of functional lens has become pretty popular in functional programming circles, and there are already good contributions for applying lenses to other, traditionally imperative/OO contexts, like Javascript. ... Read more

© Elviro Rocca 2016