Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs

Partner Sites
JustLinux.com
Linux Planet
PHPBuilder
Technology Jobs

Top White Papers

More on LinuxToday


Linux Magazine: Zen and the Art of Aspect-Oriented Programming

Jul 11, 2004, 21:00 (2 Talkback[s])
(Other stories by Ron Bodkin, Ramnivas Laddad)

"Consider the life cycle of a typical e-commerce project. First, you might decide to architect your code around an object-relational (OR) mapping tool, such as Java Data Objects or Hibernate, and J2EE services, such as servlets and the Java Authentication and Authorization Service. Next, you create interfaces and classes representing business concepts such as a customer, SKUs, a shopping cart, inventory, and payment authorization. At this point, your code is clean and comprehensible.

"Then you encounter some inexplicable, intermittent behavior. 'Of course! I need logging,' you say. So, you meticulously modify all of the methods in all of the classes to use log(). Now when a bug occurs, you examine the log and understand the sequence of activities that lead to the bug..."

Complete Story

Related Stories: