Slashdot Mirror


BASIC Computer Language Turns 40

5 REM nam37 codes
10 PRINT "In 1963 two Dartmouth College math professors had a radical"
20 PRINT "idea - create a computer language muscular enough to harness"
30 PRINT "the power of the period's computers, yet simple enough that even"
40 PRINT "the school's janitors could use it."
50 END

69 of 1,042 comments (clear)

  1. missing line by squarefish · · Score: 5, Funny

    GOTO 10

    --
    Creationists are a lot like zombies. Slow, but powerful and numerous. And they all want to eat our brains.
    1. Re:missing line by Peridriga · · Score: 5, Funny

      shouldn't that be:

      10 PRINT "First Post"
      20 GOTO 10

    2. Re:missing line by CougarCat · · Score: 5, Funny

      10 print "BASIC? Boy does that ring a..." 20 print CHR$(7) 30 goto 10

    3. Re:missing line by Triumph+The+Insult+C · · Score: 2, Funny

      50 IF STORY_SUBMITTED_PREVIOUSLY = 1 THEN GOTO editors
      60 END
      editors: GOTO 10

      --
      vodka, straight up, thank you!
    4. Re:missing line by Anonymous Coward · · Score: 2, Funny

      10 print "BASIC? Boy does that ring a..." 20 print CHR$(7) 30 goto 10

      Ah! The magic "how to get kicked out of a Radio Shack" code!

    5. Re:missing line by Triumph+The+Insult+C · · Score: 2, Funny

      only on slashdot would a joke get critiqued like this =)

      --
      vodka, straight up, thank you!
  2. A Poem! by American+AC+in+Paris · · Score: 5, Funny
    10 PRINT "This is a"
    20 PRINT "Haiku program"
    30 GOTO 10
    --

    Obliteracy: Words with explosions

    1. Re:A Poem! by YomikoReadman · · Score: 4, Funny

      10 PRINT "Not haiku" 20 PRINT "Instead, Senryu" 30 PRINT GOTO 10

      --
      I have no regrets, this is the only path.
      My whole life has been "UNLIMITED BLADE WORKS"
    2. Re:A Poem! by squidfood · · Score: 5, Funny

      Problem finally solved!...

      10 GOTO 30
      20 REM ???
      30 PRINT "PROFIT!"

    3. Re:A Poem! by Pieroxy · · Score: 4, Funny

      On a slightly offtopic note, I think slashcode should allow us to mod down our own posts. I mean, when I'm trolling or flaming, I do it knowingly (most of the time at least). If I could already mod myself down, it would be beneficial so that the moderators are not disturbed by my post. They would save their mod points to mod up interesting content instead of modding down garbage.

    4. Re:A Poem! by Dejitaru+Neko · · Score: 5, Funny

      Pu-ro-gu-ra-mu. Five syllables. :P

      --
      Nyo nyo, the Neko Boy has spoken.
    5. Re:A Poem! by Pharmboy · · Score: 4, Funny

      Interestingly, this post is modded up, while another one from two minutes earlier is modded down.

      Just goes to show you, like comedy, its all in the timing. ;)

      --
      Tequila: It's not just for breakfast anymore!
  3. They had a dream by Xel'Naga · · Score: 5, Funny

    Obviously they failed, and so they created BASIC instead.

    1. Re:They had a dream by Lane.exe · · Score: 5, Funny
      But without BASIC would we have QBASIC and that nifty gorilla-banana-chunking program?

      --
      IAALS.
    2. Re:They had a dream by Anonymous Coward · · Score: 1, Funny

      I still have that.
      I have to keep modifying the SPEEDCONST though.

  4. And now we have ... by mcx101 · · Score: 5, Funny

    ... BASIC's much acclaimed successor, Visual Basic ;-)

    --
    My operat~1 system unders~1 long filena~1 , does yours?
    1. Re:And now we have ... by nacturation · · Score: 5, Funny

      I tried Audible Basic, but it wasn't very good. Tactile Basic wasn't too bad, but please... please, for the sake of the children, stay away from Olfactory Basic.

      --
      Want to improve your Karma? Instead of "Post Anonymously", try the "Post Humously" option.
  5. Janitors are programmers too! by stienman · · Score: 5, Funny

    yet simple enough that even the school's janitors could use it

    And that, children, is where the seeds of garbage collection were sowed.

    -Adam

    1. re: janitors are programmers too! by ed.han · · Score: 2, Funny

      was that the impetus for dumpster diving? [j/k]

      ed

  6. 5 REM Testing.. by pirodude · · Score: 4, Funny

    10 PRINT "I hearby declare..."
    20 PRINT "that all comments in this story"
    30 PRINT "be typed in basic"
    40 END

    1. Re:5 REM Testing.. by Anonymous Coward · · Score: 5, Funny

      10 REM "In that case, they should be comments."
      20 END

    2. Re:5 REM Testing.. by jared_hanson · · Score: 5, Funny

      System.out.println("10 PRINT \"Hell\"");
      System.out.println("GOTO 10");

      --
      -- Fighting mediocrity one bad post at a time.
    3. Re:5 REM Testing.. by Tackhead · · Score: 5, Funny
      > 10 PRINT "I hearby declare..."
      > 20 PRINT "that all comments in this story"
      > 30 PRINT "be typed in basic"
      > 40 END

      1 PRINT "FUCK YOU"<BR>
      2 GOTO 1<BR>
      3 REM ITS BEEN 20 YEARS SINCE I DID THAT TO A VIC-20<BR>
      4 REM AND THEY STILL DONT LET ME IN THAT MALL
  7. Re:ahem by spotteddog · · Score: 2, Funny

    Obviously their arithmatic algorithm was flawed

    --
    . there used to be a sig here.....
  8. Re:ahem by pete-classic · · Score: 2, Funny

    It is notoriously easy to create off-by-one bugs in BASIC :-(

    -Peter

  9. Obligatory Dijkstra quote by Kaa · · Score: 5, Funny

    "Learning BASIC causes permanent brain damage." -- E.Dijkstra

    --

    Kaa
    Kaa's Law: In any sufficiently large group of people most are idiots.
    1. Re:Obligatory Dijkstra quote by amRadioHed · · Score: 2, Funny
      How could Dijkstra _know_ something like this without ever having gotten deep into BASIC himself (thus incurring the brain damage he talks about)?
      Dijkstra was very smart. He could easily learn enough VB to destroy 3/4 of his brain and still be savey enought to see how bad it really is.
      --
      We hope your rules and wisdom choke you / Now we are one in everlasting peace
  10. Re:ahem by djplurvert · · Score: 1, Funny

    um, how is the parent offtopic?

    In other news, slashdot submitters use a Pentium to calculate important historical dates.

    plurvet

  11. Re:I miss the simple life by nomadic · · Score: 3, Funny

    ILLEGAL FUNCTION CALL

  12. RE: FP by Anonymous Coward · · Score: 1, Funny

    10 PRINT "YOU FAIL IT!"
    20 GOTO 10

    (note to mods: this is funny; please moderate accordingly)

  13. Nostolgia by AKAImBatman · · Score: 4, Funny

    Ok, who remembers the Star Trek game from Dartmouth? You know, the one where you got to enter coordinates to move the ship to, then fire photons and phasers at Klingons? You could even consult the library computer! Failing that, who remembers coding the "trench" game?

    | * |
    | * |
    | * |
    | * |
    |* |
    | |
    | |
    *BOOM* YOU CRASHED. TRY AGAIN? [Y/N]

  14. Re:ahem by deck · · Score: 5, Funny

    10 PRINT "Concived: 1963"
    20 PRINT "Born: 1964"
    30 END

  15. Re:I miss the simple life by Anonymous Coward · · Score: 1, Funny

    Which you obviously didn't do very well. You don't even have a command in that!

  16. I would... by FrYGuY101 · · Score: 1, Funny

    I would create a witty BASIC code responce, but my mind has shunned all knowledge of BASIC from my head.

    It is practically impossible to teach good programming style to students that have had prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration. (Edsger Dijkstra)

    --
    "If we let things terrify us, life will not be worth living."

    - Seneca
  17. Re:I miss the simple life by castlec · · Score: 2, Funny

    yeah, i know, i tried to reply to the post, calling myself an idiot. apparently i'm even too stupid to reply to a post :o)

    --
    When I tell an object to delete this, am I killing it or telling it to kill me?
  18. Re:ahem by nycsubway · · Score: 5, Funny

    That is because array indexes start at 1 instead of zero. So it's really 41 years if you start from year one.

  19. Re:ahem by Anonymous Coward · · Score: 1, Funny

    Better than your spelling algorithm.

  20. Re:Edsger Dijkstra? Does not like it by RinkRat · · Score: 2, Funny
    Oy, Feeding the Troll, I know.

    No, Dijkstra has it right; there are styles one should use and styles one should not. BASIC forces you to use the latter. This must later be beaten out of you if you are to become proficient.

    Your seeming moral ambiguity about the styles one can use spring from a personal coping mechanism attemptimg to rationalize your bad habits as valid. They are not.

    Or something.

    --
    RinkRat
  21. Re:Edsger Dijkstra? Does not like it by cybermace5 · · Score: 2, Funny

    Hey, I have a great idea! Add an extension to C/C++ so you can put BASIC snippets inline. This would infuriate more than enough people, making it a worthwhile effort.

    --
    ...
  22. It feels like elementary school again by nocomment · · Score: 4, Funny

    10 ? "CmdrTaco and Kathleen stting in a tree K-I-S-S-I-N-G";
    15 ? CHR$(7)
    20 goto 10

    --
    /* oops I accidentally made a comment, sorry */
    /* http://allyourbasearebelongto.us */
  23. Re:WHY! WON'T! IT! DIE! by Anonymous Coward · · Score: 2, Funny

    WHY! WON'T! IT! DIE!

    probably because someone stuck a "goto 10" before the "end"

  24. a BASIC error by M0nkfish · · Score: 5, Funny

    10 PRINT "Happy Birthday to you"
    11 PRINT "Happy Birthday to you"
    12 PRINT "Happy Birthday dear BASIC"
    13 END

    Dammit... Missed out a line. Now I remember why I should always increment line numbers by 10.

    1. Re:a BASIC error by TomV · · Score: 4, Funny

      how about the 'more structured for no adequate reason' edition?:

      10 gosub 60
      20 gosub 60
      30 print "happy birthday dear BASIC"
      40 gosub 60
      50 end
      60 print "happy birthday to you"
      70 return

      (tested in MS Office XP VBA, will not work in vb.net as gosub has now gonesub and will not return)

  25. Today we use Bash by Anonymous Coward · · Score: 1, Funny

    [biteme@bender biteme]$ x=1; while x=1; do echo "First Post"; done
    First Post
    First Post
    First Post
    First Post
    First Post
    .
    .
    .
    .
    .

    1. Re:Today we use Bash by Jorkapp · · Score: 4, Funny

      At first I was considering having my sig in BASIC:

      10 PRINT "Jorkapp is a Programmer"
      20 GOTO 10

      but it was too - Basic. IMO, my sig in C is more 1337.

      --
      Frink: Nice try floyd, but you were designed for scrubbing, and scrubbing is what you shall do.
    2. Re:Today we use Bash by cosmo7 · · Score: 4, Funny

      I've never understood why you use a for loop for something like that and not a "while (1)". Can someone clue me in?

      while(1) sounds like the Queen talking.

  26. EdsgerDijkstra?Does not like it-Take the MONO-Rail by Anonymous Coward · · Score: 1, Funny

    "Programming should not be a straitjacket: the more options and the more different ways to do thing, the better."

    Spoken like someone who's never had to maintain a lick of code in his life.

    "Those who think that there is no place for anything like a GOTO should look at html."

    I take that back. Someone who's never coded in his life.

  27. Re:ahem by silvaran · · Score: 4, Funny

    10 PRINT "Concived: 1963"
    20 PRINT "Born: 1964"
    30 END

    25 PRINT "Spell checked: Never"
    RUN

  28. 60 PROFIT! by dpilot · · Score: 3, Funny

    Syntax Error "PROFIT!"
    -------------------^
    Command Not Found "PROFIT"

    --
    The living have better things to do than to continue hating the dead.
  29. Maximum Program Length by c0d3r · · Score: 2, Funny

    Belive it or not back in the dos 2.x with basica / gwbasic i was writing a chess program and hit the maximum line number. its 32k lines from line number 1 with each line incremented by 1. It simply told me "Out of memory"

  30. Damn! by alazar · · Score: 2, Funny

    I miss line numbers and GOTO

    --
    True friends are hard to come by... I need more money. - Calvin
  31. Obligatory AYBABTU by elrick_the_brave · · Score: 2, Funny

    5 REM AYBABTU NEVERENDING
    10 PRINT "In A.D. 2101"
    20 PRINT "War was beginning."
    30 PRINT "Captain: What happen ?"
    40 PRINT "Mechanic: Somebody set up us the bomb."
    50 PRINT "Operator: We get signal."
    60 PRINT "Captain: What !"
    70 PRINT "Operator: Main screen turn on."
    80 PRINT "Captain: It's You !!"
    90 PRINT "Cats: How are you gentlemen !!"
    100 PRINT "Cats: All your base are belong to us."
    110 PRINT "Cats: You are on the way to destruction."
    120 PRINT "Captain: What you say !!"
    130 PRINT "Cats: You have no chance to survive make your time."
    140 PRINT "Cats: HA HA HA HA ...."
    150 PRINT "Captain: Take off every 'zig' !!"
    160 PRINT "Captain: You know what you doing."
    170 PRINT "Captain: Move 'zig'."
    180 PRINT "Captain: For great justice."
    190 GOTO 5

    --
    (1st sig) If this were a snappy sig, you'd be reading it right now. (2nd sig) I'm a karma whore. >Insert FUD here
  32. And lo...... by crivens · · Score: 3, Funny

    And lo, thousands of people suddenly decided to call themselves excellent programmers!

  33. Re:From the Jargon File by sonicattack · · Score: 2, Funny

    It could still be worse... (from the Fortune database):

    THE LESSER-KNOWN PROGRAMMING LANGUAGES #10: SIMPLE

    SIMPLE is an acronym for Sheer Idiot's Monopurpose Programming Language
    Environment. This language, developed at the Hanover College for
    Technological Misfits, was designed to make it impossible to write code
    with errors in it. The statements are, therefore, confined to BEGIN,
    END and STOP. No matter how you arrange the statements, you can't make
    a syntax error. Programs written in SIMPLE do nothing useful. Thus
    they achieve the results of programs written in other languages without
    the tedious, frustrating process of testing and debugging.

  34. Re:WHY! WON'T! IT! DIE! by linuxtelephony · · Score: 2, Funny

    Odd, I thought it was because BillG only knew how to write in Basic, so the company had to keep a basic product alive so he could do some programming too.

    --
    . 62,400 repetitions make one truth -- Brave New World, Aldous Huxley
  35. shouldn't that be... by Chuck+Bucket · · Score: 3, Funny

    45 IF $ARTICLE="BASIC" GOSUB 60
    60 PRINT "COOL! I USED TO PROGRAM ON MY APPLE //e IN APPLE BASIC! I COULD MAKE BAD GRAPHICS AND ASCII ART ALL DAY WITH MY 80 COLUMN EXPANSION CARD!"
    70 GOTO 50

    CVS

  36. BASIC Sex Ed by Throtex · · Score: 5, Funny

    Don't forget to PEEK before you POKE!

  37. Whow... by Anonymous Coward · · Score: 3, Funny

    I didn't know you could insert hyperlinks into BASIC programs... Guess I missed that last update. =P

  38. Re:WHY! WON'T! IT! DIE! by bigberk · · Score: 2, Funny

    I think Microsoft's BASIC was GW-BASIC, which I was told stands for Gates, William (Bill)

  39. 1K Adventure by UdoKeir · · Score: 5, Funny

    This one used to tie people up for a few minutes...

    10 PRINT "You are in a cave."
    20 PRINT "Go N, S, E OR W?"
    30 INPUT A$
    40 GOTO 10

  40. Re:Look at all these posts. by IWannaBeAnAC · · Score: 5, Funny
    Here's a clue kiddies
    Haiku in English is dumb
    Add last line next time

    ;)

  41. 5 REM Jeez by LS · · Score: 1, Funny

    10 PRINT "What do programmers who's jobs have been outsourced do during the day?"
    20 LINE INPUT A$
    30 PRINT "Wrong, they write basic programs and post them to slashdot"
    40 END

    --
    There is a fine line between being a cultivated citizen and being someone else's crop. - A. J. Patrick Liszkie
  42. I'm a janitor! by njord · · Score: 3, Funny

    You insensitive clod!

  43. sig by dustman · · Score: 2, Funny
    I was trying to figure out where your sig is from.
    ```si`k``s.H``s.e``s.l``s.l``s.o``s.``s.w``s.o`` s. r`` s.l``s.d``s.!``sri``si``si``si``si``si``si``si``si `ki
    I am somewhat into programming language theory, and I have seen the pages of alternative languages... It looks to me like the "Hello World" program in one of the languages that just uses the primitive combinators.

    But, what is funny: I paste it into google, and it says:
    Did you mean: ```si`ks.H``s.e``s.l``s.l``s.o``ss.w``s.o``s. r`` s.l``s.d``s.!``sri``si``si``si``si``si``si``si``si `ki
    Heh... did I mean to use somewhat random-looking string of characters A, or did I really want somewhat random-looking string of characters B?
  44. BASIC? That's too newfangled for me! by wcrowe · · Score: 5, Funny
    11 FORMAT(1X,"I'M SO OLD THAT MY")
    12 FORMAT(1X,"FIRST PROGRAMMING LANGUAGE")
    13 FORMAT(1X,"WAS NOT BASIC")
    WRITE(1,11)
    WRITE(1,12)
    WRITE(1,13)

    99 STOP
    END
    --
    Proverbs 21:19
  45. My first BASIC project by bshroyer · · Score: 4, Funny

    I was one of four students in a pilot program in 4th grade (1980) wherein we learned BASIC programming (Apple II) and "New Math" (don't even get me started.)

    After learning the basics, I started my first project - a random text generator. I wanted to see if, left to its own devices, the Apple II would eventually reproduce the works of Shakespeare. Or at least, produce a few dirty words on its own.

    I spent two days coding (never having used a keyboard before, typing was arduous)
    The program went like this:

    10 A=INT(RND(1)*30) +1
    20 REM
    30 IF A=1 THEN $B="A"
    40 IF A=2 THEN $B="B"
    ...

    340 IF A=30 THEN $B="."
    350 PRINT $B;
    360 GOTO 10

    If I recall, there was no "copy" or "paste" function in the boot ROM AppleII BASIC. Typing this was hell on my 9-year-old fingers.
    The good news is, the program worked. The bad news is, after I'd finished it, the teacher showed me how to cut 29 lines out of my program using the $CHR() function. I wanted to shoot him.

    All in all, BASIC served me well. It's a great intro programming language for pre-teens.

    --
    The cure for cancer is coming: Reovirus
  46. My favorite basic program... by Xaroth · · Score: 2, Funny

    10 POKE RND(9999),RND(9999)
    20 GOTO 10

    You never knew what it would do! Sometimes nothing, sometimes it'd play music, sometimes it'd draw pictures! It was great!

  47. Stupid computer trick... by Foo2rama · · Score: 2, Funny

    Man i forgot about basic.. it is annoying that I can still write in it. 10 rem piss of teacher 20 for x= 1 to 10000 30 if x = 10000 then goto 60 40 next x 50 goto 20 60 ? (apple g) 70 goto 60 in applesoft basic apple g was a beep and ? was shorthand for print. I would write this at the end of class turn off the monitor and sometime during the next class period the computer would start beeping constantle.. wow I am a dork...

    --


    ---In a time of Chimpanzees I was a Monkey.
  48. C64 by maggern · · Score: 2, Funny

    Remembering that me and my brother sometime around 1988 (we were 10 years) typed a program from the manual into our commandore 64. In basic naturally.

    The program was pretty long (or at least we felt so) but after a while we were finally finished!

    But we couldn't figure out how to start it. We checked the manual like a 100 times, but didn't find any solution. So eventually, we had to turn it off...bummer!

    Later we learned that we just should've typed in the command "Run". :-/