book design pattern GOF

Patterns book trinity

A design pattern in architecture and computer science is a formal way of documenting a solution to a design problem in a particular field of expertise. — Wikipedia Design patterns are a common reference in our line of work. People who discuss a pattern often draw strange looks from people who don’t about it (or who don’t know about patterns in general). Of course, there are dozens and dozens of design patterns just waiting for us to know them. IMHO, today, the three follo

binding bindings custom customization customize jaxb maven plugin parent class serializable xjc xml

Customize your JAXB bindings

JAXB is a bridge between the Java and the XML worlds, enabling your code to transparently marshalls and unmarshalls your Java objects to and from XML. In order to do this, you should have a class representing your XML-Schema. This class is created by the xjc. In most cases, xjc creates a class that won’t suit your needs. In this article, we’ll see why it does so and what we can do to customize this behaviour.

Architecture design eda ego ego driven architecture

Ego Driven Architecture

Whoever is in charge of software architecture, be they senior developers, whole teams like in agile practice or architects-per-se, it is a deep trend to apply what I like to call Ego Driven Architecture (or EDA for short, not to be mistaken with Event Driven Architecture). When one has to choose an architecture, one should design it from a number of objective criteria, including: business requirements,technical constraints,ease of use,maintenance costs,etc. One could even argue you should tak

java web start jws legacy publish web start

Web Start your legacy applications

In this article, we’ll see how to make an old-but-useful legacy Java application into a brand new Java Web Start (JWS for short) application. JWS is an often overlooked technology that works miracles. With it, you can deploy any Java application, as easily as you would a web one: with the only update server-side and still your application running client-side, with access to all its resources. JWS has two main features: the downloading of the application to the client and the launching of

C jani Java java native access jna native win32 windows

JNA meets JNI

I reccently stumbled upon a nice framework you’ll love if you ever have to work with native code. Before this framework, if you needed to call native code, you would use JNI. JNI uses a proved but complex and error-prone process. First thing first, you write your Java classes like always. But for methods you want to delegate to native code, you use the native keyword and do not provide an implementation. Then, you call a JDK-provided executable named javah. This generates your C header fi

iNove Mandigo theme

Theme change

If you already visited here, you can clearly see something has changed. In order to celebrate my new job, Spring eternal and what have you, I changed my blog’s theme. I previously used Mandigo, which has many, many options but I grew tired of it. Mandigo is a beautiful theme but I wanted something more focused, that doesn’t take precedence over what is written. My choice went with iNove, even if I had to hack the theme PHP scripts to keep Goggle analytics scripts and favicon. It’