Date : Fri, 07 Dec 2012 10:41:42 +0000
From : beeb@... (Kris Adcock)
Subject: Granny's Garden
Morning gents!
I meant to pass this link around t'other week, but I've been dying of
man-flu:
http://www.danceswithferrets.org/meeblog/?p=1757
I imagine all you guys have already completed Granny's Garden, but for
me it was quite important to finish off something that I started in
primary school. :)
On a related note: on writing the above, I looked through the BASIC
listing for GG to see if there was any rhyme or reason to many of the
puzzles (it turns out there isn't, but there was still some interesting
reading).
I was quite shocked to discover that the code is really quite dreadful!
There is an unhealthy mix of GOTOs and PROCs, no use of FNs when they
would have been a much more elegant solution, and a fair few dirty
tricks to clean-up the stack (which leaks like buggery thanks to all the
PROCs-and-GOTOs).
But I was just wondering: were FNs and multi-line IFs only added to
later versions of BASIC? This might explain some of the programmer's
choices ... or was it just that he didn't know about them?
So far I'm resisting the urge to rewrite it all. I think after thirty
years, that ship has sailed. :)
All the best,
Kris Adcock