Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I suspect some major portion of computer programmers discovered loops via

   10 PRINT "FARTS"
   20 GOTO 10


Hah, I think one of my first computer programs I wrote on my own looked something like this:

    while (true) {
        cout << "Fuck!";
    }


Every Commodore 64 in every department store that I went to was running that loop (but with "Hello") after I left.


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


The key was learning how to add a delay at the beginning and then the bell character in the message.


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).


Yep, pretty close to my first program on an original TRS-80.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: