Fixing Maven Execution Error Markers in Eclipse

A common problem I have with eclipse is adding plugins to my maven pom and seeing the dreaded red squiggly error line rear its ugly head. The accompanying text kindly informs me that “Plugin execution not covered by lifecycle configuration”.

This simply means that m2e (the eclipse maven integration) doesn’t know how to handle this plugin. I’ve found two ways to bypass this error. I’ll detail both methods below:

Continue reading

The SOLID Principles

The SOLID principles are an acronym for 5 principles of Object Oriented Design. The original proposition was that, if all 5 principles were followed correctly, any system designed using them would stand a much higher chance of being more maintainable over time.

SOLID principles are a driving force behind the detection of Code Smells and the Refactoring techniques used to remove them. In the next few articles, I’ll be looking at the 5 principles and trying to understand the purpose behind each…

Continue reading

The wanderer returns

My last post was… over a month ago.

I guess a lot’s happened in the meantime. I got a new job, moved house, had arguments with a LOT of utility companies. In short, I did all the painful paperwork that comes with being an adult. I have decided I don’t like it and its the best argument against change I’ve ever encountered.

I have one last major stress coming up at the end of this week. After that, hopefully I’ll be able to resume posting on here on a semi-regular basis.

Try to leave this world a little better than you found it

I came across a quote today that gave me pause. The quote is attributes to Baden Powell, the founder of The Scout Movement :

“Try to leave this world a little better than you found it”

I think this is a sentiment we can express in every aspect of our day-to-day lives, be it tidying up after ourselves, working for our community or just helping someone who needs it.

That said, this wouldn’t be a tech blog unless I managed to find a way to relate this back to development in some form so here we go..

Continue reading

Kanban – The Hard Way!

On Wednesday, I attended a lecture titled “Kanban – The Hard Way”. The lecture was given by Mike Burrows, a leader in using the kanban management techniques in a variety of organisations.

Going into the lecture, I knew very little about Kanban. However, by the end I had a fairly good knowledge of its implementation and, more importantly, the reasons why it works so well.

I attended the lecture with a friend who made copious amounts of notes (Although it took me until halfway through the lecture to realise he was typing them into his phone, not just texting non-stop). Hopefully he won’t mind too much if I dip into them as I write this..

Continue reading

Code Smells 5 – Long Parameter Lists

Long parameter lists are very common. As method signatures change, parameter lists tend to grow. Often a method needs access to a significant amount of data to do its work. Unfortunately, long parameter lists have a lot of problems, so we need a way of avoiding them whilst still giving our method access to all the data it requires.

Continue reading

Refactoring Techinques 1 – Preserve Whole Object

Often, when invoking subroutines or helper methods, we need to pass some of the data of the calling method to the subroutine. In many cases, this data is a subset of the data we are working on (For example, calculateDistanceTravelled() as applied to a Car object doesn’t need to know its colour, but may need to know its engine size, top speed and acceleration).

Continue reading