Tag Archives: exception

Refactoring Hazards – the Dead Exception

What is important to note, is that fixing this problem by propogating exceptions correctly is NOT a refactoring. It is intrinsically changing the behaviour of the code. Continue reading

Posted in Refactoring | Tagged , , | Leave a comment

Yoda conditions in Java .. a dangerous technique

A common practice I have seen is the placing a┬áconstant on the left hand side of an equality statement (usually called a Yoda Condition). Typically┬áthe constant is a string, and this constant is being compared to some other object, or … Continue reading

Posted in Uncategorized | Tagged , , , , , | 2 Comments