Builder pattern in Node.js

In this post, I'm going to explain the builder pattern in Node.js. I'll use the code constructed in my previous posts - see the repo. Because the changes are not compatible with the previous version, they are committed to builder-pattern branch Builder is useful whenever you need to build...

Adapter pattern in Node.js

In my previous posts I explained the idea of Service Objects, and how to test them. I also prepared the repository with the working code on GitHub - check it out if you feel like it. The code contains also another fascinating design pattern - adapter for Facebook API. Let's...

Text converters in data binding

Android applications often need to display different attributes in TextViews. Part of those attributes are not simple Strings, which might cause some problems. Let’s assume we have an object User with a birth date field. Now, if user’s birth date needs to be displayed, there are several approaches....