Book review : Clean code

hi I recently finished Clean code, from Robert C. Martin (well, in fact it’s mainly from him and some guests, but then..). Anyway, the focus of this book is how to write clean code, meaning readable and maintainable code. For this, the authors go at length on the different aspects, dedicating whole chapters to aspects [...]

protected Constructors

Did you ever try to create an instance of a class with a protected constructor from outside its package? I ran into this need when working with JPA-Entities of which i wanted to know initial field values. (yeah, i know. kind of black magic…) It is actually easier, than getting protected Fields:  Java |  copy |? public static <t> [...]

Ever heard of asynchronous Exceptions?

Really weird, what Heinz Kabutz digs out of the java language Read this newsletter to find out, how System.otu.println(“foo”) can throw a SQLException His statement on checked and unchecked seems rather incomplete, though: My personal opinion is that checked exceptions are not as useful as we would hope. For example, the class java.io.IOException has 74 [...]

An old discussion, but never too old

From an Email conversation this evening: what do you think about it? For a while, I was “all flame” about Checked exceptions, but then I read about their limitations (which are why they aren’t included in C#, more about it there : http://blogs.msdn.com/csharpfaq/archive/2004/03/12/88421.aspx ) and since I wonder what’s the best solution. i was all [...]

Object construction

Did you read “Effective Java”? If you didn’t, you should: it is one of the greatest book about java i have read so far. The only problem with this book is that – over time – you tend to forget some of the invaluable advices, you get from it.At least, this happened to me: I [...]