1% Problems
Sunday, July 22nd, 2012I hate 1% problems. No this isn’t an OWS slogan. I’m thinking of those code issues that really aren’t a problem 99% of the time, but when they bite, they’re really hard to debug and they cause real pain. Several common cases in Java:
- Using
java.util.Dateorjava.util.Calendarinstead of JodaTime. - Not specifying a
Localewhen doing language sensitive operations such astoLowerCase()andtoUpperCase(). - Not escaping strings passed to SQL, XML, HTML or other external formats.
What I hate most is that it’s really, really hard to convince other developers that these are problems they should take seriously. (more…)