I've recently seen an advertisement for JDBCLint on the H2 User Group. JDBCLint is an Apache licensed JDBC proxy implementation that does some plausibility checks on the lifecycles of your JDBC objects. For instance, it Checks if a ResultSet is closed twice Checks if a ResultSet is not closed at all (in the finalizer) Checks … Continue reading Detect JDBC API Misusage with JDBCLint
Tag: Code quality
Deep Stack Traces Can be a Sign for Good Code Quality
The term "leaky abstractions" has been around for a while. Coining it is most often attributed to Joel Spolsky, who wrote this often-cited article about it. I've now stumbled upon another interpretation of a leaky abstraction, measured by the depth of a stack trace: So, long stack traces are bad according to Geek & Poke. … Continue reading Deep Stack Traces Can be a Sign for Good Code Quality
Silly Metrics: The Most Used Java Keywords
Tell me... Haven't you ever wondered how many times you actually "synchronized" something? Didn't you worry about not using the "do {} while ()" loop structure often enough? Are you an expert in applying "volatile"? Do you "catch" more often than you "try"? Is your program rather "true" or rather "false? And how did that "goto" … Continue reading Silly Metrics: The Most Used Java Keywords