Mark Stephens

Mark Stephens has been working with Java and PDF since 1999 and has diversified into HTML5, SVG and JavaFX.

He also enjoys speaking at conferences and has been a Speaker at user groups, Business of Software, Seybold and JavaOne conferences. He has a very dry sense of humor and an MA in Medieval History for which he has not yet found a practical use.

Code tidy for January 2012 release

1 min read

The start of a new is a time for fresh starts and New Year’s Resolutions…

If you develop a library (in any language) over 10 years, you accumulate lots of ‘stuff’. You have code which used to do things or should have been refactored and tidied up. And all this makes it harder to maintain and develop the code base. The JPedal PDF library has evolved substantially in power and functionality over the years and  is also now being used in ways we never even considered back then.

Backwards compatibility is very important but there is always a tension with going forward. We get the same problem with which Java version to support – should we still be supporting Java 1.0?

So we had a good look at our main PdfDecoder class over the holiday and noticed that we had (over the years) added a lot of code which should be moved down and methods which cluttered the API and in some cases no longer did anything. It had also become a convenient ‘dumping ground’ so things which should have been put elsewhere. We have tidied these up and documented any changes to methods on the build release note which we think are in general usage. None of the main methods have been altered. And all the changes have been regression tested against our large batch of automated tests.

Most people will not even be aware of most of the methods removed. But if you do find any problems, please let us know on the support forum and we will help with any changes we have made.

The result is a cleaner, faster Java library and a lot of clutter moved out of the way. So we can continue to improve the library over the next 10 years…

Mark Stephens

Mark Stephens has been working with Java and PDF since 1999 and has diversified into HTML5, SVG and JavaFX.

He also enjoys speaking at conferences and has been a Speaker at user groups, Business of Software, Seybold and JavaOne conferences. He has a very dry sense of humor and an MA in Medieval History for which he has not yet found a practical use.

Pros and Cons of Bitbucket Pipelines

Recently I have been looking at our current test suite looking for ways to improve our own tests. As we use Bitbucket we have...
Kieran France
3 min read

WTF: What’s The Future and Why It’s Up To…

If you want to know what is going to happen in the future, the person to ask is Tim O’Reilly. As well as being...
Bethan Palmer
2 min read

Leave a Reply

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