Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. He enjoys speaking at conferences. He has an MA in Medieval History and a passion for reading.

3 ghosts to fix in your code at Christmas (with apologies to Mr. Charles Dickens)

1 min read

Marley's Ghost

Like Ebenezer Scrooge, I find the week before Christmas a great time to get work done (although we do disagree on the actual holiday itself as I like to spend it away from work with my family and try all the new toys my children receive!).

In the week before Christmas, there tends to be less calls and inquiries from customers or potential sales to process. So it gives you a chance to clear tasks which just never seem to get done and also to get everything ready for the new Year. In particular I like to revisit my Java code (I am a developer at heart) and deal with 3 ‘ghosts’.

1. The  code of Christmas past

When you write a piece of software it tends to accumulate lots of old ‘stuff’ – comments, hacks, abandoned side projects, unused code, etc. Some of this is incredibly useful but most of it is just clutter.

Get rid of it now so that in 2011 your code is more manageable.

2. The code of Christmas present

There is a lot of code I have added recently which is not as clear as it could be. It needs to be nicely formatted, properly documented, the variable names could be improved and it would really benefit from some notes to explain context and link to example files. Then it will make sense when I need to revisit it at some point in the future.

Tidy it up now while you still have all the ideas in your head.

3. The code of Christmas future

I want to make some big changes and improvements  to our PDF library in 2011. So now is a good time to review the code as a whole and make those structural changes that will allow me to add lots of really cool new stuff without breaking the existing code base (which is definitely not cool).

Give yourself  a clear roadmap for fitting in my new changes.

So use the quiet time to clear the decks and have a good code tidy. Then you can sit down and enjoy your Christmas Carol without any worries about unwelcome visitors.

How do you deal with your ghosts at Christmas time?

Did you know...

IDRsolutions offers a whole range of online file converters to convert PDF and Microsoft Excel, Word and Office Documents to HTML5, SVG or image formats?

It is free to use for single file conversions and also includes Developer links if you want to use our commercial software for bulk conversions. Find out more on this page

Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. He enjoys speaking at conferences. He has an MA in Medieval History and a passion for reading.

Leave a Reply

Your email address will not be published. Required fields are marked *

IDRsolutions Ltd 2020. All rights reserved.