<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Aop on Brave New Geek</title><link>https://bravenewgeek.com/tag/aop/</link><description>Recent content in Aop on Brave New Geek</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 19 Dec 2012 19:12:36 -0600</lastBuildDate><atom:link href="https://bravenewgeek.com/tag/aop/index.xml" rel="self" type="application/rss+xml"/><item><title>The Importance of Being Idle</title><link>https://bravenewgeek.com/the-importance-of-being-idle/</link><pubDate>Wed, 19 Dec 2012 19:12:36 -0600</pubDate><guid>https://bravenewgeek.com/the-importance-of-being-idle/</guid><description>&lt;p&gt;&lt;em&gt;“Practice not-doing and everything will fall into place.”&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;It’s good to be lazy. Sometimes, in programming, it can also be hard to be lazy. It’s this paradox that I will explore today — The Art of Being Lazy. Specifically, I’m going to dive into a design pattern known as lazy loading by discussing why it’s used, the different flavors it comes in, and how it can be implemented.&lt;/p&gt;
&lt;p&gt;Lazy loading is a pretty simple concept: don’t load something until you really need it. However, the philosophy can be generalized further: don’t do something until you need to do it. It’s this line of thinking that has helped lead to processes like &lt;a href="http://en.wikipedia.org/wiki/Kanban_(development)"&gt;Kanban&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Lean_software_development"&gt;lean software development&lt;/a&gt; (and also probably got you through high school). Notwithstanding, this tenet goes beyond the organizational level. It’s about optimizing efficiency and minimizing waste. There’s a lot to be said about optimizing efficiency in a computer program, which is why The Art of Being Lazy is an exceedingly relevant principle.&lt;/p&gt;</description></item><item><title>Dalvik Bytecode Generation</title><link>https://bravenewgeek.com/dalvik-bytecode-generation/</link><pubDate>Mon, 17 Dec 2012 20:03:57 -0600</pubDate><guid>https://bravenewgeek.com/dalvik-bytecode-generation/</guid><description>&lt;p&gt;&lt;a href="http://www.bravenewgeek.com/proxies-why-theyre-useful-and-how-theyre-implemented/" title="Proxies: Why They're Useful and How They're Implemented"&gt;Earlier&lt;/a&gt;, I discussed the use of dynamic proxies and how they can be implemented in Java. As we saw, a necessary part of proxying classes is bytecode generation. From its onset, something I wanted to include in Infinitum was lazy loading. I also wanted to provide support for AOP down the road. Consequently, it was essential to include some way to generate bytecode at runtime.&lt;/p&gt;</description></item><item><title>Proxies: Why They’re Useful and How They’re Implemented</title><link>https://bravenewgeek.com/proxies-why-theyre-useful-and-how-theyre-implemented/</link><pubDate>Mon, 17 Dec 2012 17:22:52 -0600</pubDate><guid>https://bravenewgeek.com/proxies-why-theyre-useful-and-how-theyre-implemented/</guid><description>&lt;p&gt;I wanted to write about lazy loading, but doing so requires some background on proxies. Proxies are such an interesting and useful concept that I decided it would be worthwhile to write a separate post discussing them. I’ve talked about them in the past, for instance on &lt;a href="http://stackoverflow.com/a/10239705/210070"&gt;StackOverflow&lt;/a&gt;, so this will be a bit of a rehash, but I will go into a little more depth here.&lt;/p&gt;
&lt;p&gt;What is a proxy? Fundamentally, it’s a broker, or mediator, between an object and that object’s user, which I will refer to as its client. Specifically, a proxy intercepts calls to the object, performs some logic, and then (typically) passes the call on to the object itself. I say &lt;em&gt;typically&lt;/em&gt; because the proxy could simply intercept without ever calling the object.&lt;/p&gt;</description></item></channel></rss>