Inherited Jackson Serializers

Looking at the Jackson Serializer post, it does introduce a particular code smell as it uses if statements to check the type of object and take a different action based on that type. Normally, that is indicative of the need to implement the action in the class and/or subclasses. However, this is serialization and we […]

Continue Reading...

Introduction to Jackson Serializers

Jackson is a framework that provides the means to read and write objects to and from JSON. Typically, it tries to use built in support for common classes and simple types. It will also use a default serializer based on reflection to write the JSON, but will need some guidance for more complex custom objects. […]

Continue Reading...

Why C++ ?

I made mention of my venturing back into the world of C++, and was asked why I was interested in doing so given all the Java work I do. The best answer I can give is based on a comment which I think was made by Bjarne Stroustrup himself when asked about the advantages of […]

Continue Reading...

Procedural Terrain Update

So I started a series before Christmas on generating and rendering procedural terrain at runtime. Between one thing and another, including ending up in hospital having surgery for appendicitis, I haven’t taken it any further. As the purpose of doing those articles then was to suit my Christmas mood, with it being nearly Spring, this […]

Continue Reading...

Procedural Terrain With Java – part 1

Every year, around Christmas time I always get a hankering to write some 3D terrain rendering code. Not so much the actual rendering engine, that part has already been done with 3D APIs such as OpenGL and Direct X. Its more about rendering a 3D terrain generated by code, more specifically pseudo-random numbers, enabling a […]

Continue Reading...

New Look Java Magazine

The official Java magazine from Oracle has received a new look in the form of switching from a heavy PDF based production to a more responsive single page HTML publication. This is fantastic news for the many mobile readers from both a data usage and presentation perspective. As per their issue archives page, it seems […]

Continue Reading...

Java Patterns For Concurrency

This post talks about some of the patterns we can use to solve concurrency issues relating to state shared across multiple threads. The goal is to provide some smarter alternatives to slapping synchronized on every method call, or around every block of code. The problem with synchronized is that is requires everyone to participate. If […]

Continue Reading...