Category: Programming
Creating a simple OSGI Bundle By Hand
As a bit of an experiment I tried to create an OSGI Bundle by hand and run it with Apache Felix.
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...Simple C++ Project Setup With CMake
As a Java developer, I wanted to dabble with a C++ project, something I’ve not done for a while. I was looking into how to structure my project with a view to getting started quickly, but ensuring that if I wanted to expand the project, I wouldn’t have to restructure it in order to keep […]
Continue Reading...Procedural Terrain With Java – part 2
So last time we got our Java application up and running with a scene displayed using the JMonkeyEngine (JME) game engine. This time, we’re going to extend that to generate some procedural terrain. We are going to start with a HeightProvider class that is used to provide us with heights of the terrain at a […]
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...Optionals
Article about the semantic benefits of using java Optional values for returning results.
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...Implementing Chained Methods with Inheritance
Chained methods are class methods that return the instance of the object so you can call another method on the same object. This article looks at the problems you can face with implementing classes with chained methods in Java when using inheritance, and how to solve them.
Continue Reading...Java Concurrency – Introduction
First in a series on concurrency and describes some of the problems with concurrency in our code and simple ways we can fix them. While there are far more complex problems that require more advanced solutions they all share the same principles and in many cases, are rooted in these basic solutions.
Continue Reading...Using Facelets Parameters with Templates in JSF
One feature of Facelets is the ability to define parameters in your pages that can be used anywhere in the template hierarchy. This post shows you how you can pass parameter between the Facelet template and the client.
Continue Reading...