u/sibipin r/haskell • Recommends
#categorytheory#erikmeijer#java8
Category Theory, The essence of interface-based design - Erik Meijer
6K subscribers • 2 videos on Hallway
- Recommended by 2 people: 1 on Hacker News and 1 in engineering communities.
- A classic. People kept recommending it from 2015 to 2018.
- Presented by Erik Meijer, computer scientist
- An opinion. It argues one side of a question engineers disagree on.
Advanced. Deep dive for people who know the field.
74K views11 years ago2 recommendations
Programming languagesSoftware designFunctional programmingLanguage design and type systemsAPI design
Erik Meijer explains how category theory relates to interface-based design, demonstrating that Java 8 lambdas form a Cartesian closed category.
Category Theory is the Mathematicians' interpretation of interface-based design, so whenever you hack together a new API in your favourite OO language, it is always a smart idea to ask the question x -LT "What would x do?" applied to the Category Theorist that worked on your same problem already decades ago. Since lambda expressions are the new hot topic all across programming language land these days, we will invoke our question of conscience with "Joachim Lambek" and learn that Java 8 lambdas and method references are simply a Cartesian Closed Category, proving yet again that interfaces are the OO developers' interpretation of Category Theory. Foo Café is an independent and physical meeting place for people of all backgrounds and expertise within the IT-industry in the Malmö/Lund region. Foo Café is aimed at those interested in sharing, learning and creating. Join the fun at foocafe.orgWhy it's here
2 people recommend thisWhat people say. Recommended as an accessible introduction to category theory and its practical application to software design.
yenwelon Hacker News • Recommends
On “An invitation to category theory”
chason Hacker News • Mentions
On “How we used Category Theory to solve a problem in Java”
clusmoreon Hacker News • Mentions
On “Static typing will not save us from broken software”
adamnemecekon Hacker News • Mentions
On “Basic Category Theory”
deltasevennineon Hacker News • Mentions
On “C++ is the next C++”