<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Fun with AOP - reducing redundant code - the &#8216;for&#8217; loop</title>
	<atom:link href="http://blogs.plexibus.com/2008/07/15/fun-with-aop-reducing-redundant-code-the-for-loop/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.plexibus.com/2008/07/15/fun-with-aop-reducing-redundant-code-the-for-loop/</link>
	<description>Thoughts, questions and opinions - some from the trenches, a few from the Ivory Tower</description>
	<pubDate>Thu, 04 Dec 2008 02:01:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: ronen</title>
		<link>http://blogs.plexibus.com/2008/07/15/fun-with-aop-reducing-redundant-code-the-for-loop/#comment-330</link>
		<dc:creator>ronen</dc:creator>
		<pubDate>Sun, 20 Jul 2008 14:46:28 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.plexibus.com/?p=21#comment-330</guid>
		<description>The main problem with your code is that the number of loops is set in static time, better loop abstraction could be achieved by using something like Commons Collection Utils (they use anonymous methods and abstract the iteration away), still its a nice intro to AOP.</description>
		<content:encoded><![CDATA[<p>The main problem with your code is that the number of loops is set in static time, better loop abstraction could be achieved by using something like Commons Collection Utils (they use anonymous methods and abstract the iteration away), still its a nice intro to AOP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roshanallan</title>
		<link>http://blogs.plexibus.com/2008/07/15/fun-with-aop-reducing-redundant-code-the-for-loop/#comment-328</link>
		<dc:creator>roshanallan</dc:creator>
		<pubDate>Fri, 18 Jul 2008 14:54:09 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.plexibus.com/?p=21#comment-328</guid>
		<description>GM&gt;&gt;
You are right for the above *single* example - HelloWorldClient - it may not make sense to refactor the &lt;i&gt;for loop&lt;/i&gt; into an aspect.

But the idea of refactoring the &lt;i&gt;for loop&lt;/i&gt; (identified by an annotation) into an aspect was so that this aspect (run a method multiple times) could be used by classes other than just HelloWorldClient. So in the future if you need to code &lt;i&gt;for loops&lt;/i&gt; which call methods, all you got to do is:
- tag the method with the RunMultiple annotation
- run the code with the javaagent jvm option.

Hope this makes sense.

Thanks,
RAS</description>
		<content:encoded><![CDATA[<p>GM>><br />
You are right for the above *single* example - HelloWorldClient - it may not make sense to refactor the <i>for loop</i> into an aspect.</p>
<p>But the idea of refactoring the <i>for loop</i> (identified by an annotation) into an aspect was so that this aspect (run a method multiple times) could be used by classes other than just HelloWorldClient. So in the future if you need to code <i>for loops</i> which call methods, all you got to do is:<br />
- tag the method with the RunMultiple annotation<br />
- run the code with the javaagent jvm option.</p>
<p>Hope this makes sense.</p>
<p>Thanks,<br />
RAS</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan</title>
		<link>http://blogs.plexibus.com/2008/07/15/fun-with-aop-reducing-redundant-code-the-for-loop/#comment-327</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Fri, 18 Jul 2008 09:39:36 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.plexibus.com/?p=21#comment-327</guid>
		<description>This is interesting...  Should've factored out a timing aspect too just for a total before and after :)</description>
		<content:encoded><![CDATA[<p>This is interesting&#8230;  Should&#8217;ve factored out a timing aspect too just for a total before and after <img src='http://blogs.plexibus.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GM</title>
		<link>http://blogs.plexibus.com/2008/07/15/fun-with-aop-reducing-redundant-code-the-for-loop/#comment-326</link>
		<dc:creator>GM</dc:creator>
		<pubDate>Fri, 18 Jul 2008 01:39:29 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.plexibus.com/?p=21#comment-326</guid>
		<description>Um - I'm new to this, so, hey, forgive me if I'm way off base, but it looks to me like you started with a file 38 lines long, and then you wrote 85 lines of code along with 9 lines of additional configuration so that you could end up with a file that is 38 lines long.

Dude.</description>
		<content:encoded><![CDATA[<p>Um - I&#8217;m new to this, so, hey, forgive me if I&#8217;m way off base, but it looks to me like you started with a file 38 lines long, and then you wrote 85 lines of code along with 9 lines of additional configuration so that you could end up with a file that is 38 lines long.</p>
<p>Dude.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.313 seconds -->
