| View: | [ 2011 | 2010 | 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 ] |
| Articles |
- In pursuit of code quality: Defensive programming with AOP by Andrew Glover - [Clicks: 23]
While defensive programming effectively guarantees the condition of a method's input, it becomes repetitive if it is pervasive across a series of methods. This month, Andrew Glover shows you an easier way to add reusable validation constraints to your code using the power of AOP, design by contract, and a handy library called OVal.
http://www-128.ibm.com/developerworks/java/library/j-cq01307/index.html - Jan, 2007 - Separating Concerns and Advising Domain Objects by Eric Batzdorff - [Clicks: 13]
The problem with "separating concerns," as object-oriented programming compels you to do, is that some concerns are shared by many objects. Straightforward approaches, like coding those concerns everywhere they're needed, fly in the face of encapsulation. There are ways around the problem, but as Eric Batzdorff points out, some work better for one or few objects than for many.
[Includes source code]
http://today.java.net/pub/a/today/2007/01/30/separating-concerns-and-advising-domain-objects.html - Jan, 2007 - Effective Java Exceptions by Barry Ruzek - [Clicks: 46]
One of the biggest architectural decisions for a Java developer is how to use the Java exception model. Barry Ruzek explains how Aspect Oriented Programming (AOP) techniques can help you to make the right choices.
http://dev2dev.bea.com/pub/a/2006/11/effective-exceptions.html - Jan, 2007