Posts

Spring HATEOAS - Embedded Resources with HAL

One common issue I see on the web is people having trouble rendering their JSON objects in HAL with embedded resources. For this example I am using groovy, but it explains how to configure the rendering of resources in a spring applicaiton.

Rails Unfit for Microservices?

This is a relatively informal blog post. Looking more for feedback and response to get a conversation started. The prerequisite to this thread is that you have a fairly good understanding of Microservices. If not at least read the following link: http://martinfowler.com/articles/microservices.html

The Java Enum: A Singleton Pattern

Image
The singleton pattern restricts the instantiation of a class to one object. In Java, to enforce this, the best approach is to use an enum. This great idea comes straight from the book Effective Java by Joshua Bloch. If you don't have it in your library, get it. One of the best Java books to date. There are a few reasons why one would use an enum as a singleton in Java:

Bootstrap Guide: The Virtual Tour Library

Image
Introducing a Virtual Tour Library (using TW Bootstrap) Fork Or Download Project On Github   A jQuery library used for designing help pages for your website.  Gives the user a guided walk through of your webpage and it's functions.

Free Twitter Bootstrap Admin Theme

Image
Introducing Responsive Clean Dashboard Bootstrap UI Theme

Java Developers Need To Be Using Lombok

Lombok is a Java library meant to simplify the development of Java code writing. This article deals with writing classes that need getters/setters, override equals, hashCode, toString and/or offer a copy constructor. Way to go Java! You just made writing a simple class cumbersome. Project Lombok will make your day if you haven't seen it yet.

Adding Groovy Sources to Maven Build Path

Say you want to run a groovy class method from your Java project in Maven. You've placed the script file at src/main/groovy/script/MyGroovyScriptClass.groovy . In Java, you would load the class and execute its method like so: