<?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>Joys and rants of a Python programmer &#187; Python</title>
	<atom:link href="http://blog.pow.lt/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pow.lt</link>
	<description>Pow! Wham, bam, kapow!</description>
	<lastBuildDate>Wed, 02 Dec 2009 16:04:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Cyclomatic complexity in emacs</title>
		<link>http://blog.pow.lt/2009/11/27/cyclomatic-complexity-in-emacs/</link>
		<comments>http://blog.pow.lt/2009/11/27/cyclomatic-complexity-in-emacs/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 18:11:36 +0000</pubDate>
		<dc:creator>Ignas Mikalajūnas</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.pow.lt/?p=23</guid>
		<description><![CDATA[Seeing the Cyclomatic complexity in VIM video got me slightly envious. As I am a long time GNU Emacs user I have decided to get back at those VIM people. Emacs can do everything that VIM can, only better after all  

So I present you pycomplexity &#8212; an Emacs mode that can do the same [...]]]></description>
			<content:encoded><![CDATA[Seeing the <a href="http://www.vimeo.com/7259161">Cyclomatic complexity in VIM</a> video got me slightly envious. As I am a long time GNU Emacs user I have decided to get back at those VIM people. Emacs can do everything that VIM can, only better after all <img src='http://blog.pow.lt/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> 

So I present you <a href="http://wiki.github.com/Ignas/pycomplexity">pycomplexity</a> &mdash; an Emacs mode that can do the same thing that vim-complexity does:

<div id="attachment_24" class="wp-caption alignnone" style="width: 529px"><img class="size-full wp-image-24" title="Sample code" src="http://blog.pow.lt/wp-content/uploads/2009/11/emacs_complexity_1.png" alt="pieces of code highlighted according to cyclomatic complexity" width="519" height="436" /><p class="wp-caption-text">pieces of code highlighted according to cyclomatic complexity</p></div>

At the moment the mode is &#8220;Works on my machine&#8221; certified.  But it&#8217;s open source, so contributions are welcome. Big thanks go to <a href="http://stud4.tuwien.ac.at/~e0225855/index.html">Markus Triska</a> the author of the <a href="http://stud4.tuwien.ac.at/~e0225855/linum/linum.html">linum.el</a> and <a href="http://blog.extracheese.org/">Gary Bernhardt</a> for writing the complexity code calculator.

Oh as for the more part:

<img class="alignnone size-full wp-image-30" title="emacs_complexity_2" src="http://blog.pow.lt/wp-content/uploads/2009/11/emacs_complexity_2.png" alt="emacs_complexity_2" width="519" height="169" />

Coming up next &#8211; documenting how to set up pyflakes-enabled flymake:

<img class="alignnone size-full wp-image-31" title="emacs_complexity_3" src="http://blog.pow.lt/wp-content/uploads/2009/11/emacs_complexity_3.png" alt="emacs_complexity_3" width="519" height="181" />

Competition spurs innovation after all <img src='http://blog.pow.lt/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fblog.pow.lt%2F2009%2F11%2F27%2Fcyclomatic-complexity-in-emacs%2F&amp;linkname=Cyclomatic%20complexity%20in%20emacs" title="Digg" rel="nofollow" target="_blank"><img src="http://blog.pow.lt/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fblog.pow.lt%2F2009%2F11%2F27%2Fcyclomatic-complexity-in-emacs%2F&amp;linkname=Cyclomatic%20complexity%20in%20emacs" title="Reddit" rel="nofollow" target="_blank"><img src="http://blog.pow.lt/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fblog.pow.lt%2F2009%2F11%2F27%2Fcyclomatic-complexity-in-emacs%2F&amp;linkname=Cyclomatic%20complexity%20in%20emacs" title="Delicious" rel="nofollow" target="_blank"><img src="http://blog.pow.lt/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fblog.pow.lt%2F2009%2F11%2F27%2Fcyclomatic-complexity-in-emacs%2F&amp;linkname=Cyclomatic%20complexity%20in%20emacs" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.pow.lt/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblog.pow.lt%2F2009%2F11%2F27%2Fcyclomatic-complexity-in-emacs%2F&amp;linkname=Cyclomatic%20complexity%20in%20emacs"><img src="http://blog.pow.lt/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://blog.pow.lt/2009/11/27/cyclomatic-complexity-in-emacs/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
