The Artima Developer Community
Sponsored Link

Java Buzz Forum
Coupling in Pointcuts

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
Coupling in Pointcuts Posted: Aug 24, 2004 6:57 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: Coupling in Pointcuts
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement
Adrian Colyer is talking about writing robust pointcut expressions. This seems to be something that SEEMS simple at first, but actually requires some thought. One of the problems is that you can easily get away with an expression that "works" in the sense that for your little test, at this moment in time, it does what you were thinking. This ability can lead to hacking :) It is like mucking with Regex when you first get started. You often have a couple of cases, and you muck around with the regex line noise until it works for those 2 cases. However, in the future, it breaks on another 5 cases. Does TDD and process help? Yes and No. It can help, but it all comes down to how lazy you are being, and how well you are thinking. If you have good tests to begin with it can definitely help. "Oops, I changed this pointcut and now this test isn't working". Future-proofing isn't easy, but it shows that it IS OK to think a little about your application, instead of whipping out a solution that passes a test in front of your eyes.

Read: Coupling in Pointcuts

Topic: From your heart to your Soul - Java Everywhere Previous Topic   Next Topic Topic: [Aug 12, 2004 14:15 PDT] 8 Links

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use