Category Archives: Defensive programming

Assertions in Java

One of the rules of defensive programming is to detect the errors as soon as they appear. The main idea behind this is that we can get precise information about the location of the error and the event which caused … Continue reading

Posted in Defensive programming, Java, Software development practices | Tagged , , , | Leave a comment

Assertions on Android

If you program in Java on Android, you know that Android has its own virtual machine called DalvikVM which is not compatible with JVM from Oracle. In fact, the difference is so big that you cannot run plain Java application … Continue reading

Posted in Defensive programming, Java, Software development practices | Tagged , , , , , | 4 Comments