[PRL] Joel on Software - Making Wrong Code Look Wrong

Paul A. Steckler steck at stecksoft.com
Wed May 11 17:44:41 EDT 2005


> If the complaint is that the execution-site is not all in once
> place in the code, this is certainly also true about polymorphism.

Yes, that's the concern.

Subtype polymorphism you mean, of course.  Parametric 
polymorphism does guarantee that all the code is in one 
place!

> The usual complaint about advice vs. polymorphism is that you can't
> find all the code that might be executed just by looking up the
> function name; this is something that code-browser tools like AJDT try
> to address, by generalizing the meta-operation "find all methods that
> might be executed by this function call" into "find all advice that
> might apply to this join point shadow".
	
I think the concern is somewhat more severe with advice.
With late binding, at least you have the hook of the 
method name as a place to start looking.  Advice gets 
woven into your code more or less invisibly.

Automated tools help, sure.

-- Paul



More information about the PRL mailing list