Month: April 2020
-
Revisiting the Visitor Pattern to design resilient software library
The visitor pattern is a behavior design pattern, which means it presents a scheme for objects to work together towards solving a problem. The problem the visitor pattern solves is to add functionalities to a class hierarchy without having to modify every class. We will examine this pattern in the context of designing software library. […]
-
Dining Philosophers: An intuitive interpretation of the hygiene solution
In this blog post, I will introduce the dining philosophers problems, and discuss Chandy and Misra’s solution (which is also referred as the hygiene solution). It’s not a formal discussion, but rather an intuitive interpretation, therefore I will omit details that I don’t think are conducive to my interpretation, and expand on details that I […]