<?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: Number of Methods in the String Class</title>
	<atom:link href="http://stuffthathappens.com/blog/2008/03/13/number-of-methods-in-the-string-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://stuffthathappens.com/blog/2008/03/13/number-of-methods-in-the-string-class/</link>
	<description>Technology and Geek Stuff by Eric Burke</description>
	<lastBuildDate>Thu, 04 Nov 2010 22:37:00 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: she</title>
		<link>http://stuffthathappens.com/blog/2008/03/13/number-of-methods-in-the-string-class/comment-page-1/#comment-7802</link>
		<dc:creator>she</dc:creator>
		<pubDate>Sat, 22 Mar 2008 23:18:56 +0000</pubDate>
		<guid isPermaLink="false">http://stuffthathappens.com/blog/2008/03/13/number-of-methods-in-the-string-class/#comment-7802</guid>
		<description>I think this bar does not say much about a language especially not while not counting the overall number of classes and their relationship. Last but not least I also dont think its good to compared Java to Python/ruby at all, simply because both python and ruby are in a different niche.</description>
		<content:encoded><![CDATA[<p>I think this bar does not say much about a language especially not while not counting the overall number of classes and their relationship. Last but not least I also dont think its good to compared Java to Python/ruby at all, simply because both python and ruby are in a different niche.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Woodie</title>
		<link>http://stuffthathappens.com/blog/2008/03/13/number-of-methods-in-the-string-class/comment-page-1/#comment-7644</link>
		<dc:creator>Woodie</dc:creator>
		<pubDate>Thu, 20 Mar 2008 06:40:28 +0000</pubDate>
		<guid isPermaLink="false">http://stuffthathappens.com/blog/2008/03/13/number-of-methods-in-the-string-class/#comment-7644</guid>
		<description>Yes, Ruby has str.size, which is an alias to str.length, 
while Python seems to require len(str), and your chart 
seems to indicate that fewer methods is better.

If you&#039;re lucky, that chart will be tattooed to your forehead... in hell.</description>
		<content:encoded><![CDATA[<p>Yes, Ruby has str.size, which is an alias to str.length,<br />
while Python seems to require len(str), and your chart<br />
seems to indicate that fewer methods is better.</p>
<p>If you&#8217;re lucky, that chart will be tattooed to your forehead&#8230; in hell.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bashar</title>
		<link>http://stuffthathappens.com/blog/2008/03/13/number-of-methods-in-the-string-class/comment-page-1/#comment-7515</link>
		<dc:creator>Bashar</dc:creator>
		<pubDate>Mon, 17 Mar 2008 08:43:37 +0000</pubDate>
		<guid isPermaLink="false">http://stuffthathappens.com/blog/2008/03/13/number-of-methods-in-the-string-class/#comment-7515</guid>
		<description>LOL. Yeah, but that large number makes Ruby damn nice for lazy programmers :)

I just came by your blog today. Pretty nice. Thanks. Just rework the captcha ;/</description>
		<content:encoded><![CDATA[<p>LOL. Yeah, but that large number makes Ruby damn nice for lazy programmers <img src='http://stuffthathappens.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I just came by your blog today. Pretty nice. Thanks. Just rework the captcha ;/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ste</title>
		<link>http://stuffthathappens.com/blog/2008/03/13/number-of-methods-in-the-string-class/comment-page-1/#comment-7495</link>
		<dc:creator>ste</dc:creator>
		<pubDate>Sun, 16 Mar 2008 22:31:52 +0000</pubDate>
		<guid isPermaLink="false">http://stuffthathappens.com/blog/2008/03/13/number-of-methods-in-the-string-class/#comment-7495</guid>
		<description>From http://www.ruby-doc.org/core/classes/String.html#M000861

class String
In:
string.c 
lib/jcode.rb 
lib/mkmf.rb 
lib/scanf.rb 
lib/yaml/rubytypes.rb 
ext/nkf/lib/kconv.rb 

so the 119 figure includes all the methods defined by those 6 modules listed after string.c

# ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [universal-darwin9.0]

# irb -f
String.instance_methods(false).reject { &#124;m&#124; m =~ /!$/ }.size
=&gt; 64

actually 62, not counting the aliases</description>
		<content:encoded><![CDATA[<p>From <a href="http://www.ruby-doc.org/core/classes/String.html#M000861" rel="nofollow">http://www.ruby-doc.org/core/classes/String.html#M000861</a></p>
<p>class String<br />
In:<br />
string.c<br />
lib/jcode.rb<br />
lib/mkmf.rb<br />
lib/scanf.rb<br />
lib/yaml/rubytypes.rb<br />
ext/nkf/lib/kconv.rb </p>
<p>so the 119 figure includes all the methods defined by those 6 modules listed after string.c</p>
<p># ruby -v<br />
ruby 1.8.6 (2007-09-24 patchlevel 111) [universal-darwin9.0]</p>
<p># irb -f<br />
String.instance_methods(false).reject { |m| m =~ /!$/ }.size<br />
=&gt; 64</p>
<p>actually 62, not counting the aliases</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan</title>
		<link>http://stuffthathappens.com/blog/2008/03/13/number-of-methods-in-the-string-class/comment-page-1/#comment-7429</link>
		<dc:creator>Alan</dc:creator>
		<pubDate>Sat, 15 Mar 2008 21:53:17 +0000</pubDate>
		<guid isPermaLink="false">http://stuffthathappens.com/blog/2008/03/13/number-of-methods-in-the-string-class/#comment-7429</guid>
		<description>s = String.methods(1).grep(/\w/) - String.methods(1).grep(/^(instance&#124;included&#124;private&#124;public&#124;protected&#124;singleton&#124;class&#124;const&#124;__)/); puts s.length =&gt; 37

Maybe you should re-evaluate your hoakie chart ... even with my shitty regex &amp;&amp; method listing.

@ Patrick Hurley, try the easy way:
String.methods(1).length =&gt; 77</description>
		<content:encoded><![CDATA[<p>s = String.methods(1).grep(/\w/) &#8211; String.methods(1).grep(/^(instance|included|private|public|protected|singleton|class|const|__)/); puts s.length =&gt; 37</p>
<p>Maybe you should re-evaluate your hoakie chart &#8230; even with my shitty regex &amp;&amp; method listing.</p>
<p>@ Patrick Hurley, try the easy way:<br />
String.methods(1).length =&gt; 77</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Qualizza</title>
		<link>http://stuffthathappens.com/blog/2008/03/13/number-of-methods-in-the-string-class/comment-page-1/#comment-7423</link>
		<dc:creator>Marco Qualizza</dc:creator>
		<pubDate>Sat, 15 Mar 2008 19:32:35 +0000</pubDate>
		<guid isPermaLink="false">http://stuffthathappens.com/blog/2008/03/13/number-of-methods-in-the-string-class/#comment-7423</guid>
		<description>To bring another (unnamed) language into it...

String methodDictionary size
54


On the other hand...
Object allSubclasses size
5403

Just saying...</description>
		<content:encoded><![CDATA[<p>To bring another (unnamed) language into it&#8230;</p>
<p>String methodDictionary size<br />
54</p>
<p>On the other hand&#8230;<br />
Object allSubclasses size<br />
5403</p>
<p>Just saying&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wayne Keenan</title>
		<link>http://stuffthathappens.com/blog/2008/03/13/number-of-methods-in-the-string-class/comment-page-1/#comment-7421</link>
		<dc:creator>Wayne Keenan</dc:creator>
		<pubDate>Sat, 15 Mar 2008 17:57:53 +0000</pubDate>
		<guid isPermaLink="false">http://stuffthathappens.com/blog/2008/03/13/number-of-methods-in-the-string-class/#comment-7421</guid>
		<description>how about in the &#039;shell&#039; , well almost, /I/ didn&#039;t have to write any Java to do it :)

javap java.lang.String &#124; grep public &#124; wc -l
79

javap java.lang.String &#124; grep -v &#039;public&#039; &#124; wc -l
8

javap java.lang.String &#124; grep -v &#039;[{}]&#039; &#124; wc -l
84</description>
		<content:encoded><![CDATA[<p>how about in the &#8217;shell&#8217; , well almost, /I/ didn&#8217;t have to write any Java to do it <img src='http://stuffthathappens.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>javap java.lang.String | grep public | wc -l<br />
79</p>
<p>javap java.lang.String | grep -v &#8216;public&#8217; | wc -l<br />
8</p>
<p>javap java.lang.String | grep -v &#8216;[{}]&#8216; | wc -l<br />
84</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andre Pang</title>
		<link>http://stuffthathappens.com/blog/2008/03/13/number-of-methods-in-the-string-class/comment-page-1/#comment-7395</link>
		<dc:creator>Andre Pang</dc:creator>
		<pubDate>Fri, 14 Mar 2008 23:47:03 +0000</pubDate>
		<guid isPermaLink="false">http://stuffthathappens.com/blog/2008/03/13/number-of-methods-in-the-string-class/#comment-7395</guid>
		<description>&lt;a href=&quot;http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html&quot; rel=&quot;nofollow&quot;&gt;NSString&lt;/a&gt; is one serious batteries-included string class.  I count 138 methods.</description>
		<content:encoded><![CDATA[<p><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html" rel="nofollow">NSString</a> is one serious batteries-included string class.  I count 138 methods.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://stuffthathappens.com/blog/2008/03/13/number-of-methods-in-the-string-class/comment-page-1/#comment-7387</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 14 Mar 2008 21:09:14 +0000</pubDate>
		<guid isPermaLink="false">http://stuffthathappens.com/blog/2008/03/13/number-of-methods-in-the-string-class/#comment-7387</guid>
		<description>I have a strong desire to hear crickets chirping after Mark&#039;s comment (at least until one of you with enough time on your hands goes and calculates it).  ;)</description>
		<content:encoded><![CDATA[<p>I have a strong desire to hear crickets chirping after Mark&#8217;s comment (at least until one of you with enough time on your hands goes and calculates it).  <img src='http://stuffthathappens.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: riffraff</title>
		<link>http://stuffthathappens.com/blog/2008/03/13/number-of-methods-in-the-string-class/comment-page-1/#comment-7386</link>
		<dc:creator>riffraff</dc:creator>
		<pubDate>Fri, 14 Mar 2008 21:03:17 +0000</pubDate>
		<guid isPermaLink="false">http://stuffthathappens.com/blog/2008/03/13/number-of-methods-in-the-string-class/#comment-7386</guid>
		<description>About the former ruby example.. public_instance_methods is your friend :)
(String.new.public_methods(false) - Object.new.public_methods).size # =&gt; 77

But one should consider aliasing (ie. size and length are one single method albeit shown as two) and side-effecting behaviour (sub and sub!) and variations based on arguments(i.e 6 different behaviours of String#[], kind-of-overloading behavour)</description>
		<content:encoded><![CDATA[<p>About the former ruby example.. public_instance_methods is your friend <img src='http://stuffthathappens.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
(String.new.public_methods(false) &#8211; Object.new.public_methods).size # =&gt; 77</p>
<p>But one should consider aliasing (ie. size and length are one single method albeit shown as two) and side-effecting behaviour (sub and sub!) and variations based on arguments(i.e 6 different behaviours of String#[], kind-of-overloading behavour)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.304 seconds -->

