<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>ronin: Harmful Constructors</title>
    <link>http://blogs.divisibleprime.com/ronin/articles/2007/06/25/harmful-constructors</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Stuff</description>
    <item>
      <title>Harmful Constructors</title>
      <description>&lt;blockquote&gt;
    &lt;p&gt;&lt;a href="http://gbracha.blogspot.com/2007/06/constructors-considered-harmful.html"&gt;Gilad Bracha&lt;/a&gt;:  So why not get rid of constructors and have a class declaration create a factory object instead? Well, Smalltalk did just that a generation ago. Every time you define a class, you define the factory object for its instances. I won&#8217;t explain the Smalltalk metaclass hierarchy here. Suffice to say that it is a thing of beauty, resolving a potential infinite regress with an elegant circularity.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This is a good article, and I&amp;#8217;ve certainly hit the problems talked about with both Smalltalk and Java.  I&amp;#8217;m looking forward to some examples&amp;#8230;&lt;/p&gt;</description>
      <pubDate>Mon, 25 Jun 2007 18:25:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:81a5d3c7-c4a3-4694-a89a-cdbdd619cfd5</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2007/06/25/harmful-constructors</link>
      <category>Java</category>
      <category>Smalltalk</category>
      <category>java</category>
      <category>smalltalk</category>
      <category>scala</category>
      <category>constructors</category>
      <category>oo</category>
      <trackback:ping>http://blogs.divisibleprime.com/ronin/articles/trackback/934</trackback:ping>
    </item>
  </channel>
</rss>
