Design Patterns with First-class Functions

Design patterns are language-independent, but in the context of languages with first-class functions, it’s beneficial to rethink some patterns. The general idea is: you can replace instances of some participant class with simple functions, reducing a lot of boilerplate code. In this post, I will refactor Strategy using functions objects. ...

Oct 27, 2018 · 4 min · xgugeng

A Quick Retrospect of Design Pattern

This post summarizes some design patterns I used in daily work or learnt from books. ...

Aug 13, 2018 · 7 min · xgugeng