<< PreviousSeptember 2007Next >>

Wednesday 19 September, 2007
#

The Bean and I had a conversation on Monday evening about computers and networks and programming, the result of which was that he jumped out of bed and started designing a game.

I spent all day in London yesterday, gone before he got up and back after he'd gone to bed, but apparently he talked of little else. This morning he claims to have woken at half past five, because he couldn't stop thinking about his game. "Can I put it on a CD?" he asked, as I bleared my way downstairs.

I decided the only way to shut him up was to give him some code to play with. Sadly it seems that QBasic has been dropped, but 2 seconds of Googling lead me to a suitable replacement.

I started with a quick multiplication table1:

10 print "Hello"
20 for i = 1 to 5
30   for j = 1 to 5
40     print i; " x "; j; " = "; i*j
50   next j
55   print "========"
60 next i 
and he, by stepwise refinement2, turned it into something else
10 print "Hello"
20 for i = 2 to 1000
30   for j = 1 to 100
40     print i; " - "; j; " = "; i+j
50   next j
55   print "========"
60 next i 
And you know what? He loved it.

1 Yes, line numbers. I'm old skool, me.
2 The kids today just naturally adopt agile methods.

Ken [e] said Did he (you?) mean i+j, or i-j ??

Mind you, better than

10 print "tosser"

20 goto 10

which we were apt to see in electrical retailers during the 80s. [added 19th Sep 2007]

Ken [e] said Oh, and Big Paul's eldest son (same age as Bean I think) recently asked me if he could make his own website. I pointed his parents at some off-the-shelf cheapo stuff, and then regailed them of the benefits of Blogger et al. He replied, "Oh no Uncle Ken, I want a chat room, mp3 previews, video downloads and some Flash gear"...

In my day we had to know how a floppy disk worked before we were allowed near the RM 380z, and you just try telling that to the kids of today etc. ;) [added 19th Sep 2007]

He did have it as
print i; " + "; j; " = "; i+j
and was mid-way through changing it to minus when I interrupted and made him come for his breakfast. [added 19th Sep 2007]

[Add a comment]