Stringtree and Mojasef now on GitHub

It’s been a long time coming, but I have finally decided that the master source code of the Stringtree and Mojasef Java libraries will now be hosted at GitHub rather than Sourceforge. I have been using git to manage the rest of my software for a long time now, but my two main projects have …

Continue reading ‘Stringtree and Mojasef now on GitHub’ »

Ruby, Sinatra, Dreamhost, Haml, git – a smooth web app workflow … eventually

I have spent many years developing web applications in Java for corporate clients. During that time I have used a wide range of frameworks, APIs and other useful stuff. I have written my own versions (sometimes several) of many of these components, learned the tools well, and become very productive and effective. However, it has …

Continue reading ‘Ruby, Sinatra, Dreamhost, Haml, git – a smooth web app workflow … eventually’ »

Stringtree/Mojasef for Java 1.4 are now proper branches

A few months ago I made the decision to move the Stringtree and Mojasef code-bases on from their requirement to support older Java versions. I tagged a particular version of the code as “1.4 final” and proceeded to work through the trunk code in the repository to bring it in line with key Java 5 …

Continue reading ‘Stringtree/Mojasef for Java 1.4 are now proper branches’ »

Test-Driven Development of HTTP and REST interfaces with Mojasef

Test-Driven Development (TDD) of HTTP and REST interfaces can be tricky. This post contains some examples of how to do it using the open source Mojasef toolkit. I was prompted to write this post after recently finding and fixing an irritating bug using just this technique. First, let’s set the scene. In TDD the rules …

Continue reading ‘Test-Driven Development of HTTP and REST interfaces with Mojasef’ »

MINA: Building a scalable server in 20 lines

This looks very interesting, even though I have a few questions to answer when I evaluate it properly. @me&java ยป Building scalable server in 20 lines I’m particularly interested how MINA stacks up against Grizzly, as they both seem to be addressing the same problem – a high-performance Java server using newer IO facilities. Currently …

Continue reading ‘MINA: Building a scalable server in 20 lines’ »

Zebra Striping: Does it Really Help?

Many times when designing or implementing tabular user interfaces I have been through the loop of adding “zebra striping” to distinguish elements of a sequence. I have done this so often that my web framework Mojasef provides tools to assist in generating such stripes. Jessica Enders has done a small study and written an article …

Continue reading ‘Zebra Striping: Does it Really Help?’ »

Mojasef goes into beta at last

Finally, I have got to a point where I reckon Mojasef is nearing a proper numbered stable release. To celebrate this I have updated the version number in the Mojasef source code to 2.0.b1 and made a downloadable release (source and jar) available at Sourceforge. I strongly encourage anyone interested in shaping the direction, contents …

Continue reading ‘Mojasef goes into beta at last’ »

A Mojasef improvement prompted by thoughts of Spring

Following on from my post a couple of days ago I’ve now added a small extra feature to Mojasef which should add a whole range of extra power. One of the things it enables is a much closer integration with Spring, but that’s only a small part of the possibilities. The way this new feature …

Continue reading ‘A Mojasef improvement prompted by thoughts of Spring’ »

Integrating a Spring context with Stringtree

I don’t tend to use it myself (preferring the “spec” mechanism built-in to Stringtree), but today someone asked me if a Mojasef application could work with Spring. After a bit of thought, some downloading, and a little playing, here is the result. My intention was to allow beans configured in a Spring application context to …

Continue reading ‘Integrating a Spring context with Stringtree’ »