-
Core Java
Deep dive into Optional class API in Java 8
We all as Java programmers been through the situation where in we invoke a method to get some value and…
Read More » -
Core Java
DSL based approach to input Graph data in graph theory based java programs
Most of us have coded some programs which deal with graph theory algorithms like finding the shortest path between two…
Read More » -
Core Java
Creating External DSLs using ANTLR and Java
In my previous post quite sometime back I had written about Internal DSLs using Java. In the book Domain Specific…
Read More » -
Core Java
Strategy Pattern using Lambda Expressions in Java 8
Strategy Pattern is one of the patterns from the Design Patterns : Elements of Reusable Object book. The intent of…
Read More » -
Core Java
Creating Internal DSLs in Java, Java 8- Adopting Martin Fowler’s approach
Currently I am reading this wonderful book on DSLs- Domain Specific Languages by Martin Fowler. The buzz around the DSLs,…
Read More » -
Core Java
Factory Method pattern in Java
In my previous post about the Template Method pattern, I showed how one can leverage lambda expression and default methods.…
Read More » -
Core Java
Parsing XML using DOM, SAX and StAX Parser in Java
I happen to read through a chapter on XML parsing and building APIs in Java. And I tried out the…
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 »