<?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/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>Python coding &#8211; Greg Laden&#039;s Blog</title>
	<atom:link href="https://gregladen.com/blog/tag/python-coding/feed/" rel="self" type="application/rss+xml" />
	<link>https://gregladen.com/blog</link>
	<description></description>
	<lastBuildDate>Fri, 15 Feb 2019 01:21:05 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.8</generator>

<image>
	<url>https://i0.wp.com/gregladen.com/blog/wp-content/uploads/2017/10/Greg_Ladens_Blog_Favicon_black_GLb.png?fit=32%2C32&#038;ssl=1</url>
	<title>Python coding &#8211; Greg Laden&#039;s Blog</title>
	<link>https://gregladen.com/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">77525483</site>	<item>
		<title>Serious Python Programming</title>
		<link>https://gregladen.com/blog/2019/02/09/serious-python-programming/</link>
					<comments>https://gregladen.com/blog/2019/02/09/serious-python-programming/#comments</comments>
		
		<dc:creator><![CDATA[Greg Laden]]></dc:creator>
		<pubDate>Sat, 09 Feb 2019 16:56:14 +0000</pubDate>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[advanced python]]></category>
		<category><![CDATA[Book review]]></category>
		<category><![CDATA[Python coding]]></category>
		<category><![CDATA[Python Programming]]></category>
		<guid isPermaLink="false">https://gregladen.com/blog/?p=31559</guid>

					<description><![CDATA[Julien Danjou&#8217;s Serious Python: Black-Belt Advice on Deployment, Scalability, Testing, and More is serious. This book takes Python programming well beyond casual programming, and beyond the use of Python as a glorified scripting language to access statistical or graphics tools, etc. This is level one or even level two material. If you are writing software &#8230; <a href="https://gregladen.com/blog/2019/02/09/serious-python-programming/" class="more-link">Continue reading <span class="screen-reader-text">Serious Python Programming</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>Julien Danjou&#8217;s <a target="_blank" href="https://www.amazon.com/gp/product/1593278780/ref=as_li_tl?ie=UTF8&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1593278780&#038;linkCode=as2&#038;tag=grlasbl0a-20&#038;linkId=1b3afa8818eafa178ee2060504728f99">Serious Python: Black-Belt Advice on Deployment, Scalability, Testing, and More</a><img decoding="async" src="//ir-na.amazon-adsystem.com/e/ir?t=grlasbl0a-20&#038;l=am2&#038;o=1&#038;a=1593278780" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> is serious.</p>
<p><img fetchpriority="high" decoding="async" data-attachment-id="31561" data-permalink="https://gregladen.com/blog/2019/02/09/serious-python-programming/seriouspythoncover/" data-orig-file="https://i0.wp.com/gregladen.com/blog/wp-content/uploads/2019/02/SeriousPythonCover.jpg?fit=378%2C499&amp;ssl=1" data-orig-size="378,499" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="SeriousPythonCover" data-image-description="" data-image-caption="" data-medium-file="https://i0.wp.com/gregladen.com/blog/wp-content/uploads/2019/02/SeriousPythonCover.jpg?fit=227%2C300&amp;ssl=1" data-large-file="https://i0.wp.com/gregladen.com/blog/wp-content/uploads/2019/02/SeriousPythonCover.jpg?fit=378%2C499&amp;ssl=1" src="https://i0.wp.com/gregladen.com/blog/wp-content/uploads/2019/02/SeriousPythonCover-227x300.jpg?resize=227%2C300" alt="" width="227" height="300" class="alignright size-medium wp-image-31561" srcset="https://i0.wp.com/gregladen.com/blog/wp-content/uploads/2019/02/SeriousPythonCover.jpg?resize=227%2C300&amp;ssl=1 227w, https://i0.wp.com/gregladen.com/blog/wp-content/uploads/2019/02/SeriousPythonCover.jpg?w=378&amp;ssl=1 378w" sizes="(max-width: 227px) 100vw, 227px" data-recalc-dims="1" />This book takes Python programming well beyond casual programming, and beyond the use of Python as a glorified scripting language to access statistical or graphics tools, etc. This is level one or even level two material.  If you are writing software to distribute to others, handling time zones, want to optimize code, or experiment with different programming paradigms (i.e. functional programming, generating code, etc.) then you will find <a target="_blank" href="https://www.amazon.com/gp/product/1593278780/ref=as_li_tl?ie=UTF8&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1593278780&#038;linkCode=as2&#038;tag=grlasbl0a-20&#038;linkId=d35818f9a127a8c170e1eed120fc430c">Serious Python</a><img decoding="async" src="//ir-na.amazon-adsystem.com/e/ir?t=grlasbl0a-20&#038;l=am2&#038;o=1&#038;a=1593278780" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> informative and interesting.  Multi-threading, optimization, scaling, methods and decorators, and integration with relational databases are also covered.  (A decorator is a function that &#8220;decorates,&#8221; or changes or expands, a function without motifying i.) The material is carefully and richly explored, and the writing is clear and concise. <span id="more-31559"></span></p>
<p>An example of the kind of information in this book: Objects you create in your Python programming have to be kept track of by Python. But you might create simple objects that can&#8217;t, and don&#8217;t need to, do much. Such an object still carries with it overhead as thought the object might be asked to do more. But if it never will be, you can create a simper version of that object that is less powerful (but powerful enough) but that uses, maybe, 20% of the memory space to exist, which can add up if this is an object you need a lot of instances of.  But is that always the best solution? What if you don&#8217;t need the object to be stored with full-on meta-information, but you do want something more than the simplest possible. There is a way to do that too, so you get considerable memory savings but maybe not as much.  This book tells you how to do this.</p>
<p>Another example: Say you have a function that does nothing but return a single value, and you use it a lot. But, the value you send it, while it varies across the use of the program (otherwise you wouldn&#8217;t have a function, most likely) it is often the same.  You are computing a simple conversion, but over several thousand conversions, there are only a few hundred possible values you ever actually convert.  Wouldn&#8217;t it be great to have the ability to cache the results of a function, so if the same thing is asked of it again, it simply returns the previously calculated value rather than re-doing what it just did? Well, you can do that, it is in this book.</p>
<p>This is a great advanced Python book. To give you a better idea if it is good for you, specifically, here is the TOC:</p>
<p>Chapter 1: Starting Your Project<br />
Chapter 2: Modules, Libraries, and Frameworks<br />
Chapter 3: Documentation and Good API Practice<br />
Chapter 4: Handling Timestamps and Time Zones<br />
Chapter 5: Distributing Your Software<br />
Chapter 6: Unit Testing<br />
Chapter 7: Methods and Decorators<br />
Chapter 8: Functional Programming<br />
Chapter 9: The Abstract Syntax Tree, Hy, and Lisp-like Attributes<br />
Chapter 10: Performances and Optimizations<br />
Chapter 11: Scaling and Architecture<br />
Chapter 12: Managing Relational Databases<br />
Chapter 13: Write Less, Code More</p>
<p>Author Julien Danjou is a Principal Software Engineer at Red Hat and a contributor to OpenStack, the largest existing open source project written in Python. He has been a Free Software and Open Source hacker for the past 15 years.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://gregladen.com/blog/2019/02/09/serious-python-programming/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">31559</post-id>	</item>
		<item>
		<title>Mission Python Video Game</title>
		<link>https://gregladen.com/blog/2018/11/04/mission-python-video-game/</link>
					<comments>https://gregladen.com/blog/2018/11/04/mission-python-video-game/#respond</comments>
		
		<dc:creator><![CDATA[Greg Laden]]></dc:creator>
		<pubDate>Sun, 04 Nov 2018 22:30:58 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Game coding]]></category>
		<category><![CDATA[Learning coding]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Python coding]]></category>
		<guid isPermaLink="false">https://gregladen.com/blog/?p=30814</guid>

					<description><![CDATA[&#8230;and book! Mission Python: Code a Space Adventure Game! by Sean McManus, is a book that guides a novice through python programming, and in the end, they get a pretty good video game for free. You can actually download the Python code and have the game without learning anything beyond how to download then run &#8230; <a href="https://gregladen.com/blog/2018/11/04/mission-python-video-game/" class="more-link">Continue reading <span class="screen-reader-text">Mission Python Video Game</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>&#8230;and book!</p>
<p><a target="_blank" href="https://www.amazon.com/gp/product/1593278578/ref=as_li_tl?ie=UTF8&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1593278578&#038;linkCode=as2&#038;tag=grlasbl0a-20&#038;linkId=c7f097c0ad7a3cb177d74607b2a21fed">Mission Python: Code a Space Adventure Game!</a><img decoding="async" src="//ir-na.amazon-adsystem.com/e/ir?t=grlasbl0a-20&#038;l=am2&#038;o=1&#038;a=1593278578" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> by Sean McManus, is a book that guides a novice through python programming, and in the end, they get a pretty good video game for free.<span id="more-30814"></span></p>
<p><img loading="lazy" decoding="async" data-attachment-id="30816" data-permalink="https://gregladen.com/blog/2018/11/04/mission-python-video-game/missionpython_cover-front_new-1/" data-orig-file="https://i0.wp.com/gregladen.com/blog/wp-content/uploads/2018/11/missionpython_cover-front_new-1.png?fit=504%2C666&amp;ssl=1" data-orig-size="504,666" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="missionpython_cover-front_new (1)" data-image-description="" data-image-caption="" data-medium-file="https://i0.wp.com/gregladen.com/blog/wp-content/uploads/2018/11/missionpython_cover-front_new-1.png?fit=227%2C300&amp;ssl=1" data-large-file="https://i0.wp.com/gregladen.com/blog/wp-content/uploads/2018/11/missionpython_cover-front_new-1.png?fit=504%2C666&amp;ssl=1" src="https://i0.wp.com/gregladen.com/blog/wp-content/uploads/2018/11/missionpython_cover-front_new-1-227x300.png?resize=227%2C300" alt="" width="227" height="300" class="alignright size-medium wp-image-30816" srcset="https://i0.wp.com/gregladen.com/blog/wp-content/uploads/2018/11/missionpython_cover-front_new-1.png?resize=227%2C300&amp;ssl=1 227w, https://i0.wp.com/gregladen.com/blog/wp-content/uploads/2018/11/missionpython_cover-front_new-1.png?resize=500%2C661&amp;ssl=1 500w, https://i0.wp.com/gregladen.com/blog/wp-content/uploads/2018/11/missionpython_cover-front_new-1.png?w=504&amp;ssl=1 504w" sizes="(max-width: 227px) 100vw, 227px" data-recalc-dims="1" />You can actually download the Python code and have the game without learning anything beyond how to download then run a Python program.  You can not download anything, and follow the book through all the stages of development, making the occasional and learning from your mistake. Or, you can download the code, and do a combination of entering it yourself, cutting and pasting, and slowly building up the program, for a less frustrating (frustrations caused by your typos) yet very educational experience.</p>
<p>(Also, the game uses sounds that you can download from the same source as the source code.)</p>
<p>The code is actually remarkably short given the complexity of the game. As the reader develops the game, they are guided through the process of understanding what the various code blocks do.  Someone who goes through the book pretty carefully, and works with the code though most of it, will get a basic understanding of how to use Python to write other programs.</p>
<p>The book sues Pygam Zero, which is a graphics and sound library.</p>
<p>Since this is Python, it works on all the usual platforms.</p>
<p>Here is a video of the game:</p>
<p><iframe loading="lazy" width="560" height="315" src="https://www.youtube.com/embed/_2aglIeW1kQ" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></p>
<p>This is a fun book, and though I&#8217;ve not completed the process of making the game, I have worked through quite a bit of it.  This is a good way to learn Python, in my opinion. Might make a great holiday gift for a gifted younun&#8217; looking to up their game in coding games.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://gregladen.com/blog/2018/11/04/mission-python-video-game/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">30814</post-id>	</item>
	</channel>
</rss>
