Design Pattern: Observer Pattern in Go

Observer pattern is used to set up one or more notifiers/publishers, and some subscribers for those notifiers. So that the subscribers get the change info when the notifier triggers a change event. The notifiers are subscribers are decoupled from each other, so the subscriber does not need to know how many notifiers/publishers are there. This article demonstrates Observer pattern implementations in Golang.

Design Pattern: Memento Pattern in TypeScript

Memento pattern maintains a list of state changes performed on an object. This way, we can revert back and can go back to any point of object state history. The internal state is encapsulated inside the object, and the undo process does not need to be aware of it. This article demonstrates Memento pattern implementations in TypeScript.