Developing *in* the Browser

For various reasons I’ve been experimenting with services that allow students to develop *and run* code in the browser.

Continue reading


Scraping the Flood (or another reason to code)

The River Thames has spilled into the flood plain (which is what flood plains are for) and the local footpaths now look like this:

Thames flooding between Benson and Wallingford

Being generally inquisitive, and also wondering when I’ll be next able to walk into Wallingford, it would be useful to know whether the river is rising or falling. Is there an easier way that walking down to the river every couple of hours with a depth gauge?

Continue reading

To code with Python in 3 steps

There’s loads of resources on the net for learning to code with Python. These three are my recommendations.

  1. Codecademy Python track: sign up (free) with Codecademy and learn Python piece-by-piece.
  2. Learn Python The Hard Way: using the online HTML book (or spend $$ for extras).
  3. Project Euler: set yourself some of the challenges from Project Euler.

[Update: 06 Jan 2013]

Here’s #4:

Fizz Buzz

@danielstucke asked for little programming tasks around conditionals and loops.

I suggested the Fizz Buzz challenge.

is a group word game frequently encountered as a drinking game. Players take turns to count incrementally, replacing any number divisible by three with the word “fizz”, and any number divisible by five with the word “buzz”.

Before reading on, try it. Go on, write some code that plays Fizz Buzz.

Continue reading