Design Patterns
-
Core Java
Building smart Builders
When building an API, you should always think about who is going to use it. When the API is simply…
Read More » -
Core Java
Train Wreck Pattern – A much improved implementation in Java 8
Venkat Subramaniam at a talk today mentioned about Cascade Method pattern or Train Wreck pattern which looks something like: …
Read More » -
Core Java
Template Method Pattern – Using Lambda Expressions, Default Methods
Template Method pattern is one of the 23 design patterns explained in the famous Design Patterns book by Erich Gamma,…
Read More » -
Enterprise Java
Publish/Subscribe Pattern with Apache Camel
Publish/Subscribe is a simple messaging pattern where a publisher sends messages to a channel without the knowledge of who is…
Read More » -
Software Development
A Theorical Look into Object/Resource Pool Pattern
Definition: Sometimes our software projects need costly object creations (database connections, socket connections, large graphical objects etc.). This cost may…
Read More » -
Scala
Gang of Four Patterns With Type-Classes and Implicits in Scala
Type-classes, as they’re known within the Scala language, have a wonderful place in library development. They make code open to…
Read More » -
Core Java
Template method design pattern in Java
Template method pattern is a behavioral design pattern which provide base method for algorithm,called template method which defers some of…
Read More » -
Core Java
Observer design pattern in Java
As the name suggests it is used for observing some objects.Observer watch for any change in state or property of…
Read More » -
Core Java
Singleton Design Pattern – An introspection and best practices
Definition: Singleton is a part of Gang of Four design pattern and it is categorized under creational design patterns. In…
Read More »