<?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: Beautiful code</title>
	<atom:link href="http://blog.agilephp.com/2008/11/03/beautiful-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.agilephp.com/2008/11/03/beautiful-code/</link>
	<description>Dagfinn Reiersøl on PHP, agile development, Ruby and other addictive substances</description>
	<lastBuildDate>Thu, 19 Jan 2012 18:39:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: dagfinn</title>
		<link>http://blog.agilephp.com/2008/11/03/beautiful-code/comment-page-1/#comment-106</link>
		<dc:creator>dagfinn</dc:creator>
		<pubDate>Thu, 27 Nov 2008 10:41:13 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=1398#comment-106</guid>
		<description>&lt;p&gt;I know what you&#039;re talking about. I&#039;m have Ruby project going myself. I agree with you, except I find the word &quot;terrible&quot; hugely exaggerated. Instead I would say that Ruby is even better for this kind of API. All programming languages have their pros and cons.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>I know what you&#8217;re talking about. I&#8217;m have Ruby project going myself. I agree with you, except I find the word &#8220;terrible&#8221; hugely exaggerated. Instead I would say that Ruby is even better for this kind of API. All programming languages have their pros and cons.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://blog.agilephp.com/2008/11/03/beautiful-code/comment-page-1/#comment-105</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Thu, 27 Nov 2008 09:39:43 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=1398#comment-105</guid>
		<description>&lt;p&gt;If you think this is &quot;expressive&quot;, you need to look at Ruby. I build my web applications entirely in PHP, but build utilities around them for the sysadmins, and build them purely in Python and Ruby. PHP code itself is terrible.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>If you think this is &#8220;expressive&#8221;, you need to look at Ruby. I build my web applications entirely in PHP, but build utilities around them for the sysadmins, and build them purely in Python and Ruby. PHP code itself is terrible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Open</title>
		<link>http://blog.agilephp.com/2008/11/03/beautiful-code/comment-page-1/#comment-104</link>
		<dc:creator>Open</dc:creator>
		<pubDate>Tue, 25 Nov 2008 08:14:25 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=1398#comment-104</guid>
		<description>&lt;p&gt;The code looks terrible.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>The code looks terrible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blog.agilephp.com/2008/11/03/beautiful-code/comment-page-1/#comment-103</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 03 Nov 2008 20:17:16 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=1398#comment-103</guid>
		<description>&lt;p&gt;Crickey&lt;/p&gt;
&lt;p&gt;That is a painful way to write selenium.  I do a lot of selenium i found that far the easiest way is just to write some simple functions to write html that selenium ide understands and put id tags in all the html elements that you&#039;ll wanna access, i.e.&lt;/p&gt;
&lt;p&gt;$a[] = array(&#039;assertText,&#039;myelem&#039;,&#039;abc&#039;);&lt;br /&gt;
test(&#039;mytest&#039;,$a);&lt;/p&gt;
&lt;p&gt;making your own DSL ou&#039;ve got an inner platform effect where you&#039;ve created a new language (DSL) just to write another language (selenium). very pointless IMO.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Crickey</p>
<p>That is a painful way to write selenium.  I do a lot of selenium i found that far the easiest way is just to write some simple functions to write html that selenium ide understands and put id tags in all the html elements that you&#8217;ll wanna access, i.e.</p>
<p>$a[] = array(&#8216;assertText,&#8217;myelem&#8217;,'abc&#8217;);<br />
test(&#8216;mytest&#8217;,$a);</p>
<p>making your own DSL ou&#8217;ve got an inner platform effect where you&#8217;ve created a new language (DSL) just to write another language (selenium). very pointless IMO.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dagfinn</title>
		<link>http://blog.agilephp.com/2008/11/03/beautiful-code/comment-page-1/#comment-102</link>
		<dc:creator>dagfinn</dc:creator>
		<pubDate>Mon, 03 Nov 2008 18:34:59 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=1398#comment-102</guid>
		<description>&lt;p&gt;You&#039;re absolutely right, there are some things that can only be tested manually. The most obvious may be the visual design of the page.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>You&#8217;re absolutely right, there are some things that can only be tested manually. The most obvious may be the visual design of the page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nico</title>
		<link>http://blog.agilephp.com/2008/11/03/beautiful-code/comment-page-1/#comment-110</link>
		<dc:creator>nico</dc:creator>
		<pubDate>Mon, 03 Nov 2008 17:46:34 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=1398#comment-110</guid>
		<description>&lt;p&gt;dagfinn, I get your point, but you&#039;ll have to agree that probably that is not the best example ever!&lt;/p&gt;
&lt;p&gt;I have to say, though, I&#039;m a bit skeptical about automatic testing of pages. The way I prefer to debug code is to actually try it as an user would do, and try to break it, as users do.&lt;br /&gt;
The automatic testing is probably good for &quot;internal&quot; pages (for instance hidden to the user) but it takes time to write, and it&#039;s not guaranteed to give you &quot;bug-free&quot; code. &lt;/p&gt;
&lt;p&gt;What if, for instance, the user changes or exploits some javascript of your page? That you can only check by actually trying to do those things and see what happens. :)&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>dagfinn, I get your point, but you&#8217;ll have to agree that probably that is not the best example ever!</p>
<p>I have to say, though, I&#8217;m a bit skeptical about automatic testing of pages. The way I prefer to debug code is to actually try it as an user would do, and try to break it, as users do.<br />
The automatic testing is probably good for &#8220;internal&#8221; pages (for instance hidden to the user) but it takes time to write, and it&#8217;s not guaranteed to give you &#8220;bug-free&#8221; code. </p>
<p>What if, for instance, the user changes or exploits some javascript of your page? That you can only check by actually trying to do those things and see what happens. <img src='http://blog.agilephp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dagfinn</title>
		<link>http://blog.agilephp.com/2008/11/03/beautiful-code/comment-page-1/#comment-109</link>
		<dc:creator>dagfinn</dc:creator>
		<pubDate>Mon, 03 Nov 2008 17:42:42 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=1398#comment-109</guid>
		<description>&lt;p&gt;@Nigel: You don&#039;t have like it as far as I&#039;m concerned. But let me just say that the reason I find it readable is that it reads almost like an sentence in English.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>@Nigel: You don&#8217;t have like it as far as I&#8217;m concerned. But let me just say that the reason I find it readable is that it reads almost like an sentence in English.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://blog.agilephp.com/2008/11/03/beautiful-code/comment-page-1/#comment-108</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 03 Nov 2008 14:53:44 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=1398#comment-108</guid>
		<description>&lt;p&gt;What is &#039;withName&#039; in that example... I don&#039;t understand how that code would work unless withName is a function within local scope&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>What is &#8216;withName&#8217; in that example&#8230; I don&#8217;t understand how that code would work unless withName is a function within local scope</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nigel</title>
		<link>http://blog.agilephp.com/2008/11/03/beautiful-code/comment-page-1/#comment-107</link>
		<dc:creator>Nigel</dc:creator>
		<pubDate>Mon, 03 Nov 2008 14:11:25 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=1398#comment-107</guid>
		<description>&lt;p&gt;Yeah, I think that code looks gross.&lt;/p&gt;
&lt;p&gt;Not eas to read if you ask me&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Yeah, I think that code looks gross.</p>
<p>Not eas to read if you ask me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dagfinn</title>
		<link>http://blog.agilephp.com/2008/11/03/beautiful-code/comment-page-1/#comment-112</link>
		<dc:creator>dagfinn</dc:creator>
		<pubDate>Mon, 03 Nov 2008 14:00:54 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=1398#comment-112</guid>
		<description>&lt;p&gt;I can&#039;t conjure up a complete example on the fly, but I can explain what the point is. The intent is automated testing. As you say, you created the page, but then maybe later you broke it, maybe even while changing something code you thought was unrelated. Instead of the page with the select menu, there may be a page that says &quot;fatal error...&quot;,for instance. To avoid those situations, I want a test script I can run that will check that everything is still in place without my having to test all of it manually.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>I can&#8217;t conjure up a complete example on the fly, but I can explain what the point is. The intent is automated testing. As you say, you created the page, but then maybe later you broke it, maybe even while changing something code you thought was unrelated. Instead of the page with the select menu, there may be a page that says &#8220;fatal error&#8230;&#8221;,for instance. To avoid those situations, I want a test script I can run that will check that everything is still in place without my having to test all of it manually.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

