December 2012

S M T W T F S
      1
2345678
9101112131415
16 171819202122
23242526272829
3031     

Style Credit

Expand Cut Tags

No cut tags

December 27th, 2003

myz_lilith: (Default)
Saturday, December 27th, 2003 08:00 am
Funny kind of update, i know... but:

Was talking to my (Silicon Valey geniius)brother, who was going to brief me on various stages of c. Turned out that I actually remember 90% of modren day computing from when I was 4 as:

1) It can't actually change as it all comes down, eventually, to something = 1 or 0 (whatever spin you put on it, computing today is punchcards but facter... as is the brain... all of life comes down to the rizla game... )
(I always won it)

2) It's all either "X = (CONDITION\STATEMNT)" and\or "If X is... um... x then do x... if not do y" which I learnt (and did) when I was 5. Which makes me think of all the human languages I speak where the trick is not getting them to understand you, but understanding them in return. Which I'm starting to think I might be able to do...

Anyway, onto the next one...
myz_lilith: (Default)
Saturday, December 27th, 2003 08:09 am
Wrote this in the past 10 mins.

As far as I can recall, it would actually work for a spccy.

However, that was long long ago in a galaxy far far away.

So...

corrections?


Spot the bugs in the code... please:

10 Let X = 10
20 For X = 10 to 3 goto 30; else goto 120
30 print x" green bottles, standing on the wall"
40 print x" green bottles, standing on the wall"
50 print "and if one green bottle should accidently fall"
60 print "There'll be "(x-1)" green bottles, standing on the wall"
70 let x=x-1
80 goto 20
120 For X = 2 goto 130; else goto 220
130 print x" green bottles, standing on the wall"
140 print x" green bottles, standing on the wall"
150 print "and if one green bottle should accidently fall"
160 print "There'll be "(x-1)" green bottle, standing on the wall"
170 let x = x-1
180 goto 120
220 For x = 1 goto 230; else goto 300
230 print x" green bottle, standing on the wall"
240 print x" green bottle, standing on the wall"
250 print "and if one green bottle should accidently fall"
260 print "There'll be no green bottles, standing on the wall"
261 print " "
262 print "Thankyeaueiuowaiouuwverwymuch"
263 print " "
270 let x = x-1
280 goto 220

300 end


((Specifically, I can't remember if "let x =" needs some quotation marks... but mainly as I'm talking in a language I haven't spoken for nearly 20 years would like to know if anyone else can deny or confirm...))

(((also is "end" a correct and necessary command or superfluous?))))

Thanks for helping, and equally thanks for pretending you never saw this (I have a rep after all...)