Posts Tagged: Java

The Other Side of the Fence

Posted by & filed under , , .

I felt I needed to write this, as we have been interviewing for a bit in Cognitive Match, for various segments of our technical team and we had occasionally bad luck with the candidates who turned up. Having been on both sides of the recruiting fence in my life, I realise that a certain percentage […]

Simplify Your Singletons

Posted by & filed under , .

I’ve seen recently some Java code (I’m not telling whose, you probably know who you are :p) where a singleton pattern was involved. Nothing unusual here, you would say — and you’re right, I probably found myself using Singleton and Factory and Observer in pretty much every single Java project I ever worked on. The […]

SimpleDateFormat and Multiple Threads

Posted by & filed under , , .

I felt like I had to write this to spread the word a bit more about this little-known danger of one of the JDK classes: SimpleDateFormat. Used quite widely from what I can tell — who hasn’t written something like this: SimpleDateFormat df = new SimpleDateFormat(); df.format( new Date() );SimpleDateFormat df = new SimpleDateFormat(); df.format( […]

Maven Checkstyle Plugin — Usage

Posted by & filed under , .

The title might not be the best, I’ll give you this, however, having just spent some time trying to get Checkstyle to run in the site phase of one of my maven projects I have figured out that a lot of the resources you find out there miss out a few important details. So if […]

Running Tomcat on Port 80 on a Mac — shell script

Posted by & filed under , .

If you’ve been messing about with Tomcat on a Mac OS X, you probably came across the problem of not being able to run the damn Tomcat on port 80. This to many won’t come as a problem, as in most cases port 8080 works fine for local development/testing. However, I found out that this […]

Scripting

Groovy Scripting at the Power of Commons CLI

Posted by & filed under , , .

I’ve found myself more and more scripting stuff in Groovy — partly I’m guessing it’s cause of my Java background, partly because I’m probably not such a good bash/awk/perl/sed/etc script hacker 🙂 Nevertheless, make no mistakes, Groovy is an awesome scripting tool! (I’m not going to praise its benefits in terms of building applications — […]

System Console Support — JDK 1.6

Posted by & filed under , , , .

I’m sure some of you have found the need occasionally to use the “console” input/output support provided by the JDK via System.in and System.out — if nothing else just to implement an occasional more complicated command-line “scripty” app to be run in a Linux environment and piped input in or out from/to another program. The […]