<?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: Regular expressions are like broccoli&#8230;</title>
	<atom:link href="http://michaelkimsal.com/blog/regular-expressions-are-like-broccoli/feed/" rel="self" type="application/rss+xml" />
	<link>http://michaelkimsal.com/blog/regular-expressions-are-like-broccoli/</link>
	<description>Web development and new media observations</description>
	<lastBuildDate>Sat, 13 Mar 2010 16:16:27 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Philip Graham</title>
		<link>http://michaelkimsal.com/blog/regular-expressions-are-like-broccoli/comment-page-1/#comment-51512</link>
		<dc:creator>Philip Graham</dc:creator>
		<pubDate>Wed, 12 Nov 2008 16:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://michaelkimsal.com/blog/?p=633#comment-51512</guid>
		<description>Closures are like quantum mechanics, hardly anyone understands them but they&#039;re always working in the background.

Unit testing is like getting up to go to the gym at 5:00am.  It&#039;s painful initially, but once you&#039;ve done it a few times you feel better :) .</description>
		<content:encoded><![CDATA[<p>Closures are like quantum mechanics, hardly anyone understands them but they&#8217;re always working in the background.</p>
<p>Unit testing is like getting up to go to the gym at 5:00am.  It&#8217;s painful initially, but once you&#8217;ve done it a few times you feel better <img src='http://michaelkimsal.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fa</title>
		<link>http://michaelkimsal.com/blog/regular-expressions-are-like-broccoli/comment-page-1/#comment-51391</link>
		<dc:creator>fa</dc:creator>
		<pubDate>Tue, 11 Nov 2008 10:12:34 +0000</pubDate>
		<guid isPermaLink="false">http://michaelkimsal.com/blog/?p=633#comment-51391</guid>
		<description>RegEx is like chocolate.
I want &lt;em&gt;more&lt;/em&gt; :)</description>
		<content:encoded><![CDATA[<p>RegEx is like chocolate.<br />
I want <em>more</em> <img src='http://michaelkimsal.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon H</title>
		<link>http://michaelkimsal.com/blog/regular-expressions-are-like-broccoli/comment-page-1/#comment-51360</link>
		<dc:creator>Simon H</dc:creator>
		<pubDate>Tue, 11 Nov 2008 01:11:39 +0000</pubDate>
		<guid isPermaLink="false">http://michaelkimsal.com/blog/?p=633#comment-51360</guid>
		<description>Also by coincidence, &lt;a href=&quot;http://thedailywtf.com&quot; rel=&quot;nofollow&quot;&gt;thedailywtf.com&lt;/a&gt; today supplied this quote from Jamie Zawinski:

&lt;blockquote cite=&quot;http://thedailywtf.com/Articles/Now-I-Have-Two-Hundred-Problems.aspx&quot;&gt;Some people, when confronted with a problem, think &quot;I know, I&#039;ll use regular expressions.&quot; Now they have two problems.&lt;/blockquote&gt;

I&#039;m not saying I agree with that!

Broccoli? You&#039;ve just got to cook it right.</description>
		<content:encoded><![CDATA[<p>Also by coincidence, <a href="http://thedailywtf.com" rel="nofollow">thedailywtf.com</a> today supplied this quote from Jamie Zawinski:</p>
<blockquote cite="http://thedailywtf.com/Articles/Now-I-Have-Two-Hundred-Problems.aspx"><p>Some people, when confronted with a problem, think &#8220;I know, I&#8217;ll use regular expressions.&#8221; Now they have two problems.</p></blockquote>
<p>I&#8217;m not saying I agree with that!</p>
<p>Broccoli? You&#8217;ve just got to cook it right.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Fjordvald</title>
		<link>http://michaelkimsal.com/blog/regular-expressions-are-like-broccoli/comment-page-1/#comment-51344</link>
		<dc:creator>Martin Fjordvald</dc:creator>
		<pubDate>Mon, 10 Nov 2008 23:13:56 +0000</pubDate>
		<guid isPermaLink="false">http://michaelkimsal.com/blog/?p=633#comment-51344</guid>
		<description>Classes are blueprints and functions are actually called methods when used with classes. :)

Unit testing is wasting money since you really can&#039;t justify a huge yearly &quot;maintenance&quot; free for support and &quot;upgrades&quot; if you do them. They&#039;re horribly, horribly evil I say.</description>
		<content:encoded><![CDATA[<p>Classes are blueprints and functions are actually called methods when used with classes. <img src='http://michaelkimsal.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Unit testing is wasting money since you really can&#8217;t justify a huge yearly &#8220;maintenance&#8221; free for support and &#8220;upgrades&#8221; if you do them. They&#8217;re horribly, horribly evil I say.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: elzapp</title>
		<link>http://michaelkimsal.com/blog/regular-expressions-are-like-broccoli/comment-page-1/#comment-51335</link>
		<dc:creator>elzapp</dc:creator>
		<pubDate>Mon, 10 Nov 2008 19:51:11 +0000</pubDate>
		<guid isPermaLink="false">http://michaelkimsal.com/blog/?p=633#comment-51335</guid>
		<description>I&#039;m surprised that you don&#039;t have a regexp guy in your class. There&#039;s always someone with a bizarre liking for broccoli. Like me for instance. The problem is, my first solution is always a regexp, even if there is a lot better and more elegant ways to solve the problem.</description>
		<content:encoded><![CDATA[<p>I&#8217;m surprised that you don&#8217;t have a regexp guy in your class. There&#8217;s always someone with a bizarre liking for broccoli. Like me for instance. The problem is, my first solution is always a regexp, even if there is a lot better and more elegant ways to solve the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Kimsal</title>
		<link>http://michaelkimsal.com/blog/regular-expressions-are-like-broccoli/comment-page-1/#comment-51330</link>
		<dc:creator>Michael Kimsal</dc:creator>
		<pubDate>Mon, 10 Nov 2008 18:03:23 +0000</pubDate>
		<guid isPermaLink="false">http://michaelkimsal.com/blog/?p=633#comment-51330</guid>
		<description>As if my magic, &lt;a href=&quot;http://ask.slashdot.org/askslashdot/08/11/10/131234.shtml&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt; appeared on Slashdot today.  :)</description>
		<content:encoded><![CDATA[<p>As if my magic, <a href="http://ask.slashdot.org/askslashdot/08/11/10/131234.shtml" rel="nofollow">this</a> appeared on Slashdot today.  <img src='http://michaelkimsal.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Karwin</title>
		<link>http://michaelkimsal.com/blog/regular-expressions-are-like-broccoli/comment-page-1/#comment-51326</link>
		<dc:creator>Bill Karwin</dc:creator>
		<pubDate>Mon, 10 Nov 2008 16:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://michaelkimsal.com/blog/?p=633#comment-51326</guid>
		<description>Unit testing is like flossing your teeth.  Essential for good hygiene, hard for some people to get into the habit, but once you do have the habit it&#039;s easy to do.

By the way, you shouldn&#039;t ignore regular expressions.  They&#039;re really not that hard.  Regular expressions are just a very compact notation for a finite state machine, which is like a flowchart.  

I like Tom&#039;s comment above.  Make them code a state machine the long way, and then show them how a regular expression works the same way.  If you think of a regular expression as the alternative to writing screenfulls of code, they don&#039;t seem so hard.</description>
		<content:encoded><![CDATA[<p>Unit testing is like flossing your teeth.  Essential for good hygiene, hard for some people to get into the habit, but once you do have the habit it&#8217;s easy to do.</p>
<p>By the way, you shouldn&#8217;t ignore regular expressions.  They&#8217;re really not that hard.  Regular expressions are just a very compact notation for a finite state machine, which is like a flowchart.  </p>
<p>I like Tom&#8217;s comment above.  Make them code a state machine the long way, and then show them how a regular expression works the same way.  If you think of a regular expression as the alternative to writing screenfulls of code, they don&#8217;t seem so hard.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: elblogg &#187; Blog Archive &#187; Unit tests saves the day</title>
		<link>http://michaelkimsal.com/blog/regular-expressions-are-like-broccoli/comment-page-1/#comment-51318</link>
		<dc:creator>elblogg &#187; Blog Archive &#187; Unit tests saves the day</dc:creator>
		<pubDate>Mon, 10 Nov 2008 14:25:50 +0000</pubDate>
		<guid isPermaLink="false">http://michaelkimsal.com/blog/?p=633#comment-51318</guid>
		<description>[...] It feels very good to have proper knowledge that everything actually works properly after a refactoring like this. Unit testing is like love. It’ll keep you going when everything else fails. (citation) [...]</description>
		<content:encoded><![CDATA[<p>[...] It feels very good to have proper knowledge that everything actually works properly after a refactoring like this. Unit testing is like love. It’ll keep you going when everything else fails. (citation) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://michaelkimsal.com/blog/regular-expressions-are-like-broccoli/comment-page-1/#comment-51313</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Mon, 10 Nov 2008 13:53:48 +0000</pubDate>
		<guid isPermaLink="false">http://michaelkimsal.com/blog/?p=633#comment-51313</guid>
		<description>What on earth? No wonder you don&#039;t have much interest in RegExp if you&#039;re comparing them to green veg.

Why not just get them to do something using standard string manipulation and then show them how to do it with a RegExp in half the time with a fraction of the code? In fact, why not get half the class to do it with a RegExp and then once they&#039;re finished get them to throw Broccoli at the remaing half whilst they try to complete the task!

The problem with regular expressions is unless you force yourself to use them regularly, you can always choose to ignore them and opt for a slower more painful route. The learning curve with RegExp is very steep, but once you get to a certain point it&#039;s like running down hill with the wind behind you.</description>
		<content:encoded><![CDATA[<p>What on earth? No wonder you don&#8217;t have much interest in RegExp if you&#8217;re comparing them to green veg.</p>
<p>Why not just get them to do something using standard string manipulation and then show them how to do it with a RegExp in half the time with a fraction of the code? In fact, why not get half the class to do it with a RegExp and then once they&#8217;re finished get them to throw Broccoli at the remaing half whilst they try to complete the task!</p>
<p>The problem with regular expressions is unless you force yourself to use them regularly, you can always choose to ignore them and opt for a slower more painful route. The learning curve with RegExp is very steep, but once you get to a certain point it&#8217;s like running down hill with the wind behind you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://michaelkimsal.com/blog/regular-expressions-are-like-broccoli/comment-page-1/#comment-51311</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Mon, 10 Nov 2008 13:47:20 +0000</pubDate>
		<guid isPermaLink="false">http://michaelkimsal.com/blog/?p=633#comment-51311</guid>
		<description>Unit testing is a condom. You should wear one, but it could break.</description>
		<content:encoded><![CDATA[<p>Unit testing is a condom. You should wear one, but it could break.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
