Installing Eclipse

I’ve just bought myself a netbook, and following the example set by John Smart with his article on installing Eclipse, I’ll document what I do with a clean install of Eclipse. First Things First I download the Eclipse IDE for Java Developers. The download is less than half the size of the Java EE edition, [...]

What should my code tell me?

When I’m reading code, there are a number of things that make my job much easier.The most important (in my opinion) is good naming, but how can we choose suitable names?This is the pattern that I am starting to see (and recommend), and I think it is pretty effective. What? How? Who? Why? If we [...]

Well, how did I get here?

And you may find yourself living in a shotgun shackAnd you may find yourself in another part of the worldAnd you may find yourself behind the wheel of a large automobileAnd you may find yourself in a beautiful house, with a beautiful wifeAnd you may ask yourself, “Well… how did I get here?” Once in [...]

Returning ‘null’ Considered Dishonest

Background Antony Marcano and I have just started running a coding design workshop. Most of the audience are new to coding and we are trying to focus on good habits that are applicable across all programming languages.In our first session, we created a vending machine. By the end of 90 minutes, it was able to [...]

Singletons

I’ve been playing about with a code base that has a large number of singletons, for what appears to be no apparent reason.Something about singletons doesn’t sit quite right with me, but in the most part, if they’re not misbehaving, I’ll probably leave them be. The thing that bothers me a lot more though, is [...]

Static Utility Methods

A few of us were chatting about static methods the other day.I’m not a big fan. I think that they tie you unnecessarily to a concrete class. Most people were saying that there is no harm in having static methods in utility classes, and this is one place where I would disagree.The example used was [...]

Refactoring / Design: Composed Method

I’m going to try and write a few posts over the next few weeks around the subject of Refactoring and Design. This is mainly practice for me, so that when asked to explain, I don’t confuse the issue. All comments and suggestions are gratefully accepted. When I am looking at code, I feel a lot [...]