Lurker News
Last night, I introduced my kid to programming. We'd done some stuff with Mindstorms before, but she never really caught the bug for it. But for some reason, last night when I showed her some simple Python scripting to solve math problems and write to the console, she was enthralled.

After guiding her through a few things, she took the laptop off for a while and then came back with her first program, giggling like a maniac

    you='WOW!!!'
    fart='So many poops!'
    print(you,fart)
I'm pretty proud :D

Comments (136) 58 threads

Earlier comments
WrtCdEvrydy3 replies#
.... to be honest, fart humour is pretty universal. This could be a 16 year old kid to be honest :D
nxmnxm99#
He never mentioned how old the child is. Could be 23!
racl101#
My 30 year old ex blue collar worker buddy who took up programming wrote something like this ... but it's too crude for HN.
kiliancs#
Hedy https://www.hedycode.com/ has worked very well with my kids. It starts as an extremely simple language, minimizing friction, provides good examples and exercises, and gradually adds more and more to the language. Finally, it tells you that with just a couple minor changes, you have now learned Python.
d--b1 reply#
Show her how to loop through the print statement and she’ll be hooked forever!
bombcar4 replies#
I suspect some major portion of computer programmers discovered loops via

   10 PRINT "FARTS"
   20 GOTO 10
gibspaulding#
Hah, I think one of my first computer programs I wrote on my own looked something like this:

    while (true) {
        cout << "Fuck!";
    }
jansan1 reply#
Every Commodore 64 in every department store that I went to was running that loop (but with "Hello") after I left.
Doctor_Fegg1 reply#
I got thrown out of Currys (UK electrical store) aged 11 for doing that with

10 PRINT “Welcome to Currys the electrical ripoff store”
20 GOTO 10

Continue this thread — 1 reply

dugmartin#
I did this probably too many times in Radio Shacks as a kid, using a word with one less letter (along with a space to generate a nice diagonal pattern on the screen).
SoftTalker#
Yep, pretty close to my first program on an original TRS-80.

Load more comments