<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<feed xmlns="http://www.w3.org/2005/Atom">

	<title>Planet Compsoc</title>
	<link rel="self" href="http://planet.warwickcompsoc.co.uk/atom.xml"/>
	<link href="http://planet.warwickcompsoc.co.uk/"/>
	<id>http://planet.warwickcompsoc.co.uk/atom.xml</id>
	<updated>2012-01-27T20:00:30+00:00</updated>
	<generator uri="http://www.planetplanet.org/">Planet/2.0 +http://www.planetplanet.org</generator>

	<entry xml:lang="en">
		<title type="html">There should be more than one way to do it in Python</title>
		<link href="http://blog.entek.org.uk/?p=132"/>
		<id>http://blog.entek.org.uk/?p=132</id>
		<updated>2012-01-23T20:08:39+00:00</updated>
		<content type="html">&lt;p&gt;Python has a philosophy of &amp;#8216;There should be one&amp;#8211; and preferably only one &amp;#8211;obvious way to do it&amp;#8217; (http://www.python.org/dev/peps/pep-0020/) rather then Perl&amp;#8217;s &amp;#8216;There&amp;#8217;s more than one way to do it&amp;#8217; (Programming Perl Third Edition, Larry Wall et al.). This is great, in theory &amp;#8211; it leads to greater consistency between disparate programs and makes it easier for individual programmers to pick up someone else&amp;#8217;s code.&lt;/p&gt;
&lt;p&gt;The problem comes where the obvious way is not, for whatever reason, the practical way. For example, the obvious way to test if a string begins with another string is to use &lt;code&gt;&quot;string1&quot;.startswith(&quot;string2&quot;)&lt;/code&gt;. This is, however, significantly less performant than doing &lt;code&gt;&quot;string1&quot;[7:] == &quot;string2&quot;&lt;/code&gt; which means when doing a large number of these tests you have to use this form, despite it not being the obvious method.&lt;/p&gt;
&lt;p&gt;Unless you are familiar with Python&amp;#8217;s sequence slicing syntax (http://docs.python.org/library/stdtypes.html#typesseq) I do not find &lt;code&gt;&quot;string1&quot;[7:]&lt;/code&gt; to be obvious (even though I would expect most programmers to be able to hazard a, probably correct, guess to what it does), which means I would precede that line with a &lt;code&gt;# Check if string1 starts with &quot;string2&quot;&lt;/code&gt;. When I feel the need to comment on a specific line of code it is usually because I do not think what it is doing is sufficiently obvious, which means it violates Python&amp;#8217;s &amp;#8216;There should be one&amp;#8211; and preferably only one &amp;#8211;obvious way to do it&amp;#8217;.&lt;/p&gt;</content>
		<author>
			<name>Laurence</name>
			<uri>http://blog.entek.org.uk</uri>
		</author>
		<source>
			<title type="html">Laurence's Blog</title>
			<subtitle type="html">Possibly the most boring blog on the web...</subtitle>
			<link rel="self" href="http://blog.entek.org.uk/?feed=rss2"/>
			<id>http://blog.entek.org.uk/?feed=rss2</id>
			<updated>2012-01-23T21:00:14+00:00</updated>
		</source>
	</entry>

	<entry>
		<title type="html">Must see Steve Carell</title>
		<link href="http://mulletron.posterous.com/must-see-steve-carell"/>
		<id>http://mulletron.posterous.com/must-see-steve-carell</id>
		<updated>2012-01-16T21:58:00+00:00</updated>
		<content type="html">&lt;p&gt;
	&lt;p&gt;Since the early 1980s NBC has running a block of comedy programming on Thursday nights.&amp;nbsp; This quickly became a ratings boon for the network, with shows such as The Cosby Show, Cheers, Seinfeld, ER and Friends actually being the #1 most watched TV show for their season. There's an inherent synergy between scheduling programs like this in a block, because you get a viewership boost from the previous show.&amp;nbsp; That's right, people are actually too lazy to change the channel if there's something similar on.&lt;/p&gt;
&lt;p&gt;At its mid 90s peak the 'Must see TV' block regularly had 2 or 3 of the top 5 rated programs on television.&amp;nbsp; In the late 90s and early 2000s however, the strategy began to fail somewhat - Seinfeld, Frasier and Friends all finished their runs.&amp;nbsp; Joey was a major flop and many of the shows launched during 2004/5 failed to catch on.&amp;nbsp; Fortunately for NBC they turned things around as the noughties wore on, launching acclaimed comedy shows such as 30 Rock, Parks and Recreation, Community and, ignoring season 1, The US Office.&lt;/p&gt;
&lt;p&gt;The Office was the linchpin of this comedy block, with the highest ratings and Steve Carell being one of the most visible stars on US TV.&amp;nbsp; Unfortunately he quit the series at the end of the last season.&amp;nbsp; I was interested in figuring out what the impact of this would be on ratings, so I've calculated the difference in average ratings between the last full season of a show before steve Carell left, and the 1/2 season shown so far.&amp;nbsp; Since 30 Rock has only had 1 episode since its return, I've chosen the equivalently placed episode (first spring season episode) from the previous season.&amp;nbsp; The viewing figures are listed in millions.&lt;/p&gt;
&lt;table&gt;

&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td align=&quot;left&quot; valign=&quot;bottom&quot;&gt;Community&lt;/td&gt;
&lt;td align=&quot;left&quot; valign=&quot;bottom&quot;&gt;Parks and Recreation&lt;/td&gt;
&lt;td align=&quot;left&quot; valign=&quot;bottom&quot;&gt;The Office&lt;/td&gt;
&lt;td align=&quot;left&quot; valign=&quot;bottom&quot;&gt;30 Rock&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=&quot;left&quot; valign=&quot;bottom&quot;&gt;Before:&lt;/td&gt;
&lt;td align=&quot;right&quot; valign=&quot;bottom&quot;&gt;4.48&lt;/td&gt;
&lt;td align=&quot;right&quot; valign=&quot;bottom&quot;&gt;5.1&lt;/td&gt;
&lt;td align=&quot;right&quot; valign=&quot;bottom&quot;&gt;7.7&lt;/td&gt;
&lt;td align=&quot;right&quot; valign=&quot;bottom&quot;&gt;5.34&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=&quot;left&quot; valign=&quot;bottom&quot;&gt;After:&lt;/td&gt;
&lt;td align=&quot;right&quot; valign=&quot;bottom&quot;&gt;3.67&lt;/td&gt;
&lt;td align=&quot;right&quot; valign=&quot;bottom&quot;&gt;3.93&lt;/td&gt;
&lt;td align=&quot;right&quot; valign=&quot;bottom&quot;&gt;6.07&lt;/td&gt;
&lt;td align=&quot;right&quot; valign=&quot;bottom&quot;&gt;4.47&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align=&quot;left&quot; valign=&quot;bottom&quot;&gt;Change&lt;/td&gt;
&lt;td align=&quot;right&quot; valign=&quot;bottom&quot;&gt;-17.97%&lt;/td&gt;
&lt;td align=&quot;right&quot; valign=&quot;bottom&quot;&gt;-22.96%&lt;/td&gt;
&lt;td align=&quot;right&quot; valign=&quot;bottom&quot;&gt;-21.16%&lt;/td&gt;
&lt;td align=&quot;right&quot; valign=&quot;bottom&quot;&gt;-16.29%&lt;/td&gt;
&lt;/tr&gt;

&lt;/table&gt;
&lt;p&gt;As you can see there's a pretty significant drop in ratings across all four shows.&amp;nbsp; What's interesting is that P&amp;amp;R has a larger drop than the Office itself, whether that's due to other factors, or simply because P&amp;amp;R had less viewers to begin with is open to debate.&amp;nbsp; I have no data either way.&lt;/p&gt;
&lt;p&gt;This is somewhat relevant because Community has already been put on hiatus, with an assumption by its fanbase that it will lead to cancellation.&amp;nbsp; Parks and Recreation has very similar viewing figures, leading to concerns that it might be cancelled as well.&amp;nbsp; I'd have thought 30 Rock's acclaim being higher than the other two would lead to it continuing a little longer, but it is approaching dangerous territory ratings wise as well.&lt;/p&gt;
&lt;p&gt;There are no longer any Thursday night NBC comedy shows within the top 50 most popular US TV Shows.&lt;/p&gt;
	
&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://mulletron.posterous.com/must-see-steve-carell&quot;&gt;Permalink&lt;/a&gt; 

	| &lt;a href=&quot;http://mulletron.posterous.com/must-see-steve-carell#comment&quot;&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;</content>
		<author>
			<name>Mulletron</name>
			<uri>http://mulletron.posterous.com</uri>
		</author>
		<source>
			<title type="html">mulletron's posterous</title>
			<subtitle type="html">Most recent posts at mulletron's posterous</subtitle>
			<link rel="self" href="http://mulletron.posterous.com/rss.xml"/>
			<id>http://mulletron.posterous.com/rss.xml</id>
			<updated>2012-01-16T22:00:05+00:00</updated>
		</source>
	</entry>

</feed>

