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, around the languages which support creation of DSLs with ease, the use of DSLs...
View ArticleBook Review: Learning Play! Framework 2
Sometime back I had posted a preview of the book: Learning Play! Framework 2. I haven’t been through the other books on Play! Framework. This book adopts a pracitcal approach where its recommended to...
View ArticleBook review: Fitness for Geeks
Fitness for Geeks is a book for gadget/app freaks who want to calculate and track each of their actions. This book is loaded with nutritional information which will take some time to settle into the...
View ArticleMonitoring ADF application deployed on Weblogic using Newrelic Java agent
I had registered on Newrelic some time back. I was lured into the registration by the free T-Shirt on offer for anyone who deploys Newrelic agent and use it to monitor the application. I never thought...
View ArticleStrategy 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 the strategy pattern as stated in the book is: Define a family of algorithms,...
View ArticleCreating 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 Languages by Martin Fowler, he discusses about another type of DSL called external DSLs...
View ArticleDSL 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 vertices, finding the minimum spanning tree for a given graph and so on. In each...
View ArticleBrief overview of An “object” in Scala
In Java world we are all familiar with the term object and interchangeably use it with the term instance. Both these terms represent initialization of a class with the required parameters. But the same...
View ArticleHTML5 Geolocation API with Goolge Maps
I have been reading Head First HTML5 and read about the Geolocation support in HTML5 and also went through the example they have shared about using the Google Maps with HTML5 geolocation API. It was an...
View ArticleGetting started with JSON-P
I have during my college days used XMLHttpRequest object and its equivalent in Microsoft world to make Ajax calls and those Ajax calls were to the URL within the same domain. But with the advent of...
View ArticleA brieft introduction to using Option and Either classes
Previously I had written about Companion classes in Scala and there in I had mentioned one of its uses i.e defining the apply method to support object literals. In this post I am continuing from where...
View ArticleDeep 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 then instead of directly invoking some methods on the return value, we first have to check that...
View ArticleBook Review: Head First HTML5 Programming by Eric Freeman, Elisabeth Robson...
We all have enjoyed reading the Head First series of books and this book i.e Head First HTML5 Programming is no different. The authors Eric Freeman and Elisabeth Robson have kept the content in the...
View ArticleDouble Brace Initialization Idiom and its drawbacks
This post is inspired by the Double Brace Initialization concept explained here. This technique can be used for creating and initializing objects and represent these operations in a single expression....
View ArticleCreating Websockets in JavaEE 7
I recently wrote about the WebSocket support in the latest JavaEE release i.e JavaEE 7. In the post I show how to create a WebSocket server end point and deploy it in Glassfish server and then connect...
View Article[Promo]Explore something new this Columbus Day with Packt’s biggest ever sale
Packt Publishing is giving everyone the chance to explore its full range of over 1600 DRM-free eBooks this Columbus Day at a massive 50% off at www.packtpub.com, for 4 whole days. Customers simply use...
View ArticleJSON Processing support in JavaEE 7 and JSR-353
Warning: preg_replace() [function.preg-replace]: Unknown modifier 't' in /home/sanaulla/public_html/blog/wp-content/plugins/jetpack/class.photon.php on line 288 Warning: preg_replace()...
View ArticleBook Review: Peopleware
Peopleware is a must read for Managers who want to explore and learn about different managerial responsibilities and learn about what not to be done while executing those responsibilities. The content...
View ArticleAnother sample for using JAXB
Recently I blogged a sample for using JAXB and thought of sharing it on my blog. The sample for JAXB can be found here. Related posts: Using JAXB to generate Java Objects from XML document Quite...
View ArticleGetting started with Mocking in Java using Mockito
We all write unit tests but the challenge we face at times is that the unit under test might be dependent on other components. And configuring other components for unit testing is definitely an...
View Article