<?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>muhuk.com &#187; pep</title>
	<atom:link href="http://www.muhuk.com/tag/pep/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.muhuk.com</link>
	<description>know thyself</description>
	<lastBuildDate>Thu, 29 Dec 2011 05:05:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>GALFTHW Style Tutorial On Python Coroutines</title>
		<link>http://www.muhuk.com/2009/04/galfthw-style-tutorial-on-python-coroutines/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=galfthw-style-tutorial-on-python-coroutines</link>
		<comments>http://www.muhuk.com/2009/04/galfthw-style-tutorial-on-python-coroutines/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 07:05:18 +0000</pubDate>
		<dc:creator>Atamert Ölçgen</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[coroutines]]></category>
		<category><![CDATA[hello world]]></category>
		<category><![CDATA[pep]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.muhuk.com/?p=160</guid>
		<description><![CDATA[An excellent tutorial explaining yield expression and coroutines with examples like data processing pipelines and cooperative multitasking1. I loved it for the following reasons: It is written well and examples are clean and to the point. I&#8217;ve just read the slides and I have a much better understanding about coroutines now. It aims to give [...]<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2009/04/galfthw-style-tutorial-on-python-coroutines/' addthis:title='GALFTHW Style Tutorial On Python Coroutines '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></description>
			<content:encoded><![CDATA[<p>An <a href="http://www.dabeaz.com/coroutines/">excellent tutorial</a> explaining <a href="http://www.python.org/dev/peps/pep-0342/"><code>yield</code> expression and coroutines</a> with examples like data processing pipelines and cooperative multitasking<sup>1</sup>. I loved it for the following reasons:</p>

<ul>
<li>It is written well and examples are clean and to the point. I&#8217;ve just read the slides and I have a much better understanding about coroutines now.</li>
<li>It aims to give a better understanding about the subject. But doesn&#8217;t just <code>Hello World</code> the examples, all code included is practical and useful. (Death to Fibonacci! LOL)</li>
<li><a href="http://www.dabeaz.com/about.html">Author</a> explains thing from a wide perspective, including counter-arguments and possible bottlenecks and necessary warnings&#8230;</li>
</ul>

<p>All in all I really enjoyed this tutorial. Highly recommended.</p>

<hr />

<p><strong>1</strong>: Multitasking possibly within a single thread/process.</p>
<div><a class="addthis_button" href="http://www.muhuk.com//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2009/04/galfthw-style-tutorial-on-python-coroutines/' addthis:title='GALFTHW Style Tutorial On Python Coroutines '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div><p>Related posts:<ol>
<li><a href='http://www.muhuk.com/2010/11/drawing-gradients-with-pygame/' rel='bookmark' title='Drawing Gradients with PyGame'>Drawing Gradients with PyGame</a></li>
<li><a href='http://www.muhuk.com/2011/06/pycon-apac-optimizing-media-performance-with-django_compressor/' rel='bookmark' title='My PyCon APAC 2011 Presentation: Optimizing Media Performance with django_compressor'>My PyCon APAC 2011 Presentation: Optimizing Media Performance with django_compressor</a></li>
<li><a href='http://www.muhuk.com/2011/11/working-with-files-in-django/' rel='bookmark' title='Working with files in Django &#8211; Part 1'>Working with files in Django &#8211; Part 1</a></li>
</ol></p> <p><a href="http://www.muhuk.com/?flattrss_redirect&amp;id=160&amp;md5=87922daa0e186557f7c72356dce69f71" title="Flattr" target="_blank"><img src="http://www.muhuk.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.muhuk.com/2009/04/galfthw-style-tutorial-on-python-coroutines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.muhuk.com/?flattrss_redirect&amp;id=160&amp;md5=87922daa0e186557f7c72356dce69f71" type="text/html" />
	</item>
		<item>
		<title>Editors, Conventions and Evdenevenaklederiz.biz</title>
		<link>http://www.muhuk.com/2009/01/editors-conventions-and-evdenevenaklederizbiz/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=editors-conventions-and-evdenevenaklederizbiz</link>
		<comments>http://www.muhuk.com/2009/01/editors-conventions-and-evdenevenaklederizbiz/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 21:43:32 +0000</pubDate>
		<dc:creator>Atamert Ölçgen</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[convention]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[kate]]></category>
		<category><![CDATA[pep]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.muhuk.com/?p=76</guid>
		<description><![CDATA[I went editor hunting again today. Lame, but I can&#8217;t help doing it time to time. My main editor is Kate for some time now. I use Pâté´s source browser when I am editing Python files. This is all fine for me. I love Kate. A multi-document editor and simple source inspection to jump through [...]<div><a class="addthis_button" href="//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2009/01/editors-conventions-and-evdenevenaklederizbiz/' addthis:title='Editors, Conventions and Evdenevenaklederiz.biz '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>]]></description>
			<content:encoded><![CDATA[<p>I went editor hunting again today. Lame, but I can&#8217;t help doing it time to time. My main editor is <a href="http://kate-editor.org/">Kate</a> for some time now. I use <a href="http://www.muhuk.com/2008/11/extending-kate-with-pate/">Pâté</a>´s source browser when I am editing Python files. This is all fine for me. I love Kate. A multi-document editor and simple source inspection to jump through within the current file is all I need. But it gets hung. Depending on uptime it freezes up to ten seconds. This is sad.</p>

<p>A few days back I have installed <a href="http://pythonide.stani.be/">SPE</a>. All in all, it is a nice Python oriented editor<sup>1</sup>. I have had a good experience with it working on my main project. But when I tried to switch to my <a href="http://github.com/muhuk/tms/tree">side project</a> today, it did something amazingly stupid. When you change the workspace it fails to close currently opened files, and then adds them to the other workspace. Well, maybe it was me being amazingly stupid failing to figure out how to disable this <em>feature</em>. But this is unacceptable behaviour nevertheless.</p>

<p>I tried (again) <a href="http://eric-ide.python-projects.org/">eric</a> after that. This time I didn&#8217;t panic when I saw an IDE style GUI on my screen. Eric should have done the job as well. I could have forgiven it not letting me customize the toolbars<sup>2</sup>&#8230; But <strong>it doesn&#8217;t show a static word wrap marker</strong><sup>3</sup>! How can an editor feature dynamic word wrapping but could be unable to show a static word wrap marker?</p>

<p>When I was searching for something else, I had stumbled upon<sup>4</sup> an e-mail message about <a href="http://www.kdevelop.org/">KDevelop</a>´s <em>Class Browser</em>. Did I ever mention that my searching skill is pathetic? It is. Anyway, I decided to try it out. So far so good. The class browser is not designed with Python in mind. But it is better than nothing. And the best news is the editor component is a KatePart. I&#8217;ll use KDevelop for programming and continue using Kate for other text editing, such as this one. We&#8217;ll see how it goes.</p>

<h3>Conventions: A Necessary Evil?</h3>

<p>OK, conventions are not evil at all. I have a bad habit of doing the opposite of what is <a href="http://en.wikipedia.org/wiki/Benevolent_Dictator_For_Life">dictated</a>. It would be good thing if I had stopped and made an assessment. I should change from reactive to forethoughtful. Regardless, conventions from <strong>smart people</strong> are usually the right stuff.</p>

<p>For a long time I have been thinking; &#8220;<em>why should I manually break lines, in this modern age of dynamic word wrapping</em>&#8221; until I edited a configuration file on my server with <a href="http://www.nano-editor.org/">Nano</a> and spent two hours after, trying to find out why it wasn&#8217;t working. <a href="http://www.python.org/dev/peps/pep-0008/">PEP8</a> says &#8220;<em>Limit all lines to a maximum of 79 characters.</em>&#8220;, <strong>do it</strong>. Because you can find yourself in a situation where you have to do without dynamic word wrapping and get your line breaks all messed up. Also, if you haven&#8217;t already done that; I would suggest you to take some time to read PEP8 and <a href="http://www.python.org/dev/peps/pep-0257/">PEP257</a>.</p>

<p>Another set of conventions I am interested in are <a href="http://ericholscher.com/blog/2008/dec/3/starting-django-conventions-project/">Django conventions</a>. I am in the process of splitting apps in my main project. I wasn&#8217;t planning a <a href="http://www.b-list.org/weblog/2006/sep/10/django-tips-laying-out-application/">monolytic project</a> in the beginning. But those two apps just got bigger and bigger and uglier&#8230; Now, as you can imagine; it is a painful process making them several smaller applications.</p>

<h3>Why Am I Neglecting My Blog Lately</h3>

<p>This <em>main project</em> I have been talking about from the beginning of this post is online now. You can visit here; <a href="http://evdenevenaklederiz.biz">Evdenevenaklederiz.biz</a> (in Turkish). It is a simple tool for helping you find a mover. Critics and comments are very much appreciated.</p>

<p>I will be blogging regularly again soon. 3~5 posts per month is acceptable for me. Especially if at least one of them has some valuable information in it. I am not very ambitious about blogging.</p>

<p>Since this turned out to be more like a status update I should mention one last thing; <a href="http://www.muhuk.com/2008/10/dieting-again/">my diet</a> is finished last week. Currently I am 77 kgs, less than 15% fat. I am very happy with the results. For now my goal is to stay below 80 kgs, and focus on work. <img src='http://www.muhuk.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>

<hr />

<p><strong>1</strong>: Read: pretty much useless for anything other than Python.</p>

<p><strong>2</strong>: Appereantly a newer version allows you to hide the toolbars.</p>

<p><strong>3</strong>: You know that vertical line marking the 79th (or 80th) column.</p>

<p><strong>4</strong>: No, not that <a href="http://www.stumbleupon.com">stumbling upon</a>.</p>
<div><a class="addthis_button" href="http://www.muhuk.com//addthis.com/bookmark.php?v=250" addthis:url='http://www.muhuk.com/2009/01/editors-conventions-and-evdenevenaklederizbiz/' addthis:title='Editors, Conventions and Evdenevenaklederiz.biz '><img src="//cache.addthis.com/cachefly/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div><p>Related posts:<ol>
<li><a href='http://www.muhuk.com/2011/06/pycon-apac-optimizing-media-performance-with-django_compressor/' rel='bookmark' title='My PyCon APAC 2011 Presentation: Optimizing Media Performance with django_compressor'>My PyCon APAC 2011 Presentation: Optimizing Media Performance with django_compressor</a></li>
<li><a href='http://www.muhuk.com/2011/11/working-with-files-in-django/' rel='bookmark' title='Working with files in Django &#8211; Part 1'>Working with files in Django &#8211; Part 1</a></li>
<li><a href='http://www.muhuk.com/2011/11/working-with-files-in-django-part-2/' rel='bookmark' title='Working with files in Django &#8211; Part 2'>Working with files in Django &#8211; Part 2</a></li>
</ol></p> <p><a href="http://www.muhuk.com/?flattrss_redirect&amp;id=76&amp;md5=6ee93ca236ca4bcaffc45234ce9df95b" title="Flattr" target="_blank"><img src="http://www.muhuk.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.muhuk.com/2009/01/editors-conventions-and-evdenevenaklederizbiz/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.muhuk.com/?flattrss_redirect&amp;id=76&amp;md5=6ee93ca236ca4bcaffc45234ce9df95b" type="text/html" />
	</item>
	</channel>
</rss>

