• submit to reddit
Roger Hughes09/24/11
2 replies

Weasel Words

The other day I had to look into a project’s source code and shocked by the state it was in. I can, hand on heart, say I haven’t seen code like it for 10 years... which made it interesting. Everyone, even the most inexperienced programmer seems to be...

Steven Lott09/24/11
4 replies

"Strict" Unit Testing -- Everything In Isolation Is Too Much Work

Folks like to claim that unit testing absolutely requires each class be tested in isolation using mocks for all dependencies.  This is a noble aspiration, but doesn't work out perfectly well in Python. First, "unit" is intentionally vague....

Dinuka Arseculeratne09/23/11
9 replies

Hibernate by Example - Part 1 (Orphan removal)

So i thought to do a series of hibernate examples showing various features of hibernate. In the first part i wanted to show about the Delete Orphan feature and how it may be used with the use of a story line. So let us begin :)   Prerequisites: In...

Roger Hughes09/23/11
1 replies

Using Spring's AspectJ Support and the @Before Annotation

You may have wondered how the Guys at Spring do all that jiggery-pokery with the annotations that you add to your Spring beans. I’m not an expert here, but I suspect that somewhere along the way, they do a little Aspect Oriented Programming using AspectJ...

Martin Hinshelwood09/23/11
2 replies

Scrum is hard to adopt and disruptive to your organisation

Before the “Professional Scrum Foundations” course ever existed I was tasked with delivering a practical Scrum foundation course for our customers. I came up with a 2 day “Scrum Foundation” course that included lots of practical exercises and...

Robert Diana09/23/11
3 replies

Agile And The Art Of Outsourcing

I was first introduced to outsourcing many years ago when dealing with a client that liked using an Indian consulting company. At that time, around the late 90′s, the company was using purely waterfall development processes and agile was really just...

Krishna Kumar09/23/11
16 replies

Making Time for Hobby Programming

I noticed a couple of comments on DZone about programmers with family not having the time to do hobby projects. As I wrote about my own experiences having a child, I really empathize with such concerns. It is not easy. It is really hard to do a fair job...

Rob Williams09/23/11
2 replies

Maven and Nexus: Not All Pain is Bad

Right after using Nexus to solve my problem with the Amazon SES dependency imbroglio, I had occasion to make a new Java EE 6 project using the Weld archetype, and, lo and behold, there was more pain to grind through. Clearly, it‘s a good sign when a tool...

Howard Lewis Ship09/22/11
1 replies

Changes to Cascade, and a cautionary tale about defrecord

Since I've been talking more about Clojure lately, I've spent a little more time working on Cascade. I've been stripping out a lot of functionality, so that Cascade will no work with Ring and Compojure, rather than being in competition. Its Clojure, after...

Roger Hughes09/22/11
2 replies

When Inheriting a Codebase, there are more questions than answers...

There will be that time in your life when you inherit someone else's source tree or codebase and you’ll need to think of a plan to deal with this situation. Now, there are codebases and there are codebases, none are ever perfect, but some are just...

Singaram Subramanian09/22/11
0 replies

Apache CXF: How to add custom HTTP headers to a web service request?

HTTP header fields are components of the message header of requests and responses in the Hypertext Transfer Protocol (HTTP). They define the operating parameters of an HTTP transaction, carry information about the client browser, the requested page, the...

Jakub Holý09/22/11
5 replies

JUnit Tip: Verifying that an Exception with a Particular Message was Thrown

JUnit has a hidden treasure which makes it easy to do something we have long longed for – namely not only to verify that an exception of a particular type has been thrown but also that its message contains the expected message. The hidden pearl is the...

Mark Needham09/22/11
0 replies

Scala: for comprehensions with Options

I’ve generally avoided using for expressions in Scala because the keyword reminds me of for loops in Java/C# and I want to learn to program in a less imperative way. After working with my colleague Mushtaq I realised that in some cases using for...

Jens Dietrich09/22/11
4 replies

Dependency Analysis and the Modularisation of Java Programs

Everybody agrees that modularization is good, but how do we go about transforming a big ball of mud architecture to something like OSGi?   Introduction  

Andrzej Olszak09/22/11
1 replies

Modularizing Features of Your Legacy Application for Fun & Profit

The user wants me to modify/fix a bug in a certain feature, but what exactly are the classes that I should change? Asking yourself this question on a regular basis? Read on!