Tonight, I watched Al Gore’s film-cum-presentation, An Inconvenient Truth (currently showing at the Tyneside Cinema). In it, he:
As you might expect, it’s a heavily biased presentation. On occasion, non-sequiturs creep in and are quickly left behind. Throughout the presentation, graphs are used whose axes don’t begin at zero (not necessarily a problem, but it can be misleading). Where case studies were cited, there often wasn’t consideration given to the possible existence of opposite cases (e.g. retreating vs. advancing glaciers).
Despite all this, however, there was one graph that stood out a mile for me. It showed atmospheric CO2 levels over the course of thousands of years; hundreds of thousands, I think. (The data itself was purportedly taken from air trapped in the polar ice caps.) Within that timeframe, levels varied, clearly showing ice ages and so forth. Right at the end, however, the plot climbed steeply outside the bounds of its previous levels. No doubt some statistician would be able to say something interesting about standard deviations and so forth, but I just looked at it and thought “Shit!”
So, if that’s the kick up the backside I need to take action, what can I do and will it be enough? Well, I might not be able to answer the second question, but I can answer the first. I can vote: both as a citizen living in a democratic state and as a consumer. The former is easy. The latter will take willpower — lots of it. As much as it pains me, I’m wondering whether it’s time I gave up the fast cars... :(
Hey kids! Not happy with your healthier school dinners? Here’s an idea: get your mums to go to the chippy for you! What dedication to a child’s needs! They really are super mums.
I coded something the other day that got me thinking, primarily because I wasn’t satisfied with my solution. The dialog class in which I was working needed to make some changes to a couple of its controls. I added a new private method to make those changes and then coded away.
When done, I noticed I’d coded the same thing twice in the new method: once for each control. So, being a diligent refactorisor, I factored the duplication out to another private method and just called that for each control. Now, however, I had a private method that really shouldn’t be called from anywhere but another, specific private method.
This felt bad. I didn’t want other client code to mistakenly call the second method, as it logically belonged to the first method. At least, it did in my head. The second method’s existence only really made sense in the context of the first one. What to do? The following options fluttered into my head:
I read an article by Herb Sutter that converted the whole shebang into a functor, but it just looked too damn obscure. Anyone reading the resulting code would no doubt blurt a swift “WTF?”. Overkill, for sure.
In the end, I went with the second option above. Normally, I might’ve gone with the new class option, but in this case, I needed to avoid adding new files to the project (and that’s another story). I’m still not sure I did the right thing. What approach would you have taken?
I went swimming yesterday for the first time in 15 or 16 years. It’s not how I remember it. I remember it being easy. Effortless, even. Yesterday, however, I simply splashed about in a desperate attempt to keep my head above water. Just hauling myself from one end of the pool to the other seemed to take an age. I used to be good at this stuff, dammit. Now I just ache.
With enough practice, though, I might at least regain some kind of fitness. Provided I can maintain the motivation, that is...
April 2002 May 2002 June 2002 July 2002 August 2002 September 2002 October 2002 November 2002 December 2002 January 2003 February 2003 March 2003 April 2003 May 2003 June 2003 July 2003 August 2003 September 2003 October 2003 November 2003 December 2003 January 2004 February 2004 March 2004 May 2004 June 2004 July 2004 August 2004 September 2004 October 2004 November 2004 December 2004 January 2005 February 2005 March 2005 April 2005 May 2005 June 2005 July 2005 August 2005 September 2005 October 2005 November 2005 December 2005 January 2006 February 2006 March 2006 April 2006 May 2006 June 2006 July 2006 August 2006 September 2006 October 2006 November 2006 December 2006 January 2007 February 2007