<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-876358347971598886.post6537566922744446375..comments</id><updated>2009-09-14T23:51:45.732+03:00</updated><title type='text'>Comments on nothingmuch's perl blog: Cache Assertions</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.woobling.org/feeds/6537566922744446375/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/876358347971598886/6537566922744446375/comments/default'/><link rel='alternate' type='text/html' href='http://blog.woobling.org/2009/09/cache-assertions.html'/><author><name>nothingmuch</name><uri>http://www.blogger.com/profile/03975438115490089158</uri><email>nothingmuch@woobling.org</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-876358347971598886.post-8960533269340655210</id><published>2009-09-14T23:51:45.732+03:00</published><updated>2009-09-14T23:51:45.732+03:00</updated><title type='text'>If no caching was in place this would be lexically...</title><content type='html'>If no caching was in place this would be lexically almost the same code, the caching merely adds the call to the cache helper and the curlies around the cached expression.&lt;br /&gt;&lt;br /&gt;Introducing the extra thunk indirection is a minimal code change from what it would have been without caching.&lt;br /&gt;&lt;br /&gt;If the caching logic is not a fundamental part of the algorithm then I usually see it as a cross cutting concern that should impact the code as little as possible.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/876358347971598886/6537566922744446375/comments/default/8960533269340655210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/876358347971598886/6537566922744446375/comments/default/8960533269340655210'/><link rel='alternate' type='text/html' href='http://blog.woobling.org/2009/09/cache-assertions.html?showComment=1252961505732#c8960533269340655210' title=''/><author><name>nothingmuch</name><uri>http://www.blogger.com/profile/03975438115490089158</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='04344917020781355723'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.woobling.org/2009/09/cache-assertions.html' ref='tag:blogger.com,1999:blog-876358347971598886.post-6537566922744446375' source='http://www.blogger.com/feeds/876358347971598886/posts/default/6537566922744446375' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-876358347971598886.post-7355462315367490909</id><published>2009-09-13T18:32:35.770+03:00</published><updated>2009-09-13T18:32:35.770+03:00</updated><title type='text'>Why do you use a thunk instead of delegating to a ...</title><content type='html'>Why do you use a thunk instead of delegating to a helper class, say, or hard coding the computation into the caching class (perhaps derived from a more generic class)?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/876358347971598886/6537566922744446375/comments/default/7355462315367490909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/876358347971598886/6537566922744446375/comments/default/7355462315367490909'/><link rel='alternate' type='text/html' href='http://blog.woobling.org/2009/09/cache-assertions.html?showComment=1252855955770#c7355462315367490909' title=''/><author><name>dafyddiaith</name><uri>http://www.blogger.com/profile/16970468114812494546</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.woobling.org/2009/09/cache-assertions.html' ref='tag:blogger.com,1999:blog-876358347971598886.post-6537566922744446375' source='http://www.blogger.com/feeds/876358347971598886/posts/default/6537566922744446375' type='text/html'/></entry></feed>