Note to self: Write funnier code.

by Josh Tynjala

Google Code Search is pretty cool. Certainly, you’ll discover some oddities and troubling security issues, but I imagine that this might be helpful to a lot of folks looking for some quick fixes. I like that results will show the type of license if Google’s crawler can find it.

A funny query that someone on Slashdot pointed out makes me want to refactor some of my Actionscript code:

private static const POPE_IS_CATHOLIC:Boolean = true;

public function doSomething():void
{
	while(POPE_IS_CATHOLIC)
	{
		//do something
	}
}

It will be interesting to see if this and other code search engines help to discover GPL and other license violations. Obviously the code has to be accessible to the public for the crawler to find it, but I imagine that it’s still a useful tool in that realm.

About the Author

Josh Tynjala is an open source developer, entrepreneur, coding mercenary, karaoke addict, and bowler hat enthusiast.

Share Your Thoughts

To display code in comments: <pre>Code here. May be multiline. Format XML with &gt; and &lt; entities.</pre>

Some HTML allowed in comments: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>