In the typical case, the observer is responsible of getting the updated state from the subject. This means that the observer has to hold a reference to the subject (also the subject holds a reference to the observer, meaning we have created a circular reference).
Observer pattern is a design pattern with an intent to define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
My Ansible playbook stopped working when using Vagrant 1.8 or above. The problem seems to be with changes made in Vagrant.
Vagrant Ansible provisioner skips plays that are meant to be run on localhost. There’s a simple workaround for that.
CompletableFuture is an implementation of the Future interface but with a modern twist. It takes advantage of functional operations to promote asynchronous/event-driven programming model.
I’ve decided to use Ansible to manage SugarCRM environments and deployments. Here’s an overview of Ansible playbooks I’ve created.
Optionals in Java can help you to write a program without null checks. Chaining Optionals in a Stream enables to pick the first Optional which has a value and return it.
Using Arduino IDE’s serial monitor with SparkFun ESP8266 Thing does not work. In this post you’ll see how to use a serial terminal with the SparkFun ESP8266 Thing on Linux.
If you have had any experience with Java, then you most likely have seen the NullPointerException. Optional in Java 8 are a way to fight them.