﻿<?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>Joe Reddy commented on What hid under the bed...</title><description>Good grief.
  
You do this kind of stuff on purpose?
</description><link>http://ayende.com/3385/what-hid-under-the-bed#comment8</link><guid>http://ayende.com/3385/what-hid-under-the-bed#comment8</guid><pubDate>Mon, 30 Jun 2008 20:56:30 GMT</pubDate></item><item><title>Jeremy D. Miller commented on What hid under the bed...</title><description>I don't want to play oneupsmanship here, but as soon as I finished this code I knew I needed to post this here:
  
  
  
    public abstract class CrudController&lt;DomainModel, ToViewModel, FromViewModel, THIS&gt;
  
        where DomainModel : DomainEntity, new()
  
        where ToViewModel : ViewInputModel&lt;THIS&gt;, new()
  
        where FromViewModel : ViewModel
  
        where THIS : CrudController&lt;DomainModel, ToViewModel, FromViewModel, THIS&gt; 
</description><link>http://ayende.com/3385/what-hid-under-the-bed#comment7</link><guid>http://ayende.com/3385/what-hid-under-the-bed#comment7</guid><pubDate>Mon, 30 Jun 2008 12:28:51 GMT</pubDate></item><item><title>l0t3k commented on What hid under the bed...</title><description>Ya know, thats exactly the reason i never got into the C++ STL, but strangely i have less of  a problem with this...
</description><link>http://ayende.com/3385/what-hid-under-the-bed#comment6</link><guid>http://ayende.com/3385/what-hid-under-the-bed#comment6</guid><pubDate>Sun, 29 Jun 2008 19:58:50 GMT</pubDate></item><item><title>Vladan Strigo commented on What hid under the bed...</title><description>Maybe a new smell should be named... "Generics explosion" :)
  
  
  
Vladan
</description><link>http://ayende.com/3385/what-hid-under-the-bed#comment5</link><guid>http://ayende.com/3385/what-hid-under-the-bed#comment5</guid><pubDate>Sun, 29 Jun 2008 15:53:35 GMT</pubDate></item><item><title>Rytmis commented on What hid under the bed...</title><description>Frans: Except that interfaces don't allow constructor definitions, but the generics constraints can demand that the type have a zero-argument public ctor. 
</description><link>http://ayende.com/3385/what-hid-under-the-bed#comment4</link><guid>http://ayende.com/3385/what-hid-under-the-bed#comment4</guid><pubDate>Sun, 29 Jun 2008 14:42:09 GMT</pubDate></item><item><title>Frans Bouma commented on What hid under the bed...</title><description>whoa :D
  
  
What's even more funny, all types have an interface, so the method also could have just used the interfaces and it would still be a generic method
</description><link>http://ayende.com/3385/what-hid-under-the-bed#comment3</link><guid>http://ayende.com/3385/what-hid-under-the-bed#comment3</guid><pubDate>Sun, 29 Jun 2008 09:43:45 GMT</pubDate></item><item><title>Jason Olson commented on What hid under the bed...</title><description>Holy Generics, Batman!!!! :P
</description><link>http://ayende.com/3385/what-hid-under-the-bed#comment2</link><guid>http://ayende.com/3385/what-hid-under-the-bed#comment2</guid><pubDate>Sun, 29 Jun 2008 07:01:13 GMT</pubDate></item><item><title>Chad Myers commented on What hid under the bed...</title><description>We might have to revoke your Generics License for that one.
</description><link>http://ayende.com/3385/what-hid-under-the-bed#comment1</link><guid>http://ayende.com/3385/what-hid-under-the-bed#comment1</guid><pubDate>Sun, 29 Jun 2008 06:39:19 GMT</pubDate></item></channel></rss>