<?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>class BrianYamabe extends Journeyman implements SoftwareDeveloper { &#187; Python</title>
	<atom:link href="http://brianyamabe.com/category/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://brianyamabe.com</link>
	<description>public Blog documentDevelopment(Passion passion) {</description>
	<lastBuildDate>Sun, 05 Feb 2012 04:39:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Python vs. Ruby</title>
		<link>http://brianyamabe.com/2010/02/17/python-vs-ruby/</link>
		<comments>http://brianyamabe.com/2010/02/17/python-vs-ruby/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 15:11:51 +0000</pubDate>
		<dc:creator>byamabe</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://brianyamabe.com/?p=45</guid>
		<description><![CDATA[I found this really enlightening post and presentation on Python vs. Ruby from a Python guy, Gary Bernhardt. Gary first talks about some features of Ruby that violate the &#8220;Zen of Python.&#8221; He only presents 5 violations, but you can see for yourself that Ruby does violates most of this &#8220;Zen.&#8221; Then Gary goes on [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I found this really <a href="http://blog.extracheese.org/2010/02/python-vs-ruby-a-battle-to-the-death.html">enlightening post</a> and <a href="http://vimeo.com/9471538">presentation</a> on Python vs. Ruby from a Python guy, Gary Bernhardt. Gary first talks about some features of Ruby that violate the &#8220;<a href="http://www.python.org/dev/peps/pep-0020/">Zen of Python</a>.&#8221; He only presents 5 violations, but you can see for yourself that Ruby does violates most of this &#8220;Zen.&#8221; Then Gary goes on to discuss he likes about Ruby, namely RSpec and Cucumber. Then he points out that these cool packages are possible because Ruby allows you to violate the &#8220;Zen of Python.&#8221; It is the very thing that he dislikes that makes the things he likes possible!</p>
<p>After watching the presentation, I have pretty much the exact same feelings as the presenter and yet, as of now, I&#8217;d rather work in Ruby. I love the ideals of Python especially &#8220;one obvious way to do it&#8221; which is not at all the case with Ruby. I can&#8217;t stand the idea that a framework is mucking with the base functionality of the language behind my back like Rails does. But these are the very influences that have lead to a Ruby community that focuses on BDD which in practice is what I enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://brianyamabe.com/2010/02/17/python-vs-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Just Trying to Test Leads to Cleaner Code</title>
		<link>http://brianyamabe.com/2009/10/27/just-trying-to-test-leads-to-cleaner-code/</link>
		<comments>http://brianyamabe.com/2009/10/27/just-trying-to-test-leads-to-cleaner-code/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 16:45:01 +0000</pubDate>
		<dc:creator>byamabe</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Google App Engine]]></category>
		<category><![CDATA[Law And Gospel]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://brianyamabe.com/?p=34</guid>
		<description><![CDATA[As I mentioned in my last post, I&#8217;ve been trying to get some unit testing going so that I can keep focused and gain a higher level of comfort with the code I&#8217;m writing. I started by trying move a business method that had crept into the model and put it in its own business [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>As I mentioned in my last post, I&#8217;ve been trying to get some unit testing going so that I can keep focused and gain a higher level of comfort with the code I&#8217;m writing. I started by trying move a business method that had crept into the model and put it in its own business class. To test the new business class I tried to use <a href="http://www.voidspace.org.uk/python/mock/">Mock</a> to imitate the behavior of the data model, but I couldn&#8217;t find a way to get it to mimic the behavior of a Query object which is both indexed and has methods on it. I did learn that Django fixtures were supported by app-engine-patch. In fact, I learned that most of the ./manage.py functionality works. I had incorrectly assumed that app-engine-patch only allowed you run a Django app on App Engine server, not that it could be used like standard Django. After writing a test for the new business class, I created a fixture to support the test. Well, the test kept failing even though it should have passed. I did some digging, and it seems that the models in the fixture that have relationships aren&#8217;t getting loaded. I&#8217;ve got a question out to the list to see if this is actually the case, but I can&#8217;t think of another explanation.</p>
<p>So, I didn&#8217;t actually get any unit tests working, but while writing the test I noticed that there were model classes in my view as well as the database classes in my controller and business logic in my models. So now I&#8217;ve got it all cleaned up and the code appears to be working (no tests though). I keep seeing what kind of tests I can write and maybe someone will fix the problem with models with relationships in fixtures.</p>
]]></content:encoded>
			<wfw:commentRss>http://brianyamabe.com/2009/10/27/just-trying-to-test-leads-to-cleaner-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>That Was Short Lived</title>
		<link>http://brianyamabe.com/2009/09/04/that-was-short-lived/</link>
		<comments>http://brianyamabe.com/2009/09/04/that-was-short-lived/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 19:03:32 +0000</pubDate>
		<dc:creator>byamabe</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Google App Engine]]></category>
		<category><![CDATA[Lift]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Scala]]></category>

		<guid isPermaLink="false">http://brianyamabe.com/?p=14</guid>
		<description><![CDATA[I started working through the Lift getting started guide and other documentation and I&#8217;ve come to the conclusion that a lot of the benefits of using Lift aren&#8217;t applicable to the project. The project is a Facebook app and I have a little experience writing those with Django and Google App Engine. All the nice [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I started working through the Lift getting started guide and other documentation and I&#8217;ve come to the conclusion that a lot of the benefits of using Lift aren&#8217;t applicable to the project. The project is a Facebook app and I have a little experience writing those with Django and Google App Engine. All the nice CRUD, AJAX, JSON, Comet, etc. integration isn&#8217;t going to help me. Also, there aren&#8217;t a whole lot of examples of using Lift with Facebook. In fact, my biggest concern with using Lift would be the lack of documentation. There is &#8220;<a href="http://groups.google.com/group/the-lift-book">The Lift Book</a>&#8221; but this is more a guide to what Lift can do and how to do it. There are a few tutorial floating around, but the ones I found were out of date and incomplete. I&#8217;ve come to realize that I learn best by working through examples and there just aren&#8217;t enough of those to make me want to move forward with Lift.</p>
<p>I&#8217;ve decided to go with Django on Google App Engine for this project. It&#8217;s somewhat familiar ground and will allow me to focus more on building the app rather than learning a framework and language. Although I&#8217;m not well versed enough in Django, Python, Google App Engine, and Facebook to believe I won&#8217;t learn a whole lot.</p>
]]></content:encoded>
			<wfw:commentRss>http://brianyamabe.com/2009/09/04/that-was-short-lived/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

