﻿<?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>Ayende Rahien commented on RavenDB – The great simplification</title><description>Frans,
  
Yes, it is something that the user would need to do, but I think that this is an acceptable pain consider the work required and the benefits given from that.
</description><link>http://ayende.com/4663/ravendb-the-great-simplification#comment12</link><guid>http://ayende.com/4663/ravendb-the-great-simplification#comment12</guid><pubDate>Tue, 19 Oct 2010 15:19:22 GMT</pubDate></item><item><title>Frans Bouma commented on RavenDB – The great simplification</title><description>I meant: for the user of RavenDB: their code using the session with all the methods now has to be refactored all of a sudden when they use a later build. 
  
  
(not sure if that's a given / expected anyway)
</description><link>http://ayende.com/4663/ravendb-the-great-simplification#comment11</link><guid>http://ayende.com/4663/ravendb-the-great-simplification#comment11</guid><pubDate>Tue, 19 Oct 2010 08:40:26 GMT</pubDate></item><item><title>Ayende Rahien commented on RavenDB – The great simplification</title><description>Frans,
  
Yes, it does breaks everything.
  
BUT, this isn't a problem for me right now, because the change is minor in terms of the code changes required.
</description><link>http://ayende.com/4663/ravendb-the-great-simplification#comment10</link><guid>http://ayende.com/4663/ravendb-the-great-simplification#comment10</guid><pubDate>Mon, 18 Oct 2010 18:00:53 GMT</pubDate></item><item><title>Frans Bouma commented on RavenDB – The great simplification</title><description>Clever :)
  
  
I wonder how you can pull this off with released code out there already? Wouldn't this change break everything? 
</description><link>http://ayende.com/4663/ravendb-the-great-simplification#comment9</link><guid>http://ayende.com/4663/ravendb-the-great-simplification#comment9</guid><pubDate>Mon, 18 Oct 2010 14:28:13 GMT</pubDate></item><item><title>Ayende Rahien commented on RavenDB – The great simplification</title><description>Alex,
  
You already _can_ access all the methods.
</description><link>http://ayende.com/4663/ravendb-the-great-simplification#comment8</link><guid>http://ayende.com/4663/ravendb-the-great-simplification#comment8</guid><pubDate>Sun, 17 Oct 2010 10:04:56 GMT</pubDate></item><item><title>Ayende Rahien commented on RavenDB – The great simplification</title><description>Cory,
  
I agree that we could do it using different interfaces, sure.
  
But the var keyword exists, and widely used.
</description><link>http://ayende.com/4663/ravendb-the-great-simplification#comment7</link><guid>http://ayende.com/4663/ravendb-the-great-simplification#comment7</guid><pubDate>Sun, 17 Oct 2010 10:00:29 GMT</pubDate></item><item><title>Alex Vilela commented on RavenDB – The great simplification</title><description>Very interesting idea, thanks.
  
  
Would you expect a scenario where you would like to have an advancedSession instance and want to have access to all methods?
  
</description><link>http://ayende.com/4663/ravendb-the-great-simplification#comment6</link><guid>http://ayende.com/4663/ravendb-the-great-simplification#comment6</guid><pubDate>Sun, 17 Oct 2010 09:58:34 GMT</pubDate></item><item><title>addy santo commented on RavenDB – The great simplification</title><description>Matt:
  
  
the idea was to use the attribute to hide the Equals, GetHashCode, GetType, ToString which are irrelevant in that context.
  
  
For example,
  
  
[www.clariusconsulting.net/.../58301.aspx](http://www.clariusconsulting.net/blogs/kzu/archive/2008/03/10/58301.aspx)  
</description><link>http://ayende.com/4663/ravendb-the-great-simplification#comment5</link><guid>http://ayende.com/4663/ravendb-the-great-simplification#comment5</guid><pubDate>Sun, 17 Oct 2010 07:18:11 GMT</pubDate></item><item><title>Cory Foy commented on RavenDB – The great simplification</title><description>@Matt - Actually, you can use that to specify "Advanced" properties which are only shown if you check the "Show Advanced Members" option for Intellisense. Not that I'd recommend it.
  
  
@Ayende - I'm unsure about this. I mean, I love the simplification effort. But having Advanced as an option seems not right. Seems like that's only a problem because we are using the var keyword, so we can't be specific to Intellisense.
  
  
For example, if you simply had the class implement both Interfaces, and you were being intentional in the code, you'd get something like:
  
  
IDocumentSession session = //whatever
  
  
So when I typed session
&lt;dot I'd only see those. If I wanted the advanced methods, I'd use the advanced interface.
  
  
But like I said, I'm not really sure. I'm intrigued, and kudos for working to make things simpler!
&gt;</description><link>http://ayende.com/4663/ravendb-the-great-simplification#comment4</link><guid>http://ayende.com/4663/ravendb-the-great-simplification#comment4</guid><pubDate>Sun, 17 Oct 2010 00:15:00 GMT</pubDate></item><item><title>Matt Warren commented on RavenDB – The great simplification</title><description>Addy: if you use that attribute you won't see the method at all. The technique outlined in the post just "hides" the methods that aren't applicable for most users by making them type "session.Advanced" before they can see all the rest of the functions.
</description><link>http://ayende.com/4663/ravendb-the-great-simplification#comment3</link><guid>http://ayende.com/4663/ravendb-the-great-simplification#comment3</guid><pubDate>Sat, 16 Oct 2010 22:47:21 GMT</pubDate></item><item><title>addy santo commented on RavenDB – The great simplification</title><description>I'll just leave this here and see what happens:
  
  
EditorBrowsableAttribute, 
  
[msdn.microsoft.com/.../...rbrowsableattribute.aspx](http://msdn.microsoft.com/en-us/library/system.componentmodel.editorbrowsableattribute.aspx)</description><link>http://ayende.com/4663/ravendb-the-great-simplification#comment2</link><guid>http://ayende.com/4663/ravendb-the-great-simplification#comment2</guid><pubDate>Sat, 16 Oct 2010 18:10:45 GMT</pubDate></item><item><title>tobi commented on RavenDB – The great simplification</title><description>Good technique. Few people know how to design APIs these days.
</description><link>http://ayende.com/4663/ravendb-the-great-simplification#comment1</link><guid>http://ayende.com/4663/ravendb-the-great-simplification#comment1</guid><pubDate>Sat, 16 Oct 2010 16:09:50 GMT</pubDate></item></channel></rss>