<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Ruby on the Enterprise</title>
	<link>http://mywheel.net/blog/index.php/2007/02/08/ruby-on-the-enterprise/</link>
	<description>IT random thoughts</description>
	<pubDate>Fri, 10 Sep 2010 08:52:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0</generator>

	<item>
		<title>by: mlopes</title>
		<link>http://mywheel.net/blog/index.php/2007/02/08/ruby-on-the-enterprise/#comment-23596</link>
		<pubDate>Fri, 09 Mar 2007 17:03:00 +0000</pubDate>
		<guid>http://mywheel.net/blog/index.php/2007/02/08/ruby-on-the-enterprise/#comment-23596</guid>
					<description>MJ,

Commenting out code is always a good policy. I think that what Carlos said applies only to small applications.

Huge blocks of code which otherwise can not be splited up definitely need a comment introduction. Actually, it makes no sense at all not including comments: there's no penalty on the application whatsoever since they're ignored by the compiler (although they may influence an interpreter because it will have to ignore the lines in runtime).

Pray for the comments! :-)</description>
		<content:encoded><![CDATA[<p>MJ,</p>
<p>Commenting out code is always a good policy. I think that what Carlos said applies only to small applications.</p>
<p>Huge blocks of code which otherwise can not be splited up definitely need a comment introduction. Actually, it makes no sense at all not including comments: there&#8217;s no penalty on the application whatsoever since they&#8217;re ignored by the compiler (although they may influence an interpreter because it will have to ignore the lines in runtime).</p>
<p>Pray for the comments! :-)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: MJ</title>
		<link>http://mywheel.net/blog/index.php/2007/02/08/ruby-on-the-enterprise/#comment-23501</link>
		<pubDate>Fri, 09 Mar 2007 11:29:01 +0000</pubDate>
		<guid>http://mywheel.net/blog/index.php/2007/02/08/ruby-on-the-enterprise/#comment-23501</guid>
					<description>RE someone's comment above: &quot;If you need to comment code to make it understandable, the code is bad, rewrite it.&quot;

You see a lot of this bandied around and it is wrong.  I'll tell you why.

I am a PeopleSoft developer, yes real enterprise stuff but I'm not putting it over anyone, PeopleTool/Code has a lot of catching up to do with most languages, I mostly hate it.  I'll get to that.

The thing is with Enterprise code there is a lot of business logic, well it's all business logic really, 100%.  When the programmer writes the logic as code they can make a mistake, there is a LOT of complex, interacting, dynamic, sometimes poorly analysed (correct spelling in the queen's English) business logic.  

Sure we can understand the code the programmer has written but what was the logic SUPPOSED to be, in plain English/German whatever?  What were you trying to do when you stuffed up (which is why I am now fixing your code), and for god sakes don't make it so I have to spend 30 minutes digesting this massive SQL statement, complete with views that have their own massive SQL statements, just tell it to me in a simple comment man!  Be reasonable, your poorly thought out, illogical, inconcise code is hard to follow especially when you use hundreds of unneccessary variables that all look the same: $AP_EP_RO &amp;#38; &amp;#38;AP_IP_RO &amp;#38; &amp;#38;AP_IP_RA.

So there you have my reasons for absolutely hating code with no comments.  It is quicker to modify, debug and extend (usually poorly written, it's the real world) code if it contains comments.  They aren't too hard to write are they?

So yeah PeopleCode/Tools (www.oracle.com) Put it this way, they have just introduced colour syntax highlighting.  Need I say more?  ... But the framework, oh the framework, where you will use 50 lines of code in Rails, PCode will use 0, and have industrial strength security, cross-browser support, scalability, web services, WYSIWYG design tool... the list goes on.

But yeah, please comment your code so we know what you were trying to do/doing without having to lookup general designs, make phone calls to functional experts or digest hundreds of lines of rubbish/code.</description>
		<content:encoded><![CDATA[<p>RE someone&#8217;s comment above: &#8220;If you need to comment code to make it understandable, the code is bad, rewrite it.&#8221;</p>
<p>You see a lot of this bandied around and it is wrong.  I&#8217;ll tell you why.</p>
<p>I am a PeopleSoft developer, yes real enterprise stuff but I&#8217;m not putting it over anyone, PeopleTool/Code has a lot of catching up to do with most languages, I mostly hate it.  I&#8217;ll get to that.</p>
<p>The thing is with Enterprise code there is a lot of business logic, well it&#8217;s all business logic really, 100%.  When the programmer writes the logic as code they can make a mistake, there is a LOT of complex, interacting, dynamic, sometimes poorly analysed (correct spelling in the queen&#8217;s English) business logic.  </p>
<p>Sure we can understand the code the programmer has written but what was the logic SUPPOSED to be, in plain English/German whatever?  What were you trying to do when you stuffed up (which is why I am now fixing your code), and for god sakes don&#8217;t make it so I have to spend 30 minutes digesting this massive SQL statement, complete with views that have their own massive SQL statements, just tell it to me in a simple comment man!  Be reasonable, your poorly thought out, illogical, inconcise code is hard to follow especially when you use hundreds of unneccessary variables that all look the same: $AP_EP_RO &amp; &amp;AP_IP_RO &amp; &amp;AP_IP_RA.</p>
<p>So there you have my reasons for absolutely hating code with no comments.  It is quicker to modify, debug and extend (usually poorly written, it&#8217;s the real world) code if it contains comments.  They aren&#8217;t too hard to write are they?</p>
<p>So yeah PeopleCode/Tools (www.oracle.com) Put it this way, they have just introduced colour syntax highlighting.  Need I say more?  &#8230; But the framework, oh the framework, where you will use 50 lines of code in Rails, PCode will use 0, and have industrial strength security, cross-browser support, scalability, web services, WYSIWYG design tool&#8230; the list goes on.</p>
<p>But yeah, please comment your code so we know what you were trying to do/doing without having to lookup general designs, make phone calls to functional experts or digest hundreds of lines of rubbish/code.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Carlos Rodrigues</title>
		<link>http://mywheel.net/blog/index.php/2007/02/08/ruby-on-the-enterprise/#comment-19819</link>
		<pubDate>Fri, 09 Feb 2007 12:49:10 +0000</pubDate>
		<guid>http://mywheel.net/blog/index.php/2007/02/08/ruby-on-the-enterprise/#comment-19819</guid>
					<description>&quot;The JVM is just not performant enough. It does not compare to the speed it shows on Solaris.&quot;

I find this a bit hard to believe... Are you sure you are using the server VM on Linux? I'm not sure, but I think it's the default on Solaris, but everywhere else it's only picked up by default if the box has more than 2Gb of RAM _and_ two or more CPUs.</description>
		<content:encoded><![CDATA[<p>&#8220;The JVM is just not performant enough. It does not compare to the speed it shows on Solaris.&#8221;</p>
<p>I find this a bit hard to believe&#8230; Are you sure you are using the server VM on Linux? I&#8217;m not sure, but I think it&#8217;s the default on Solaris, but everywhere else it&#8217;s only picked up by default if the box has more than 2Gb of RAM _and_ two or more CPUs.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: JP Antunes</title>
		<link>http://mywheel.net/blog/index.php/2007/02/08/ruby-on-the-enterprise/#comment-19817</link>
		<pubDate>Fri, 09 Feb 2007 12:05:50 +0000</pubDate>
		<guid>http://mywheel.net/blog/index.php/2007/02/08/ruby-on-the-enterprise/#comment-19817</guid>
					<description>Hi there Mario.

I'm a TextMate fan too but sometimes need a similar (read: as good as) product for Linux because some times my girlfried steals my mac (shh designers...) and the time it takes me to (re-)learn how to make good use of Gedit is not acceptable.

However i've recently started using Komodo Edit (for mac and linux) and it seems to be a preety good tool. Have you tried it yet?</description>
		<content:encoded><![CDATA[<p>Hi there Mario.</p>
<p>I&#8217;m a TextMate fan too but sometimes need a similar (read: as good as) product for Linux because some times my girlfried steals my mac (shh designers&#8230;) and the time it takes me to (re-)learn how to make good use of Gedit is not acceptable.</p>
<p>However i&#8217;ve recently started using Komodo Edit (for mac and linux) and it seems to be a preety good tool. Have you tried it yet?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Sérgio Carvalho</title>
		<link>http://mywheel.net/blog/index.php/2007/02/08/ruby-on-the-enterprise/#comment-19795</link>
		<pubDate>Fri, 09 Feb 2007 03:29:22 +0000</pubDate>
		<guid>http://mywheel.net/blog/index.php/2007/02/08/ruby-on-the-enterprise/#comment-19795</guid>
					<description>&quot;I don’t think PHP’s scalability is stronger than Java.&quot;

Believe me, it is. As a language, I strongly prefer Java, and tried to the limit using it as the foundation for the sites I develop. However, one must concede that PHP sweeps Java into a corner. At least on Linux, Java has two serious flaws:
 1) The JVM is just not performant enough. It does not compare to the speed it shows on Solaris.
 2) It has piss poor memory management. Up to the ridiculous point of never releasing memory to the OS. This means that a particular VM is constantly using the peak value of memory. Combine with the excellent Linux disk cache (whose performance the JVM hampers) and Java is tossing away a performance boost that PHP gladly uses to race away. On setups where the VM coexists with a database, the memory hogging behavior worsens the scenario even more.</description>
		<content:encoded><![CDATA[<p>&#8220;I don’t think PHP’s scalability is stronger than Java.&#8221;</p>
<p>Believe me, it is. As a language, I strongly prefer Java, and tried to the limit using it as the foundation for the sites I develop. However, one must concede that PHP sweeps Java into a corner. At least on Linux, Java has two serious flaws:<br />
 1) The JVM is just not performant enough. It does not compare to the speed it shows on Solaris.<br />
 2) It has piss poor memory management. Up to the ridiculous point of never releasing memory to the OS. This means that a particular VM is constantly using the peak value of memory. Combine with the excellent Linux disk cache (whose performance the JVM hampers) and Java is tossing away a performance boost that PHP gladly uses to race away. On setups where the VM coexists with a database, the memory hogging behavior worsens the scenario even more.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Carlos Rodrigues</title>
		<link>http://mywheel.net/blog/index.php/2007/02/08/ruby-on-the-enterprise/#comment-19789</link>
		<pubDate>Fri, 09 Feb 2007 01:51:55 +0000</pubDate>
		<guid>http://mywheel.net/blog/index.php/2007/02/08/ruby-on-the-enterprise/#comment-19789</guid>
					<description>Ok... OK then :)</description>
		<content:encoded><![CDATA[<p>Ok&#8230; OK then :)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: mlopes</title>
		<link>http://mywheel.net/blog/index.php/2007/02/08/ruby-on-the-enterprise/#comment-19783</link>
		<pubDate>Fri, 09 Feb 2007 00:38:07 +0000</pubDate>
		<guid>http://mywheel.net/blog/index.php/2007/02/08/ruby-on-the-enterprise/#comment-19783</guid>
					<description>Carlos, I said precisely the same. I just stated &quot;For those familiar with Python&quot; because most of the Python code I've looked through contained as few comments (because they are not needed) as within Ruby code. I was not saying that Python was the contrary!</description>
		<content:encoded><![CDATA[<p>Carlos, I said precisely the same. I just stated &#8220;For those familiar with Python&#8221; because most of the Python code I&#8217;ve looked through contained as few comments (because they are not needed) as within Ruby code. I was not saying that Python was the contrary!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Carlos Rodrigues</title>
		<link>http://mywheel.net/blog/index.php/2007/02/08/ruby-on-the-enterprise/#comment-19781</link>
		<pubDate>Fri, 09 Feb 2007 00:33:35 +0000</pubDate>
		<guid>http://mywheel.net/blog/index.php/2007/02/08/ruby-on-the-enterprise/#comment-19781</guid>
					<description>&quot;Also, it requires less to none comments for the code to be understandable. For those familiar with Python, you know what I’m talking about :-)&quot;

Nope. Please enlighten us. :)

Python code should be as readable as Ruby* code. If it isn't, the problem is the programmer, not the language. If you need to comment code to make it understandable, the code is bad, rewrite it.

Now, I've seen plenty of examples of people trying to be clever in Python, I'll give you that. The language is flexible enough to allow for all sorts of weird idioms that nobody else understands. And the world is full of micro-optimizer types that think &quot;cleverising&quot; code to gain a couple of miliseconds is a good idea. Eh, if they wanted highly optimized code, they should never gotten into Python in the first place...

And the fun part is very well know Python books actually encourage the use of clever tricks. For instance, &quot;Dive into Python&quot; has a whole section dedicated to the &quot;and or&quot; trick, which is ugly, has a bunch of problems and isn't actually _needed_ in the real world...</description>
		<content:encoded><![CDATA[<p>&#8220;Also, it requires less to none comments for the code to be understandable. For those familiar with Python, you know what I’m talking about :-)&#8221;</p>
<p>Nope. Please enlighten us. :)</p>
<p>Python code should be as readable as Ruby* code. If it isn&#8217;t, the problem is the programmer, not the language. If you need to comment code to make it understandable, the code is bad, rewrite it.</p>
<p>Now, I&#8217;ve seen plenty of examples of people trying to be clever in Python, I&#8217;ll give you that. The language is flexible enough to allow for all sorts of weird idioms that nobody else understands. And the world is full of micro-optimizer types that think &#8220;cleverising&#8221; code to gain a couple of miliseconds is a good idea. Eh, if they wanted highly optimized code, they should never gotten into Python in the first place&#8230;</p>
<p>And the fun part is very well know Python books actually encourage the use of clever tricks. For instance, &#8220;Dive into Python&#8221; has a whole section dedicated to the &#8220;and or&#8221; trick, which is ugly, has a bunch of problems and isn&#8217;t actually _needed_ in the real world&#8230;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: mgcm</title>
		<link>http://mywheel.net/blog/index.php/2007/02/08/ruby-on-the-enterprise/#comment-19778</link>
		<pubDate>Fri, 09 Feb 2007 00:20:12 +0000</pubDate>
		<guid>http://mywheel.net/blog/index.php/2007/02/08/ruby-on-the-enterprise/#comment-19778</guid>
					<description>Have you tried RoRED IDE (http://www.plasmacode.com/) for Rails Development in Windows?

I've tried several editors and stuck with this one! Quite good, but still not final... Has project-code-completion (not ruby yet, but will have).

Try it!</description>
		<content:encoded><![CDATA[<p>Have you tried RoRED IDE (http://www.plasmacode.com/) for Rails Development in Windows?</p>
<p>I&#8217;ve tried several editors and stuck with this one! Quite good, but still not final&#8230; Has project-code-completion (not ruby yet, but will have).</p>
<p>Try it!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: mlopes</title>
		<link>http://mywheel.net/blog/index.php/2007/02/08/ruby-on-the-enterprise/#comment-19775</link>
		<pubDate>Fri, 09 Feb 2007 00:08:37 +0000</pubDate>
		<guid>http://mywheel.net/blog/index.php/2007/02/08/ruby-on-the-enterprise/#comment-19775</guid>
					<description>Pedro,

I was trying to put the reference right here but Wordpress is removing the &lt; / a &gt; tag and screwing this up. I'll show it to you in a minute.</description>
		<content:encoded><![CDATA[<p>Pedro,</p>
<p>I was trying to put the reference right here but Wordpress is removing the < / a > tag and screwing this up. I&#8217;ll show it to you in a minute.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
