RSS

Monthly Archives: July 2013

Surprising outrageous file handling

I don’t usually focus on bad examples of code (because there are so many ways to do it wrong they are rarely repeated) but here I found a particular pattern that was pernicious and repeated all through the code, indicating that at least one development thought this was a really good idea.  It isn’t. Read the rest of this entry »

Advertisements
 
Leave a comment

Posted by on July 18, 2013 in Coding

 

Tags: ,

3 reasons that XML should be Streamed and never “Stringed”

XML is a text format, and so it is tempting to handle it with the normal String handling capabilities of Java, but there are several reasons that you must never do this.  XML should either be on the disk as a sequence of bytes, or it should be parsed as a DOM tree of decoded string values, but it should never be in a String in its encoded value. Read the rest of this entry »

 
Leave a comment

Posted by on July 17, 2013 in Coding, Design

 

Tags: , , , ,

9 Rules for Designing the Build

Every software product needs to be built, and the script to build it is as much part of the product as anything else.  Here are some guidelines around how to design the build script. Read the rest of this entry »

 
Leave a comment

Posted by on July 16, 2013 in Coding, practice

 

Tags: , ,