<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>netCUBED Blog &#187; forbidden words</title>
	<atom:link href="http://blog.netcubed.de/tag/forbidden-words/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.netcubed.de</link>
	<description>Just another web developer's weblog</description>
	<lastBuildDate>Mon, 29 Jun 2009 20:58:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Test for &#8220;forbidden&#8221; words?</title>
		<link>http://blog.netcubed.de/2009/06/test-for-forbidden-words/</link>
		<comments>http://blog.netcubed.de/2009/06/test-for-forbidden-words/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 20:53:15 +0000</pubDate>
		<dc:creator>Moritz Onken</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[forbidden words]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[test]]></category>

		<guid isPermaLink="false">http://blog.netcubed.de/?p=88</guid>
		<description><![CDATA[I&#8217;m developing a web app right now and as some of you might know there is a very popular javascript command which is used for debugging. It&#8217;s invoked via console.log() and takes anything as an argument. If you use Firefox with Firebug or Safari 4 the value you pass to console.log will be printed and [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m developing a web app right now and as some of you might know there is a very popular javascript command which is used for debugging. It&#8217;s invoked via <code>console.log()</code> and takes anything as an argument. If you use Firefox with Firebug or Safari 4 the value you pass to <code>console.log</code> will be printed and introspected via a debug window.</p>
<p>The problem is that I forget on a regular basis to remove those <code>console.log</code> statements. I wrote a very quick and dirty perl script which searches files with  an .js extension for console.log. I put that script in the t/ folder and named it <code>forbidden_words.t</code>.</p>
<p>It works great so far and my test suite fails as soon as there is still a console.log around. I plan to extend this script to something like Test::ForbiddenWords or something where you can specify file extensions and strings (or regexes).</p>
<p>I couldn&#8217;t find anything like this on the CPAN, so give me a comment if you like the idea or know something better.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.netcubed.de/2009/06/test-for-forbidden-words/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
