﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Felice Pollano commented on Design patterns in the test of time: Proxy</title><description> "Avoid putting business logic there" definitely true: I did such a *mistake* in the past and was a *pain* until refactor.</description><link>http://ayende.com/159809/design-patterns-in-the-test-of-time-proxy#comment4</link><guid>http://ayende.com/159809/design-patterns-in-the-test-of-time-proxy#comment4</guid><pubDate>Wed, 21 Nov 2012 11:46:26 GMT</pubDate></item><item><title>unholy trinity commented on Design patterns in the test of time: Proxy</title><description>Wake me up on when this pattern talk ends... YAAAAAWN
</description><link>http://ayende.com/159809/design-patterns-in-the-test-of-time-proxy#comment3</link><guid>http://ayende.com/159809/design-patterns-in-the-test-of-time-proxy#comment3</guid><pubDate>Fri, 16 Nov 2012 09:21:36 GMT</pubDate></item><item><title>Martin Doms commented on Design patterns in the test of time: Proxy</title><description>Proxies are also very useful in user interface code. Let's say you have a WPF application that pulls data from IMDB and lists movies with their posters. As you scroll the list the posters will load dynamically as they become visible. The simplest way to implement this is to use a proxy for the image and call some method (or respond to some event) as the list scrolls and the poster becomes visible. The proxy should mimic the interface of an actual image, more or less.</description><link>http://ayende.com/159809/design-patterns-in-the-test-of-time-proxy#comment2</link><guid>http://ayende.com/159809/design-patterns-in-the-test-of-time-proxy#comment2</guid><pubDate>Thu, 15 Nov 2012 21:58:03 GMT</pubDate></item><item><title>mjanoska commented on Design patterns in the test of time: Proxy</title><description>Hi,
 let me mention here one of my favourite classes - TypeDelegator. http://msdn.microsoft.com/en-us/library/system.reflection.typedelegator.aspx

 ~proxy on the type metadata level (used in scenarios where TypeProvider comes into picture). Practically where any kind of string metadata is used for binding (WWF, WPF, SL typically) it's good to know.

Also wanted to mention the lack of class loader (and facilities around it) on managed level (compared to Java which has it). In my view this is why dynamic proxies are used for interception, behavior injection.

With functional patterns it could be done on the design level though (these are typically considered weird pollution later :-D )

 Cheers,
  Miklos

</description><link>http://ayende.com/159809/design-patterns-in-the-test-of-time-proxy#comment1</link><guid>http://ayende.com/159809/design-patterns-in-the-test-of-time-proxy#comment1</guid><pubDate>Thu, 15 Nov 2012 17:01:58 GMT</pubDate></item></channel></rss>