<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Michael Koby - Latest Comments in C# Partial Keyword</title><link>http://almostnotyet.disqus.com/</link><description>Michael Koby's Personal Blog</description><atom:link href="https://almostnotyet.disqus.com/c_partial_keyword/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 14 Oct 2009 23:28:17 -0000</lastBuildDate><item><title>Re: C# Partial Keyword</title><link>http://www.mkoby.com/2009/10/14/c-partial-keyword/#comment-20094905</link><description>&lt;p&gt;The 140-character limit is getting to me, so I'll leave a comment here as well.&lt;/p&gt;&lt;p&gt;I think that even if you can't split the methods of your Twitter class up because you have to have one class that represents the API, that's fine. But consider making those methods one-line stubs that call methods in other classes where all the REAL work is done. That if nothing else will shrink the Twitter class--if not by methods, then by lines of code.&lt;/p&gt;&lt;p&gt;Also I don't know if the Twitter library has any state at all, so it may not make much sense to split the big class up into a bunch of smaller ones--some things lend themselves to OO better than others.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter</dc:creator><pubDate>Wed, 14 Oct 2009 23:28:17 -0000</pubDate></item><item><title>Re: C# Partial Keyword</title><link>http://www.mkoby.com/2009/10/14/c-partial-keyword/#comment-20090907</link><description>&lt;p&gt;Funny that you mention that I should probably move stuff out of the Twitter&lt;br&gt;class, as it's something I've been considering for a while but haven't come&lt;br&gt;up with something that makes sense to me.  It'll happen eventually, but&lt;br&gt;whatever I do, I need to make sure I understand it and why there's value in&lt;br&gt;it rather than just doing it because it' simply "better".&lt;br&gt;But again, I agree, the Twitter class is most definitely doing too much and&lt;br&gt;needs a better design.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Koby</dc:creator><pubDate>Wed, 14 Oct 2009 22:13:14 -0000</pubDate></item><item><title>Re: C# Partial Keyword</title><link>http://www.mkoby.com/2009/10/14/c-partial-keyword/#comment-20083014</link><description>&lt;p&gt;Congratulations, you've just abused the partial keyword :)&lt;/p&gt;&lt;p&gt;In all seriousness, partial is really only useful for extending classes that contain generated code.  The generated code stays in one file, you modify another.&lt;/p&gt;&lt;p&gt;Your scenario here shows that the Twitter class is doing way too much.  You should break this up into separate classes, each with 1 responsibility.&lt;/p&gt;&lt;p&gt;You might end up with a Twitter class that is a simple gateway into a deeper object model.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ben Scheirman</dc:creator><pubDate>Wed, 14 Oct 2009 20:58:48 -0000</pubDate></item></channel></rss>