<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Static method abuse</title>
	<atom:link href="http://jagregory.com/writings/static-method-abuse/feed/" rel="self" type="application/rss+xml" />
	<link>http://jagregory.com/writings/static-method-abuse/</link>
	<description>Monkeying with the code</description>
	<lastBuildDate>Thu, 04 Aug 2011 15:17:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Oliver</title>
		<link>http://jagregory.com/writings/static-method-abuse/comment-page-1/#comment-52284</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Sat, 29 May 2010 11:01:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/2008/03/28/static-method-abuse/#comment-52284</guid>
		<description>Excellent argument! These are the kinds of explanations that help people learn. Myself very much included. Static methods are far too easy to misunderstand.</description>
		<content:encoded><![CDATA[<p>Excellent argument! These are the kinds of explanations that help people learn. Myself very much included. Static methods are far too easy to misunderstand.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MoffDub</title>
		<link>http://jagregory.com/writings/static-method-abuse/comment-page-1/#comment-9272</link>
		<dc:creator>MoffDub</dc:creator>
		<pubDate>Tue, 12 Aug 2008 13:06:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/2008/03/28/static-method-abuse/#comment-9272</guid>
		<description>Bravo. I started thinking about singletons vs. static methods today. Over and over I came back to the conclusion that they unnecessarily restrict you in terms of inheritance, polymorphism, interfaces, and potential multi-threading. 

In order to use either, you&#039;d need a fairly certain idea about the future of the code you are writing -- either that it will be completely stateless, or not used in multi-threading, or its implementation won&#039;t vary or need to be injected at some point. And we know that in software engineering, this is probably never the case. 

I also took a cue from SmallTalk; you&#039;d never see static methods in SmallTalk (to the best of my limited knowledge of SmallTalk). After all, these languages are OO, not CO (class-oriented).

________
The views expressed here are mine and do not reflect the official opinion of my employer or the organization through which the Internet was accessed.</description>
		<content:encoded><![CDATA[<p>Bravo. I started thinking about singletons vs. static methods today. Over and over I came back to the conclusion that they unnecessarily restrict you in terms of inheritance, polymorphism, interfaces, and potential multi-threading. </p>
<p>In order to use either, you&#8217;d need a fairly certain idea about the future of the code you are writing &#8212; either that it will be completely stateless, or not used in multi-threading, or its implementation won&#8217;t vary or need to be injected at some point. And we know that in software engineering, this is probably never the case. </p>
<p>I also took a cue from SmallTalk; you&#8217;d never see static methods in SmallTalk (to the best of my limited knowledge of SmallTalk). After all, these languages are OO, not CO (class-oriented).</p>
<p>________<br />
The views expressed here are mine and do not reflect the official opinion of my employer or the organization through which the Internet was accessed.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
