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

1,042 comments

  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 karmawarrior · · Score: 0, Troll
      BASIC is a wonderful thing. My first memories of programming were on a VIC 20, and it had a BASIC programming environment that was one of the best (you could actually cursor up the screen and edit lines you'd just listed.) I moved on to various Sinclair machines and then bought my first computer that didn't have a native BASIC interpreter, the Amiga. Much as I loved the latter, in some ways the fun in computing started to die out as more and more computers came without programming tools, and those that came with them came with tools that were far removed from the fun stuff we all did on our 6502/Z80/6809 based machines.

      I wonder, in some ways, if computing has been harmed by the removal of interpreters. Even when MSDOS came with QBASIC, BASIC programs became very much second class citizens in that environment. The fun and accessability has been removed from programming. Some of it is there in environments like Python under Linux, but even then there's a complexity and obscurity attached. It's not like the VIC 20, with its blinking cursor and "READY." prompt. You have to know the interpreter is there. You have to find it. You then have to go through a range of hurdles to know what it is capable of.

      And in some ways, the lack of simplicity of environments like Python is harmful too. Much of the fun of programming was learning how to do amazing things at a relatively low level. Now languages are so complex, and libraries so relied upon, I'd venture to say most programmers do not understand how their programs will run, that something as simple as a change of data structure might make their program run 10,000% faster. Hashing? Sorting? Let the interpreter do it. That stuff's "too hard".

      How do you make programming fun as long as we make computers complex? I'm not sure we can. And our computers will become steadily more complex, because increasingly the only people who program will be those with little love of the art. Those who think that a Python library is an adequate substitute for understanding. Just as society has moved to a "condemn, never understand" approach, so has programming moved to a "just get the job done, don't understand the results or the reasons" approach. This is wrong, but it's a vicious circle.

      This quagmire of programming become more serious and more unnecessarily complex as the unnecessary complexities drives talented would-be "real" programmers out will not disappear by itself. Resources need to be devoted, and unless people are prepared to actually act, not just talk about it on Slashdot, nothing will ever get done. Apathy is not an option.

      You can help by getting off your rear and writing to your congressman or senator. Tell them that programming is important to you. Tell them that you appreciate the work being done by Guido to create a more modern alternative to BASIC that is accessable to even the most Texan village idiot, but that if computers are not made fun again you will be forced to use less and less secure and intelligently designed alternatives. Let them know that SMP may make or break whether you can efficiently deploy OpenBSD on your workstations and servers. Explain the concerns you have about freedom, openness, and choice, and how the lack of a computer that boots into a READY prompt, ready for programming, harms all three. Let them know that this is an issue that effects YOU directly, that YOU vote, and that your vote will be influenced, indeed dependent, on their policies on bringing back home computers.

      You CAN make a difference. Don't treat voting as a right, treat it as a duty. Keep informed, keep your political representatives informed on how you feel. And, most importantly of all, vote.

      --
      KMSMA (WWBD?)
    5. Re:missing line by uberdave · · Score: 1

      Your program won't work. When line 50 is executed editors=0, but you have no line zero.

    6. Re:missing line by Anonymous Coward · · Score: 0

      That and I don't think you could have variable names longer than two characters in the early versions of BASIC.

    7. Re:missing line by vslashg · · Score: 1

      I need to add some edits to your code.

      15 GOSUB 1000
      1000 PRINT "You fail it!"
      1010 RETURN

    8. Re:missing line by CRCulver · · Score: 3, Informative

      While I agree with the parent poster that programming shouldn't be fun again, please take a look at his posting history and notice that all his posts are the same, some lines that are barely on-topic, and then a final paragraph, each time slightly reworded, that exhorts readers to write to their congressmen. It is unfortunate that such attempts for karma-whoring are consistently modded-up.

    9. Re:missing line by override11 · · Score: 1

      Try Coldfusion. Its based on HTML, all tag based, and its relativly easy to learn once you get the hang of it. You can tie into COM objects, talk to any ODBC DB (and some others), and do anything that HTML can do (or flash, or java, etc.) check it out, I make a living with it. :)

      --
      No I didnt spell check this post...
    10. Re:missing line by rsidd · · Score: 2, Insightful
      Congratulations on the well-written troll. Some people may have taken you seriously until the congressman bit. Some people may have taken that seriously too. Anyway,

      And in some ways, the lack of simplicity of environments like Python is harmful too. Much of the fun of programming was learning how to do amazing things at a relatively low level. Now languages are so complex, and libraries so relied upon, I'd venture to say most programmers do not understand how their programs will run, that something as simple as a change of data structure might make their program run 10,000% faster. Hashing? Sorting? Let the interpreter do it. That stuff's "too hard".

      Yes, like we all understand what a 10 PRINT "HELLO" actually does behind the scenes.

    11. Re:missing line by ajs318 · · Score: 3, Informative

      On a Spectrum or BBC micro, you will get a "no such variable" error -- the British BASIC dialects tended to prefer to crash out rather than silently assign 0 to variables on first reading. Although, "X = X + 1" will still work without predefining X, because the interpreter creates a variable X as soon as it sees it on the left-hand side of an assignment. Spectrum BASIC expected every statement to start with a keyword (verb), accessed by pressing a letter key, and so had to introduce "LET" for assignments -- "X = 1" would have to be written "LET X = 1" on the Spectrum because if you pressed X when a keyword was expected, you would get CLEAR.

      --
      Je fume. Tu fumes. Nous fûmes!
    12. Re:missing line by bhtooefr · · Score: 1
      Confirmed (at least in Applesoft BASIC, which is a variant of Microsoft BASIC):
      ]10 ABC = 10

      ]20 ABZ = 20

      ]30 ? ABC

      ]40 ? ABZ

      ]RUN
      20
      20

      ]_
    13. Re:missing line by Dr.+Smeegee · · Score: 1

      So is this a macro or an actual stand alone madlib?

    14. 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!

    15. 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!
    16. Re:missing line by ReelOddeeo · · Score: 1

      I hope this is not typical of the code quality of Slashdot programming? There is going to be a runtime error the second time that line 1010 is reached.

      --

      Those who would give up liberty in exchange for security and DRM should switch to Microsoft Palladium!
    17. Re:missing line by Anonymous Coward · · Score: 0

      I do

      If you don't know ASM, you're not a real programer.

    18. Re:missing line by aidan+folkes · · Score: 1
      Try Coldfusion. Its based on HTML, all tag based, and its relativly easy to learn once you get the hang of it. You can tie into COM objects, talk to any ODBC DB (and some others), and do anything that HTML can do (or flash, or java, etc.) check it out, I make a living with it. :)

      You can also create some quite wonderful memory leaks with it.
      I used to make a living with it, now moved on to asp.net, a whole new way to create memory leaks :-)

    19. Re:missing line by Sj0 · · Score: 1

      I was going to mention that later versions don't have that, but then I realized that later versions don't have line numbers either...well...not if you're half way competent. :)

      --
      It's been a long time.
    20. Re:missing line by Lemmeoutada+Collecti · · Score: 1

      Here, that makes a good oner liner

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

      Enjoy *runs screaming*

      --

      You can have it fast, accurate, or pretty. Pick any 2.
    21. Re:missing line by blowhole · · Score: 1

      Look carefully at the line numbers and also those of the parent post. 10 20 15?

      --
      "Ask me about Loom"
    22. Re:missing line by Anonymous Coward · · Score: 0

      Another one who can't tell the difference between a long signature and a troll. *sigh*

    23. Re:missing line by metlin · · Score: 1

      Yes, like we all understand what a 10 PRINT "HELLO" actually does behind the scenes.


      Heh! I just came back from a gruelling day of interviews at Microsoft today.

      And one of the guys *actually* asked me to implement virtual functions, multiple inheritance and multiple inheritance in C - from scratch.

      Will you hash your virtual function references or will you use a graph? How will you optimize the use of virtual functions for instantiated objects through references, tagging of function space within the memory segments and the like.

      The worst part is that this guy knew it all, and could tell you stuff on the top of his head.

      So, you just might be surprised :) I know I was, and not so pleasantly, either!

    24. Re:missing line by Anonymous Coward · · Score: 0

      You for forgot

      15 print ^g

    25. Re:missing line by E_elven · · Score: 1

      >And one of the guys *actually* asked me to implement virtual functions, multiple inheritance and multiple inheritance in C - from scratch.

      Ah. This is the question where, instead of actually attempting to solve it, you are supposed to ask 'why'?

      --
      Marxist evolution is just N generations away!
    26. Re:missing line by Tribbles · · Score: 1

      BBC BASIC performs the silent assignment, but Spectrum/ZX8* probably does not (I was a BBC person, not a Sinclar chappie).

    27. Re:missing line by mrjb · · Score: 1

      Also, the LET keyword (especially when stored tokenized) is a nice way to more efficiently distinguish between identifiers and language keywords. If LET is obligatory, such as in some old BASIC versions, the word following LET is always an identifier. As most early BASICs were interpreters rather than compilers, this really helped speed up interpretation.

      Of course, at some point a lot of BASIC interpreters/editors adapted the concept of tokenizing/pre-parsing entered lines during input, rather than during the interpretation stage. The benefits were obvious: Tokenized code costs less space to store, and after pre-parsing the code once, the need for LET was no longer there.

      --
      Visit http://ringbreak.dnd.utwente.nl/~mrjb/growingbettersoftware to download your free copy of the book
    28. Re:missing line by BlackHawk-666 · · Score: 1

      This is the sort of stuff you should know to interview for a position writing compilers but is definitely over the top for putting together web pages and the like. Out of interest, what position were you interviewing for?

      --
      All those moments will be lost in time, like tears in rain.
    29. Re:missing line by ajs318 · · Score: 1

      I'm sure I tried it on both BBC and Spectrum. I never had a ZX80, just an '81 and then a Beeb; later, I picked up a spectrum on the cheap, just to experiment with the Z-80 really. I can't remember for certain but I think I tried LET X = X + 1 and it worked. Thing is, you have already mentioned X = ....., so it has gone and created the variable if one didn't exist before, before it gets as far as reading its value. But maybe the ZX81 would have thrown an error at that, otherwise someone would have used LET Z = Z as a way of initialising a variable to zero without introducing a numeric literal {which required a whopping 6 bytes out of the 800-or-so available; 1 byte for the "numeric literal" token plus 5 bytes for the 40-bit floating point representation. 1K ZX81 programmes were always full of expressions such as SIN PI (== 0), SGN PI (== 1), COS PI (== -1), INT PI (== 3) and the like. Functions, including the argument-less function PI are tokenised and so only occupy one byte. Even writing VAL "10" saves one byte, which might make the difference between OK and an out-of-memory error.}

      ZX81 and Spectrum also used slightly different numeric representations internally; the ZX81 represented zero as anything with an exponent of -128 {though it also zeroed the mantissa digits for neatness}. The Spectrum used the fact of there being 2**32 ways of writing zero to allow an alternative sign-and-magnitude representation for integers in the range -65535 to +65535. Also, Spectrum used ASCII {but slightly modified, with a pound sign in position 96 and a copyright sign in position 127}, while ZX81 had a special charset of its own.

      I just know now that I'm going to be spending the whole weekend looking for and mucking about with emulators for all my beloved old 8-bit machines.

      --
      Je fume. Tu fumes. Nous fûmes!
    30. Re:missing line by Anonymous Coward · · Score: 0

      Astroturfer. Judging by the number of people accused of astroturfing on Slashdot, I figured it must be a growth industry.

    31. Re:missing line by karmawarrior · · Score: 1
      Congratulations on the well-written troll
      Congratulations on your own. Judging from how my original was modded, obviously people fell for yours.
      Yes, like we all understand what a 10 PRINT "HELLO" actually does behind the scenes
      Well, I have a pretty good idea (it depends on the machine/OS of course, but...)

      In any case, BASIC instructions are at a low enough level for this kind of thing to be a non issue. What PRINT does is take the arguments and send them to the operating system without further ado. You can't get much lower level than that.

      Compare that to, say, a library that maintains an indexed database or that accesses ZIP files, or something as simple as a sort.

      --
      KMSMA (WWBD?)
    32. Re:missing line by An+ominous+Cow+art · · Score: 1

      Hhe, reminds me of a trick I used to do on Apple ][ computers sometimes in my less well socially adjusted days. It went something like this:

      CALL -151 to get into the machine language monitor

      Enter a 10-or-so byte program that would, in a loop, load the accumulator with the contents of a particular zero page address that was constantly changing, call the function that prints a character to the screen ($FDED, which used the accumulator for the character), then referenced the location which clicked the speaker ($C030?), then jumped back to the beginning. The screen filled with scrolling garbage and the speaker emitted an annoying buzz.

      Ah, good times. I don't recall the exact code anymore, but if I had to guess, it was something like:

      a9 00 20 ed fd a0 30 c0 4c 00 03

    33. Re:missing line by metlin · · Score: 1

      I was interviewing for a Software Design Engineer, and this was their system's group working on optimizing and manage generated code.

      Funnily, this isn't one of my core areas, but I guess the guy assumed that since am into AI, I should know this stuff.

    34. Re:missing line by metlin · · Score: 1

      Well, given the position I was interviewing for (SDE), he assumed that I ought to know this stuff or atleast be able to solve this stuff on the fly.

      And interviews at MSFT are one on one, and the last thing I wanted to tell him at that point was that I wouldn't be able to solve it :)

      However, I did solve it in the end, so looking back it was a learning experience.

    35. Re:missing line by E_elven · · Score: 1

      And you were able to solve it, which is good.. in situations like that, though, the 'why' is a good question (in this particular instance it'd tell you you're using the wrong language if you need those features) from a more generic engineering standpoint.

      --
      Marxist evolution is just N generations away!
    36. Re:missing line by metlin · · Score: 1

      Ofcourse, I do realize that, but he wasn't too particular of the specifics.

      I guess he wanted to see my problem solving skills giving a particular set of tools and constraints, and how I thought the problem out.

      But it sure as hell was an interesting experience! :)

    37. Re:missing line by Dan+D. · · Score: 1

      wow ... even after all these years on slashdot... I still get surprised when I find myself saying "Gee, I thought I was the only one..."

      --
      People who quote themselves bug the crap out of me -- Me.
    38. Re:missing line by nomel · · Score: 1

      You point out something interesting/frustrating about basic. having each line be a multiple of 10, you are only allowed 9 additional lines between them. I remember wanting to add features to my code on my Apple IIe, but I would quickly run out of lines! Then I'd have to do something lke you did, use lots of gosubs or gotos :) Code would get quite messy back then :)

  2. ahem by linuxislandsucks · · Score: 0, Insightful

    1963+40=2003

    --
    Don't Tread on OpenSource
    1. Re:ahem by spotteddog · · Score: 2, Funny

      Obviously their arithmatic algorithm was flawed

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

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

      -Peter

    3. Re:ahem by bee-yotch · · Score: 5, Informative

      they started it in '63, they didn't finish it till '64. rtfa

    4. Re:ahem by jonnosan · · Score: 3, Informative

      RTFA - 1963 is when they had the idea. it took till May 1, 1964 to finish it.

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

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

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

    7. Re:ahem by codeonezero · · Score: 0

      Actually due to a poor implementation of Basic that /. that causes a floating point error it adds up to of 2003.99999999999999999
      And the integer conversion yields 2004

      --

      ....
      int main (void) { ... }

    8. Re:ahem by LMacG · · Score: 1

      A little bit of RTFA and voila:

      "A year later on May 1, 1964, the BASIC computer programing language (as demonstrated above) was born and for the first time computers were taken out of the lab and brought into the community."

      --
      Slightly disreputable, albeit gregarious
    9. 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.

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

      Better than your spelling algorithm.

    11. Re:ahem by Wister285 · · Score: 1, Insightful

      I don't see what's wrong with what the poster said. The poster said that they had the idea in 1963, not the completed language.

      I also thing that maybe you should read the article, since the poster simply quoted it.

    12. Re:ahem by Anonymous Coward · · Score: 0

      Flamebait? Funny I thought. 1 based indexes are soooo stupid! :)

    13. Re:ahem by nycsubway · · Score: 1

      I agree. I thought it would be funny too.

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

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

      25 PRINT "Spell checked: Never"
      RUN

    15. Re:ahem by Mostly+Harmless · · Score: 1

      I believe we already had the discussion that .999...=1.

      --
      "`Ford, you're turning into a penguin. Stop it.'" -Douglas Adams, THHGTTG
    16. Re:ahem by hackstraw · · Score: 1

      they started it in '63, they didn't finish it till '64. rtfa

      Gheesh. C++ started in 1986 and they still havn't even finished the draft for the standard.

    17. Re:ahem by uberTr011 · · Score: 0

      Today is April 29th, so BASIC isn't actually 40 yet.

    18. Re:ahem by ampersandTHORN · · Score: 1
      10 PRINT "Conceived: 1963"
      20 PRINT "Born: 1964"
      25 PRINT "Father: Unknown"
      30 END

      It's a bastard of a language.

    19. Re:ahem by Anonymous Coward · · Score: 0

      While we're talking about verbose 40-year-old languages with line numbers, someone please insert a witty comment here about arbitrary-precision BCD arithmetic [COBOL style] vs. floating-point binary arithmetic [BASIC style].

    20. Re:ahem by Lussarn · · Score: 1

      Visual basic is still an unfinished POS, therefore I conclude BASIC is zero years old.

    21. Re:ahem by ajs318 · · Score: 1

      This is nothing new. According to Frank Castle, M.I.mech.E., in "four-figure logarithms and other tables for schools", 2 * 2 = 3.999.

      --
      Je fume. Tu fumes. Nous fûmes!
    22. Re:ahem by Anonymous Coward · · Score: 0

      Your stoopid what?

    23. Re:ahem by Anonymous Coward · · Score: 0

      A year later on May 1, 1964, the BASIC computer programing language (as demonstrated above) was born and for the first time computers were taken out of the lab and brought into the community.

      So sue them for publishing an article 2 days early about something 40 years old, or do you use a complier top catch stack underflows?

    24. Re:ahem by andrewa · · Score: 1

      Ehrm, I was born in 63. Apart from making me a dodgy old bastard, as I am not dead yet (don;t think so last time I checked) that must make me zero years old. Course the alternatlve view point is my parents started their project, and nine months later there I was.
      Whatever...

      --
      :(){ :|:& };:
    25. Re:ahem by forkazoo · · Score: 1

      Now, see, you are just trying to write spaghettic C in Basic. You only needed to retype lines 10 and 25. This re-use and refactoring technology, whereby unmodified parts of the source code remain persistent in memory until specifically edited, is what inspired Java and all other Object Oriented languages. Clearly, in BASIC, the line itself was the object!

      Because lines 20 and 30 remain unchanged, there was no need to retype, or copy-paste them. Retyping just introduces opportunities for a typo, and slows down the professional programmer.

      Kids today have no respect for the classics.

      P.S. I know a guy who is building a micro using an intel 4004 CPU, and plans to get basic running on it. W00t!

    26. Re:ahem by Tokerat · · Score: 1

      int main()
      {
      printf("1972: pwn3d!!!1");
      return 0;
      }
      --
      CAn'T CompreHend SARcaSm?
  3. 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 glenebob · · Score: 2, Insightful

      OMG the mods are smokin' it today, that's funny as hell!

    2. Re:A Poem! by red+floyd · · Score: 1

      Very well done.

      --
      The only reason we have the rights we have is that people just like us died to gain those rights. -- Cheerio Boy
    3. Re:A Poem! by MikeXpop · · Score: 1, Informative

      10 PRINT "This is a" (Read: Ten print this is a) 20 PRINT "Haiku program" (Read: Twenty print haiku program) 30 GOTO 10 (Read: Thirty goto ten)

      --
      Etiquette is etiquette. He kills his mother but he can't wear grey trousers.
    4. Re:A Poem! by mph · · Score: 4, Informative
      Mod parent down, a Haiku is 575 not 343 (is program 3 or 4? If 4 then 353, either way it's wrong)
      Mod yourself down. You forgot to pronounce the line numbers.
    5. Re:A Poem! by mlyle · · Score: 4, Informative

      10 PRINT "This is a"
      20 PRINT "Haiku program"
      30 GOTO 10

      Ten print this is a (5)
      twen-ty print hai ku pro gram (7)
      thir-ty go to ten (5)

    6. Re:A Poem! by semifamous · · Score: 1

      Read the whole thing (including the numbers) out loud...

    7. Re:A Poem! by BdosError · · Score: 1

      Depends who you ask. Some think that in English, they should be 3-5-3 instead.
      For example, this one or this one. Or perhaps the form is not so rigid about syllables at all, like they claim in this one.

      --
      Complexity is Easy. Simplicity is Hard.
    8. Re:A Poem! by slackerboy · · Score: 1, Insightful

      Ummm, it doesn't print the haiku, it is the haiku.

      --
      Things to do today: See list of things to do yesterday
    9. Re:A Poem! by Chiasmus_ · · Score: 4, Interesting

      Depends who you ask. Some think that in English, they should be 3-5-3 instead.

      No kidding. 17 syllables is a lot of room to maneuver in English... far, far less in Japanese.

      Ever try watching anime with both the English subtitle and the English dubbing turned on? A Japanese character will say something subtitled, e.g., "I'm cold" and they'll have to dub in something like, e.g., "I feel cold. It's cold in this room!" just to make the syllable count come close.

      --
      "Beware he who would deny you access to information, for in his heart he deems himself your master."
    10. Re:A Poem! by Anonymous Coward · · Score: 0

      Where in that post does it say that it prints the haiku?

    11. 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"
    12. Re:A Poem! by zakezuke · · Score: 1

      10 Print "I can do this as well"
      20 Print "only now and then"
      30 Print " in Emi Dickenson; style now"
      40 goto 10

      Emily Dickenson

      Best read to the tune of "The Yellow Rose of Texas"

      --
      There is no sanctuary. There is no sanctuary. SHUT UP! There is no shut up. There is no shut up.
    13. Re:A Poem! by squidfood · · Score: 5, Funny

      Problem finally solved!...

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

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

    15. Re:A Poem! by Anonymous Coward · · Score: 0

      wow, don't you feel stupid...

    16. Re:A Poem! by kale77in · · Score: 2, Interesting

      That only *produces* a 5-7 poem, however. Where's your 'Haiku program' that ALSO outputs a Haiku? Hmmm? Well?

    17. Re:A Poem! by kale77in · · Score: 1

      Dang... just thought about that. OK, you win.

    18. Re:A Poem! by Anonymous Coward · · Score: 0

      Ummm, you're a dumbass who either replied to the wrong post or your reading comprehension is equal to that of a piece of shit.

    19. Re:A Poem! by Adam9 · · Score: 0

      IOW, you know that your own post isn't worthy of the submit button? Go outside and fly a kite.

    20. Re:A Poem! by GTRacer · · Score: 1
      Damn, you beat me to it, AND I have no mod points to reward you with...

      GTRacer
      - Random kana on multicultural promotional materials does not Japanese make

      --
      Defending IP by destroying access to it? That makes sense, RIAA/MPAA. Go to the corner until you can play nice!
    21. Re:A Poem! by Audiostar · · Score: 1

      is program 3 or 4? If 4 then 353, either way it's wrong Are you asking if program is three or four syllables? Are you serious? I would like to hear how you personally pronounce the word, because it is definitely not the way I do.

    22. Re:A Poem! by Dejitaru+Neko · · Score: 2, Insightful

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

      --
      Nyo nyo, the Neko Boy has spoken.
    23. Re:A Poem! by YomikoReadman · · Score: 1
      Yea, it's kinda sad that i screwed the 30 line, which should have read like this:

      30 GOTO 10

      I really should start hitting the preview button more often >

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

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

      --
      Nyo nyo, the Neko Boy has spoken.
    25. Re:A Poem! by Pieroxy · · Score: 1

      Yeah, while that is arguably accurate, sometimes you just discover that your post is a duplicate of an earlier one just a few minutes after posting. Then you might want to go back to yours and shoot it down in flames...

    26. Re:A Poem! by Alkaiser · · Score: 1

      You obviously are confusing languages. "I feel cold." in Japanese would be expressed in everyday conversation as, "samui" which is exactly the same number of syllables.

      Chinese tends to take longer to speak, but not Japanese.

      --
      Netjak.com independent reviews of domestic & import video ga
    27. Re:A Poem! by Anonymous Coward · · Score: 0

      LOL

    28. Re:A Poem! by Anonymous Coward · · Score: 0

      Yeah? So what about "thank you" or "hi"?

    29. Re:A Poem! by Alkaiser · · Score: 2, Interesting

      Hi? Informal? Would be "Ossu". (Pronounced "oas".) "Hi" also works. Most of the other forms of greeting incorporate other infomation, like time, etc.

      Thank you is just, "Arigato".

      --
      Netjak.com independent reviews of domestic & import video ga
    30. Re:A Poem! by Anonymous Coward · · Score: 0

      If you're going to get all pedantic about it, you should take into account that 'haiku' accounts for three of your five units in a Japanese line, and 'senryuu' accounts for four

      As in:

      The senryuu
      Is not quite a haiku,
      But it's still damn close.

    31. Re:A Poem! by Anonymous Coward · · Score: 0

      That's not Emily Dickinson's style,--
      She always;--
      Uses more dashes than tha--
      t.

    32. Re:A Poem! by Anonymous Coward · · Score: 0

      Thank you is just, "Arigato".

      Or in the super-informal style used in anime, just "doumo", or even "aa".

    33. Re:A Poem! by Anonymous Coward · · Score: 0

      Or maybe you should just post without your karma bonus in these cases, smart guy.

    34. Re:A Poem! by cortana · · Score: 1

      Humans behind Internet-forum-post-moderation-system in non-deterministic shocker! :)

    35. Re:A Poem! by Joey7F · · Score: 1

      LMAO!!!! Mod parent up!

      --Joey

    36. Re:A Poem! by infinite9 · · Score: 1

      "I'm cold"

      samui des

      4 syllables. :-)

      --
      Disconnect your television. Do your own research. Draw your own conclusions. They're probably lying. Don't be a sheep.
    37. Re:A Poem! by ThisIsFred · · Score: 1

      Note how the program ends abruptly if you skip the central portion and go right for the profits.

      --
      Fred

      "A fool and his freedom are soon parted"
      -RMS
    38. Re:A Poem! by HuguesT · · Score: 1

      Every subtitled film in any language prints far less than what is being said. This is because people don't want to spend their time reading subtitles, they want to see what happens too. Some people read fast and would have little problem following everything but many don't read that fast.

      In my experience subtitles are usually terse and often wrong too.

    39. Re:A Poem! by HuguesT · · Score: 1

      Does Chinese take long to speak? I have a hard time believing this, given that each character is on average 2 syllables and sometimes express complex concepts.

      I remember reading the complete rules of western Chess (that came with a set bought in China, on which you could play traditional Chinese Chess and the Western version as well) in about 100 characters.

    40. Re:A Poem! by Pharmboy · · Score: 1

      On a slightly offtopic note, I think slashcode should allow us to mod down our own posts.

      You can. If you get a karma bonus, post without it. If not, or if you need more self moderation, post as AC, and set your threshold to 3, then even YOU don't have to read your own posts ;)

      If that STILL isn't enough, just say something bad about Linux and good about Windows in the same sentence, and the regular moderators will take care of you in a matter of seconds. Linux bashing is always good for instant karma.

      --
      Tequila: It's not just for breakfast anymore!
    41. 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!
    42. Re:A Poem! by Anonymous Coward · · Score: 0

      Are you on crack? In Chinese, I'm cold would generally just be 'leng3', or if you wanted to be unnecessarily specific, 'wo3 leng3'. That's one syllable, bub, two if you add wo3. Compared to the three of Japanese and English, Chinese is in this example much much more compact.

      In general, due to the introduction of tones and the use of a topic-comment sentence structure (as opposed to the SOV, SVO, etc typologies of european languages), Chinese languages are extremely efficient. You can say a lot with very little. Japanese, being agglutinative, tends to be much less so, requiring particles and verb inflection and honorifics and all that jazz. If you read early Japanese Haiku, they actually use a lot of Chinese-derived cheng2yu3, commonly called 'four-character idioms' (although not always four characters) because they allow the poet to condense much information into a constricted space.

      Japanese-loving anime fanboys who studied some japanese in school are often under the false impression that japanese idioms are well, japanese. In fact, virtually everything cool about Japanese culture (with the possible exception of crazy seppuku-committing, honor-having samurai warriors, and ok, manga & anime) comes from China. Martial arts, kanji, ninja, funky architecture, etc, etc. Oh, well, Shinto is pretty cool and I guess that's Japanese. But you get my drift. China was the culture center of Asia back in the day.

      Actually, Japan is to China much as England is to France. If you want to sound smart when you speak Japanese, use a lot of Chinese derived loan words. If you want to sound smart when you speak English, use a lot of latin-derived (ie, imported from French) words.

      And the Japanese, like the English, are generally pretty ugly, compared to their mainland counterparts. With bad teeth, too. It's amazing how well this analogy holds.

    43. Re:A Poem! by Anonymous Coward · · Score: 0

      ... say something bad about Linux and good about Windows in the same sentence...

      Eeuwh! Mod parent down, he said something bad about Linux and good about windows in the same sentence. That's trolling or flamebait or something, right?

    44. Re:A Poem! by Anonymous Coward · · Score: 0

      Mod yourself down. You forgot to pronounce the line numbers.

      No, mod mph down! You can't mod yourself.

    45. Re:A Poem! by Anonymous Coward · · Score: 0

      I've never heard anyone say "Samui des" in everyday conversation. "Samui," (or "shabui" if you're a Jr. High School girl) is sufficient.

    46. Re:A Poem! by Anonymous Coward · · Score: 0

      Wow. You're really smart.

      And a racist pig.

    47. Re:A Poem! by sxtxixtxcxh · · Score: 1

      haiku is three
      syllables long, unlike most
      pronunciations

      --
      for a minute there, i lost myself...
    48. Re:A Poem! by Anonymous Coward · · Score: 0

      Some times the is truth spoken. Racist maybe, but still true.

    49. Re:A Poem! by Anonymous Coward · · Score: 0

      Yes of course! But where're my mod points when I need them?

    50. Re:A Poem! by Hognoxious · · Score: 0
      Actually, Japan is to China much as England is to France.
      True. Japan is much cleaner than China, and the people are better educated.
      What's more, the Japanese consider it a great dishonour to surrender.
      If you want to sound smart when you speak English, use a lot of latin-derived (ie, imported from French) words.
      Actually, that doesn't make you sound smart; it makes you sound like Del Boy,but chacun to his goat, eh, Rodney?
      --
      Confucius say, "Find worm in apple - bad. Find half a worm - worse."
    51. Re:A Poem! by Pieroxy · · Score: 1

      Wow! AC tells me I'm a smart guy! Interesting.

      But more seriously, how can you know if you post is a duplicate or not? Most of the cases can be adressed by just reading the thread, but sometimes the post you are duplicating will be posted while you actually type yours in. How do you know in that case?

      For the trolling/flaming one, I agree that the Karma Bonus is already the first step to that. We just need a little more, IMO.

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

    3. Re:They had a dream by Safety+Cap · · Score: 1

      Isn't there an urban legend that Billg wrote that?

      --
      Yeah, right.
    4. Re:They had a dream by Carnildo · · Score: 1

      I have to keep modifying the SPEEDCONST though.

      Is it still small enough to store in an integer?

      --
      "They redundantly repeated themselves over and over again incessantly without end ad infinitum" -- ibid.
    5. Re:They had a dream by SamSim · · Score: 1

      Oh hell yes. Ideas like that transcend mere programming languages, man.

    6. Re:They had a dream by Bigman · · Score: 2, Interesting

      Actually it was DONKEY.BAS.

      --
      *--BigMan--- Time flies like an arrow.. but personally I prefer a nice glass of wine!
    7. Re:They had a dream by Anonymous Coward · · Score: 0

      Yes, and that in Bill's version, he kept putting the banana in his arse!

    8. Re:They had a dream by Elvii · · Score: 1

      It was gorillas, and I remember it because I randomized the explosions - from nothing to nuclear bananas. Had friends cringe when they took a shot in that game, never knew how much of the city you'd have left afterwards.. Oh yea, the banana speed was random to a max of about mach 2 if memory serves. Fun game after that, i must say :)

      --
      This sig left intentionally blank.
    9. Re:They had a dream by ambienceman · · Score: 0

      and NIBBLES!!! Who remembers that BASIC game. It's on all the Nokia phones now.

    10. Re:They had a dream by Guppy06 · · Score: 1

      "that nifty gorilla-banana-chunking program?"

      Real men play Scorched Earth: The Mother of All (Artillery) Games!

    11. Re:They had a dream by justzisguy · · Score: 1

      Totally OT now, but yes, an awesome game that maybe one day someone will pick up and retool for a modern operating system running on a modern computer. Alas, it won't run on my Mac OS X box nor my linux box.

    12. Re:They had a dream by mabinogi · · Score: 1
      --
      Advanced users are users too!
    13. Re:They had a dream by nomel · · Score: 1

      NO! last time I played, I had to put big for loops of manupilating floating point numbers :)

  5. First Post by gchan · · Score: 0, Redundant

    10 PRINT "First Post" 20 END

  6. 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 Anonymous Coward · · Score: 0

      You know when the makers of edlin release a product, it's gotta be top-notch!

    2. 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.
    3. Re:And now we have ... by ReelOddeeo · · Score: 1
      Hey, OpenOffice.org has a nice Basic built into it.
      Sub Main()
      oDrawDoc = StarDesktop.loadComponentFromURL( "private:factory/sdraw", "_blank", 0, Array() )
      oDrawPage = oDrawDoc.getDrawPages().getByIndex( 0 )

      ' Draw some colored rectangles
      oSize = MakeSize( 1000, 2000 )
      For i = 0 To 15
      oShape = MakeRectangleShape( oDrawDoc, MakePoint( 1000 + (i * 1200), 1000 ), oSize )
      oDrawPage.add( oShape )

      oShape.FillColor = RGB( 255*i/15,220-i/15*80,250-i/15*200 )
      oShape.CornerRadius = 1000 * (i/15)
      Next
      End Sub

      Function MakePoint( x As Long, y As Long ) As com.sun.star.awt.Point
      Dim aPoint As New com.sun.star.awt.Point
      aPoint.x = x
      aPoint.y = y
      MakePoint() = aPoint
      End Function

      Function MakeSize( width As Long, height As Long ) As com.sun.star.awt.Size
      Dim aSize As New com.sun.star.awt.Size
      aSize.width = width
      aSize.height = height
      MakeSize() = aSize
      End Function

      Function MakeRectangleShape( oDrawDoc As Object,_
      Optional position As com.sun.star.awt.Point,_
      Optional size As com.sun.star.awt.Size ) As com.sun.star.drawing.RectangleShape
      oShape = oDrawDoc.createInstance( "com.sun.star.drawing.RectangleShape" )
      If Not IsMissing( position ) Then
      oShape.Position = position
      EndIf
      If Not IsMissing( size ) Then
      oShape.Size = size
      EndIf
      MakeRectangleShape() = oShape
      End Function
      Too bad I can't quickly figure out how to post formatted code on Slashdot. :-(
      --

      Those who would give up liberty in exchange for security and DRM should switch to Microsoft Palladium!
    4. Re:And now we have ... by Anonymous Coward · · Score: 0

      > stay away from Olfactory Basic.
      Apparently it stinks ;-)

    5. Re:And now we have ... by Cro+Magnon · · Score: 1

      Olfactory Basic? Are you implying that Basic smells?

      --
      Slow down, cowboy! It has been 4 hours since you last posted. You must wait another few hours.
    6. Re:And now we have ... by Anonymous Coward · · Score: 1, Insightful

      is there some disease going around which makes people feel they just *have* to explain the joke?

    7. Re:And now we have ... by Anonymous Coward · · Score: 0

      Argh! You use the evil and ugly silly( parenthesis, spacing )! Plese, for the love of all that's good and holy, space it like (this, okay), it's much more readable.

    8. Re:And now we have ... by blakespot · · Score: 1
      ... BASIC's much acclaimed successor, Visual Basic ;-)

      • No...Visual Basic is almost exactly Pascal.

      • bp

      --
      -- Heisenberg may have slept here.
      iPod Hacks.com
    9. Re:And now we have ... by bhtooefr · · Score: 1

      Correction for this AC: edlin was made by the guy who wrote QDOS (Quick and Dirty Operating System), and intended to last a couple of months, until he wrote something better. MS bought QDOS, renamed it 86-DOS, then MS-DOS, and edlin survived for a LONG time.

    10. Re:And now we have ... by Anonymous Coward · · Score: 0

      Which is underrated because of all the unskilled masses that have turned out dreck in it. A skilled programmer can make VB sing... maybe not quite as nicely as C++, but the ease of putting a UI together often makes up for that.

    11. Re:And now we have ... by bergeron76 · · Score: 1

      please, for the sake of the children, stay away from Olfactory Basic.

      Particularly if it uses Rectal Basic syntax.

      --
      Don't think that a small group of dedicated individuals can't change the world. It's the only thing that ever has.
    12. Re:And now we have ... by spruce · · Score: 1

      Wow, that's a nice recreation of VB6, or maybe VBA. I know people here like to blast the idea of putting a scripting engine in your Email, SpreadSheet, or other office program, but it really allows you to do some amazing stuff.

      I've personally automated every Office app except Powerpoint, and every time it was because a client asked for it, and was better off having it.

    13. Re:And now we have ... by Anonymous Coward · · Score: 0

      stay away from Olfactory Basic.

      10 PRINT "PLPLPLPLPLPL!"
      20 GOTO 10

    14. Re:And now we have ... by richie2000 · · Score: 1

      I thought it was Vicious Basic?

      --
      Money for nothing, pix for free
    15. Re:And now we have ... by Anonymous Coward · · Score: 0

      It's for imbeciles. The only thing it suceeded at was spawning more imbeciles.

    16. Re:And now we have ... by Anonymous Coward · · Score: 0

      edlin is still around. Windows Server 2003 even has it.

  7. I miss the simple life by castlec · · Score: 2, Interesting

    10 I miss basic on TI-80 calcs.
    20 Programming in basic was my favorite thing to do in math class
    30 my freshman year.

    --
    When I tell an object to delete this, am I killing it or telling it to kill me?
    1. Re:I miss the simple life by nomadic · · Score: 3, Funny

      ILLEGAL FUNCTION CALL

    2. 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!

    3. 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?
    4. Re:I miss the simple life by Anonymous Coward · · Score: 0

      At least BASIC programming is still done with a keyboard. Imagine what it'd be like entering in programs using a pen interface and getting a bunch of "Illegible function call" error messages!

    5. Re:I miss the simple life by default+luser · · Score: 1

      :Lbl x :Disp "Except that classic TI Basic doesn't have line numbers," :Disp "only these annoying colons separate statements" :Goto x :Disp "Not to mention, there are only 27 vars and 37 labels..."

      --

      Man is the animal that laughs.
      And occasionally whores for Karma.

    6. Re:I miss the simple life by brain_bucket2000 · · Score: 1

      :Lbl x :Disp "Except that classic TI Basic doesn't have line numbers," :Disp "only these annoying colons separate statements" :Goto x :Disp "Not to mention, there are only 27 vars and 37 labels..."

      I believe you mean:
      :Lbl X
      :Disp "Except that classic TI Basic doesn't have line numbers,","only these annoying colons separate statements","Not to mention, there are only 27 vars and 37 labels..."
      :Goto X
      Also, there were 1369 possible labels. They could be two characters long and were alpha-numeric (had to be uppercase, though). That is, unless the TI-83+ has a different version of TI-Basic.

      --
      "Against stupidity the very gods themselves contend in vain." -Schiller, Friedrich von
    7. Re:I miss the simple life by default+luser · · Score: 1

      Ahh, yes, I forgot the labels could be 2 characters long. You'll excuse me, the last time I programmed on my beloved TI-82 was 7 years ago.

      I replaced it with an 89 in college, but I never quite got into programming it on the level I did with the 82. I since donated the 82 to a worthwhile cause :P

      --

      Man is the animal that laughs.
      And occasionally whores for Karma.

    8. Re:I miss the simple life by ncc74656 · · Score: 1
      Except that classic TI Basic doesn't have line numbers

      Excuse me? I'm fairly sure line numbers were required on the 99/4A I had (and now have again).

      --
      20 January 2017: the End of an Error.
    9. Re:I miss the simple life by Creedo · · Score: 1

      You are correct, sir. 10 Call clear 20 print "BASIC is lame" Run

      --
      All that is necessary for the triumph of good is that evil men do nothing.
    10. Re:I miss the simple life by UnassumingLocalGuy · · Score: 1
      Yep, but still:
      10 PRINT "Nothing was better than"
      20 CALL SAY("THE TEXAS INSTRUMENTS SPEECH SYNTHESIZER")
      30 GOTO 10
      40 REM do line 30 just to annoy the shit out of the user

      RUN
      --
      "Hu, ho, ho-ah-oh-oh-oh. Hu, ho ho-ah-oh-oh-oh. Mario Paint! Whoaaa!"
    11. Re:I miss the simple life by VanillaCoke420 · · Score: 1

      Still have my TI-85 I got back in '95. Loved the Basic in it too, wrote all kinds of ga... useful programs. :)

    12. Re:I miss the simple life by Wolfrider · · Score: 1

      --Don't forget:

      SAVE CS1

      --I learned how to type on an Apple IIe and a TI 994/A. Man, Fn-P to do quotes, that was pretty messed up.

      --
      .
      == WolfriderV6 == I'm willing to admit that *I just might* be wrong... Are you??
  8. 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 jdh-22 · · Score: 1

      Castodian dick.

      --
      Every Super Villan uses Linux.
    2. re: janitors are programmers too! by ed.han · · Score: 2, Funny

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

      ed

    3. Re:Janitors are programmers too! by Anonymous Coward · · Score: 0

      Its cUstodian :)

    4. Re:Janitors are programmers too! by Diclophis · · Score: 1

      To the story poster... just because someone is a janitor does not make them an idiot (techwise or elsewise)

    5. Re:Janitors are programmers too! by bar-agent · · Score: 1

      If Dilbert has taught us nothing else, it has taught us that the janitor knows all.

      --
      i'd hit it so hard, if you pulled me out you'd be the king of britain [bash.org]
    6. Re:Janitors are programmers too! by sdcharle · · Score: 1

      For real, I know a really bright dude who got his start programming when he was a janitor at the Cyclotron at Indiana University. He was curious about what the programmers were doing, learned to program himself, and eventually he ended up working as a programmer there. Since it was the academic world, this didn't translate into a big pay raise, but in later jobs he made out considerably better.

    7. Re:Janitors are programmers too! by stfvon007 · · Score: 1

      Actually that was the garbageman that knew all. It was not the janitor. The janitor sat in the basement all day reading fishing magazines pulling in more money than engeneers because of all the overtime he accumulates.

      --
      All misspellings and grammatical errors in the above post are intentional and part of my artistic expression.
    8. Re:Janitors are programmers too! by sum1 · · Score: 1

      sum1 has to clean up the mess...

    9. Re:Janitors are programmers too! by Anonymous Coward · · Score: 0

      You insensitive clod.. I was the janitor at your school!

    10. Re:Janitors are programmers too! by tupps · · Score: 1

      Gives new meaning to the computing phrase "garbage in, garbage out"

      --
      Go out and get sailing!
    11. Re:Janitors are programmers too! by Anonymous Coward · · Score: 0

      You mean the seeds of class-based entitlement.

    12. Re:Janitors are programmers too! by Anonymous Coward · · Score: 0

      I know everyone is just having fun with the Janitor thing here, but it is pretty rude to assume someone is stupid because they are a Janitor. Everyone has a different story... Maybe they just had enough of the day-to-day bullshit and took a "mindless" job to daydream for the 8 hour workday until they get to their real love, whatever that may be. Or maybe they are infiltrating the employer...

      Remember, someone has to do these jobs. Don't think for a second that you are better than them just because you know 5 computer languages or whatever. They may just know a hell of a lot more about life than you ever will....

      Note: this wasn't directed at the parent.... OK back to drinking my beer and mopping the floor

      microsoft#> exit

    13. Re:Janitors are programmers too! by HuguesT · · Score: 1

      Re: your sig

      > According to slashdot users I'm funny,
      > insightful, and interesting! So why arn't girls
      > all over me?

      Because you are only funny, insightful and interesting to other geeks.

    14. Re:Janitors are programmers too! by andrewa · · Score: 1

      or meta-moderators who are desperately trying to get mod-points.

      --
      :(){ :|:& };:
    15. Re:Janitors are programmers too! by Anonymous Coward · · Score: 0

      Taco concocted that lie to get more people to metamoderate. I've been metamoderating for a while now and still don't have mod points.

    16. Re:Janitors are programmers too! by HuguesT · · Score: 1

      No mod points for ACs, sorry.

  9. Spinning in his grave by FortKnox · · Score: 1

    And that professor must be spinning in his grave (if he's dead?) knowing the likes of VB and VB.NET has plagued the computer science field since MS got their claws on it....



    Meant to be a joke... VB is a good tool for prototyping and simple stuff where it excels.

    --
    Good quote, too many chars. Seriously, the slashdot 120 char limit sucks!
    1. Re:Spinning in his grave by LostCluster · · Score: 2, Informative

      VB is a good tool for prototyping and simple stuff where it excels.

      VB is a power tool... if you use it correctly you can get a simple program done faster than you could in C. If you use it incorrectly, you end up with a memory hog application that could have been written better in C.

    2. Re:Spinning in his grave by tttonyyy · · Score: 0, Flamebait
      Meant to be a joke... VB is a good tool for prototyping and simple stuff where it excels.

      "VB", "Excel" and "Simple" in the same sentence?

      Comedy genius!

      Go ahead and mod me flamebait, see if I care. ;)

      --
      biopowered.co.uk - catalytically cracking triglycerides for home automotive use since 2008. Just say no to big oil!
    3. Re:Spinning in his grave by dasmegabyte · · Score: 1

      Actually, VB.NET has a pretty nice set of features, including some impressive ones that C# does not (mostly to preserve/fake compatibility with VB6).

      Some of these include the With statement (changes the context of local code, foregoing the drudgery of typing object.blah.blah.thingiwanttoset), WithEvents (handles event delegates based on a variable, not on the object it's pointing to, allowing you to switch what you're working on without removing and adding handlers) and optional variables in method signatures (which compile to overloaded methods anyway, but with less code).

      Now if only I didn't feel like such an idiot CODING in it, it might be useful (hint: getting rid of the underscore to pass on to a new line is a start). I'd estimate that doing my last project in C# rather than VB put me about a month off track...but mostly because Visual Inheritance between VB and C# is busted in VS.NET 2002 (and the keyhandlers in inherited forms are busted in VS.NET 2003).

      --
      Hey freaks: now you're ju
    4. Re:Spinning in his grave by ThogScully · · Score: 4, Insightful

      That's a very obvious statement. You basically said that a bad program written in one language could have been written better in the other language. But any program written badly in any language is going to be better when written better, regardless of language.

      The comparison I believe the original post was making was between a good VB app and a good C app and between those, I'm guessing the C one would be better.
      -N

      --
      I've nothing to say here...
    5. Re:Spinning in his grave by Pranjal · · Score: 2, Informative

      Thomas Kurtz is still alive. Unfortunately John Kemeny is not.

    6. Re:Spinning in his grave by OSgod · · Score: 1

      And the answer is... that depends... If the code does string manipulation or is waiting on back end calls (DBMS, etc.) for most of it's time you might be better served for rapid development in VB.

    7. Re:Spinning in his grave by RoundSparrow · · Score: 1


      And don't overlook how many rapid programs are written in C and become buffer overflow ridden security nightmares.

    8. Re:Spinning in his grave by Anonymous+Cow+herd · · Score: 1

      Yes, as opposed to all the sterling code produced by Microsoft...

      --
      Ita erat quando hic adveni.
    9. Re:Spinning in his grave by tttonyyy · · Score: 1
      Go ahead and mod me flamebait, see if I care. ;)

      Starting Score: 1 point
      Moderation -1
      100% Flamebait

      Heh. :) Strangely satisfying.

      --
      biopowered.co.uk - catalytically cracking triglycerides for home automotive use since 2008. Just say no to big oil!
    10. Re:Spinning in his grave by GlassHeart · · Score: 1
      between a good VB app and a good C app [...], I'm guessing the C one would be better.

      "Better" cannot be decided outside of a certain context. Does it have to run in Linux? If so, VB is probably never going to be "better". Does it have to be done really quickly and cheaply? If so, VB might be better.

    11. Re:Spinning in his grave by Anonymous Coward · · Score: 0

      Actually, the older DOS BASIC flavors would be looked upon as bastardizations of the original Kiminy and Kurtz (sp?) BASIC. Same thing goes for all those embedded-style basics, like those found on calculators and old, hook-to-TV computers. VB actually went a long way towards the bringing BASIC back to its roots.

      It did preserve backwards compatibility with all the DOS BASICs, but almost everything that was added to the DOS ones was removed from documentation (peek, poke, varptr). You could still use 'em, but MS sure as hell wasn't going to help you out on that one.

      So, Kiminy and Kurtz would probably be pretty happy with how BASIC matured to VB. VB.NET. Dunno. LOADS of stuff changed in the language. It pretty much entirely departed from the original intention of the language. Which is great, because the language is now a first-rate one.

  10. 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
    4. Re:5 REM Testing.. by nattt · · Score: 1

      10 PRINT "Sex Invaders is Loading"
      20 PRINT "Please Wait"
      30 RANOMISE USR 1234

      --
      -- oldthinkers unbellyfeel ingsoc
    5. Re:5 REM Testing.. by funkhauser · · Score: 2, Informative
      SYNTAX ERROR
    6. Re:5 REM Testing.. by fwc · · Score: 1
      #!/usr/bin/perl
      print "But what if\n";
      print "some of us\n";
      print "like Perl Better?\n";
      Oh crap, I just realized how much Perl looks like BASIC on steriods.
    7. Re:5 REM Testing.. by the_mad_poster · · Score: 1

      If it bothers you that they both have print statements, you could always use printf() and pretend you're mimicing C....

      --
      Alito: A vote for Alito is a punch in the eye to put that bitch back in her place!
    8. Re:5 REM Testing.. by Anonymous Coward · · Score: 2, Insightful

      I've heard it said that Perl is the Visual Basic of the Unix world...

    9. Re:5 REM Testing.. by be-fan · · Score: 1

      Let's see if I can get a +5 funny too...

      format-out("10 PRINT \"HELL\"");
      format-out("GOTO 10");

      Guess what language?

      --
      A deep unwavering belief is a sure sign you're missing something...
    10. Re:5 REM Testing.. by Anonymous Coward · · Score: 0

      10 PRINT "Inagine"
      20 PRINT "Beowulf"
      30 GOTO 10
      40 REM "Nevermind..."

    11. Re:5 REM Testing.. by bar-agent · · Score: 1

      I'll give y'all a hint.

      "All Along the Watchtower"

      --
      i'd hit it so hard, if you pulled me out you'd be the king of britain [bash.org]
    12. Re:5 REM Testing.. by Anonymous Coward · · Score: 0

      10 PRINT "How about, from now one, we type all"
      20 PRINT "comments in all stories as"
      30 PRINT "little programs?"
      35 GOTO 10

    13. Re:5 REM Testing.. by The-Dalai-LLama · · Score: 1
      3 REM ITS BEEN 20 YEARS SINCE I DID THAT TO A VIC-20
      4 REM AND THEY STILL DONT LET ME IN THAT MALL

      It's been a while since we had that T.I. 99-4A, let's see if I remember this right...

      10 LET X=100,000,000
      20 PRINT X
      30 LET X=(X-1)
      40 NEXT X
      50 IF X=0, THEN GOTO 80
      60 GOTO 20
      70 BEEP
      80 PRINT "I AM THE GREATEST"
      90 GOTO 70
      100 END

      That may not be exactly right, but you should get the gist. I also had some kind of delay mechanism to keep the computer from counting down too fast; I could get two or three going at once before the first one went off, but it's been too long and those lines represent the sum total of my programming knowledge.

      The Dalai LLama
      ...hit ENTER and scramble to watch from outside the store....hell, yeah, I'm a l337 h4X0r...

    14. Re:5 REM Testing.. by Dr.+Smeegee · · Score: 1

      Hendrix?

    15. Re:5 REM Testing.. by poot_rootbeer · · Score: 1

      1 PRINT "FUCK YOU"

      ?
      SYNTAX ERROR

    16. Re:5 REM Testing.. by Tantrum420 · · Score: 1

      Dylan.

    17. Re:5 REM Testing.. by jpmkm · · Score: 1

      bob dylan. Funny name for a programming language though.

    18. Re:5 REM Testing.. by Anonymous Coward · · Score: 0

      printf("Java sucks!");

    19. Re:5 REM Testing.. by attemptedgoalie · · Score: 1

      10 PRINT "I DID THAT TOO!"
      20 GOTO 10
      30 REM I GOT THROWN OUT OF THE BASE EXCHANGE AT MINOT AFB FOR THAT
      40 REM AND THEN GOT THE OLIVER WENDALL JONES LECTURE:
      50 REM "WHAT A NAUGHTY, NAUGHTY, CLEVER BOY YOU ARE."
      60 REM BONUS CREDIT FOR YOU IF YOU KNEW WHO OLIVER WAS OFF THE TOP OF YOUR HEAD WITHOUT LOOKING IT UP!

      --
      My mom says I'm cool.
    20. Re:5 REM Testing.. by Anonymous Coward · · Score: 0

      10 MOD (+1, Funny)

    21. Re:5 REM Testing.. by Anonymous Coward · · Score: 0

      10 REM I DID THAT IN A CHILDREN'S MUSEUM
      20 REM ON A MACHINE WITH GREENBAR OUTPUT
      30 REM IT RAN UNTIL THERE WAS NO MORE PAPER
      40 REM NO MORE FIELD TRIPS IN 7TH GRADE

    22. Re:5 REM Testing.. by Anonymous Coward · · Score: 0

      Hahahahaha!!!! I get it!!! :-) Very clever!

    23. Re:5 REM Testing.. by Anonymous Coward · · Score: 0

      Programming languages invented while hitting the hookah.

    24. Re:5 REM Testing.. by Crispy+Critters · · Score: 1
      THEY STILL DONT LET ME IN THAT MALL

      Endless print loops were not as much fun as POKEing random numbers into low-numbered memory addresses.

    25. Re:5 REM Testing.. by Anonymous Coward · · Score: 0

      I/O Error : Program Size Exceeds 64 KB

    26. Re:5 REM Testing.. by xant · · Score: 1

      Only in the sense that programs written in one or the other never get maintained.

      --
      It's rare that you're presented with a knob whose only two positions are Make History and Flee Your Glorious Destiny.
    27. Re:5 REM Testing.. by N1KO · · Score: 1

      printf("\n");

    28. Re:5 REM Testing.. by st0rmshadow · · Score: 1

      I have a hard time believing you did BASIC 20 years ago when you can't do HTML today.

    29. Re:5 REM Testing.. by Anonymous Coward · · Score: 0

      The worst thing I ever did along these lines was to write an Amiga "DEMO" back in the late 80's and take into the local software shop. Of course, while I was showing the shop owners the "DEMO" on a floppy it was copying software I wanted off of their demo machine onto my floppy... I suppose the FBI will be after me now...

      Sorry, I didn't write it in BASIC though...

    30. Re:5 REM Testing.. by Anonymous Coward · · Score: 0

      Visual Basic?

      Perl is just a modern BASIC. For any system.

      And damn good too.

      Visual Basic is a Microsoft product, not a programming language.

    31. Re:5 REM Testing.. by Sj0 · · Score: 1

      Hey, he managed the html. It's the slashdot he mixed up.

      --
      It's been a long time.
    32. Re:5 REM Testing.. by Tablizer · · Score: 1

      10 REM I DID THAT IN A CHILDREN'S MUSEUM
      20 REM ON A MACHINE WITH GREENBAR OUTPUT
      30 REM IT RAN UNTIL THERE WAS NO MORE PAPER


      And you graduated into spam and do essentially the same thing with harddrives.

    33. Re:5 REM Testing.. by Dr.+Smeegee · · Score: 1

      Guess I should have said "Hyndryx", to guild the lilly.

  11. Ahhhh... by darth_MALL · · Score: 0

    10 Good old grade 5 computer class. Thanks for the memories. GOTO 10.

  12. Best Headline Ever by FatHogByTheAss · · Score: 2, Insightful

    Really. Well done!

    --

    --
    You sure got a purty mouth...

    1. Re:Best Headline Ever by pvt_medic · · Score: 1

      i second that. Not only was the headline informative but was able to incorporate the topic into a comical presentation. Kudos.

      --
      30% Troll, 50% Underrated, 10% Interesting
      Score:5, Troll
    2. Re:Best Headline Ever by Anonymous Coward · · Score: 0

      Apparently, Slashbots are not only illiterate (with appologies to those who don't speak English as their native tongue) or poor spellers, but they also don't know the difference between a "headline" and a "summery".

    3. Re:Best Headline Ever by Pranjal · · Score: 3, Informative

      RTFA. It's a direct rip-off from the article.

    4. Re:Best Headline Ever by BdosError · · Score: 1

      It's funny when you talk about illiteracy and then spell "apologies" and "summary" wrong.

      --
      Complexity is Easy. Simplicity is Hard.
    5. Re:Best Headline Ever by sasha328 · · Score: 1

      Just because the headline is in the article doesn't make it lose it's status as the most appropriate headline for any story I saw on Slashdot for quite a while.
      I started programming at high school using BASIC. Way back in 1986 I think. We used monochrome computers. We also had some computer hooked to the TV screen, and that is how we used to learn colour graphics.
      Great fun. I also loved the GOTO command. It's the simplest way to learn CASE calls.

  13. School Janitors by FlatBlack · · Score: 5, Insightful

    Ooo. Me Grandpa was a custodian and a very smart man. Watch your mouth. I work for a school and the janitors here are smart folks too. Most of all, they treat the lowly tech guy with respect in spite of his job and the fact that he lives in his parents basement and has never touched a girl (not a real girl anyway).

    1. Re:School Janitors by vranash · · Score: 1

      Better than me, I can't even get women to reject me, they just say maybe and as soon as I'm looking the other way disappear :-P

    2. Re:School Janitors by Anonymous Coward · · Score: 0

      > and the fact that he lives in his parents basement and has never touched a girl (not a real girl anyway).

      What do you mean "real" ones? Those things actually exist?

    3. Re:School Janitors by The_K4 · · Score: 1

      Well if you never look away they wouldn't have a chance to disappear!

    4. Re:School Janitors by FlatBlack · · Score: 1

      Yeah, they make real ones. But you have to be really rich or handsome to get your hands on one. I wonder how I would do with the girl touching the same way I wonder how I would be as a stuntman. A great opportunity, but would I blow it or maybe even hurt myself? --Cuz I'm the unknown stuntman, that makes Eastwood look so fine.

    5. Re:School Janitors by Anonymous Coward · · Score: 0

      If he is a janitor, he has probably touched a girl. He just hasn't touched a woman atleast with her consent.

    6. Re:School Janitors by Anonymous Coward · · Score: 1, Insightful

      Regardless of all that, janitors are cool.

      I usually present my title as "network janitor" or "systems janitor".

      I treat all the janitors like real people. They invite me to their birthday parties and they offer to wax my basement floor for free (no lie, that really happened).

      This is a sad commentary on the way most people must treat janitors; I am just ordinarily civil and friendly to them, nothing special, and they treat me like gold

    7. Re:School Janitors by Anonymous Coward · · Score: 0

      Marry a sweet eastern european teenage girl, live somewhere other than the US.

    8. Re:School Janitors by Anonymous Coward · · Score: 0

      Your janitor-loving is pathetic.

      Why would anyone want to waste their time talking to someone who wasn't smart enough to find a job better than cleaning up other peoples' shit? Is that how you would want to spend your life for 40 hours a week? I don't think any initelligent person, or anyone worth talking to, would be happy cleaning up shit all day.

      Why do we have to pretend they are anything but the flith that they clean up? Cleaning shit is somehow noble? Please. It's work for the lower classes. The little people in the world, who lead pointless, empty, meaningless lives.

    9. Re:School Janitors by Da+VinMan · · Score: 2, Insightful

      The little people in the world, who lead pointless, empty, meaningless lives.

      Just in case you come back to read this AC troll, I think your quote above actually applies to you. Having a humble job doesn't mean the person with that job is pathetic. It doesn't even follow that it's probable.

      On the other hand, if you're in a good job, with nice things, and are relatively successful and you feel the need to put down such people, then you are truly the pathetic person worthy of much pity.

      Really, get a clue.

      --
      Please mod this post only if you think others should/n't read this. I have enough ego^H^H^Hkarma. Thanks!
  14. WHY! WON'T! IT! DIE! by Anonymous Coward · · Score: 1, Interesting

    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

    So, I'm just curious. I've heard it claimed that BASIC was "invented" by Microsoft, or that they own it, or that their first product was a BASIC interpreter or something. Where did this story come from? What's the connection between MS and BASIC?

    1. Re:WHY! WON'T! IT! DIE! by johnpaul191 · · Score: 1

      i think they had their own version of it... like MS DOS

      i wasn't using MS-BASIC on my Apple ][e, right?

    2. Re:WHY! WON'T! IT! DIE! by Theatetus · · Score: 5, Informative
      I've heard it claimed that BASIC was "invented" by Microsoft

      Microsoft certainly doesn't claim that.

      or that they own it

      Nor do they claim that

      or that their first product was a BASIC interpreter

      They do claim that, because it's true.

      What's the connection between MS and BASIC?

      BASIC was always the applications and scripting language at Microsoft. For a long time, DOS and the early Windows shipped with a free basic interpreter (sadly, those days are over).

      Visual Basic remains one of Microsoft's flagship products. It's philosophy is similar to the original BASIC philosophy: you shouldn't have to be a comp sci graduate to write computer programs. Whether VB succeeds in that regard is another question, but it's what they intended.

      BASIC is still Microsoft's language for application automation (think Visual Basic for Applications), Web development (ASP with VBScript), and as a tool control language for gluing together objects written in lower level languages. In a sense, some form of BASIC fills the roles in Windows that Scheme, Perl, and TCL occupy in UNIX.

      --
      All's true that is mistrusted
    3. Re:WHY! WON'T! IT! DIE! by SmackCrackandPot · · Score: 2, Informative

      In the early days of the IBM PC and PC clones (1986), Microsoft supplied MS-BASIC which came free with MS-DOS.

      This was at the same time as Borland came out with Turbo Pascal, so there really wasn't any incentive to learn MS-BASIC. Especially as computers were beginning to be networked to UNIX servers.

    4. Re:WHY! WON'T! IT! DIE! by 0racle · · Score: 1

      That would be Apple Basic, written by Woz for the Apple 1/][

      --
      "I use a Mac because I'm just better than you are."
    5. 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"

    6. Re:WHY! WON'T! IT! DIE! by LostCluster · · Score: 2, Interesting

      BASIC was always the applications and scripting language at Microsoft. For a long time, DOS and the early Windows shipped with a free basic interpreter (sadly, those days are over).

      However, all Microsoft Office programs that support Macros do ship with Visual Basic for Applications... with which you can write simple-interface BASIC programs. I've used it on several occasions in cases where I wished I had VB on a machine for a short scrappy program...

    7. Re:WHY! WON'T! IT! DIE! by jonnosan · · Score: 1

      The first MS product was an implementation of BASIC for the first ever micro-computer, the Altair. In the late 1970s and early 80s, all they did was languages. They did versions of BASIC for pretty much all the 8-bit computers.

      Then IBM decided to make a microcomputer, so they asked MS to do a version of BASIC for them, and when some other deals fell through, IBM went back to MS and asked them if they could also do an operating system. Bill said yeah, no worries, went out and bought a company making something called QDOS, and renamed it PC-DOS (and then MS-DOS).

    8. Re:WHY! WON'T! IT! DIE! by LWATCDR · · Score: 2, Informative

      Way back when a young man nammed Bill Gates wrote a version of basic for the one of if not the first computer that a normal or maybe not so normal person could buy the Altair. That was the start of Microsoft. Microsoft pretty much made a living selling basic to all the major computer makers of the day. Commodore, Kaypro, Osborne, Tandy, and I think Apple. I think atari had it's own version of basic.
      Latter when IBM was going to get into the home computer market with there PC they went to Microsoft to buy basic from them. In fact if you have an old IBM PC and do not have any drives in it and power it up it will run basic from ROM.
      While buying basic IBM got sold MS-DOS and the rest is history.

      --
      See my blog http://ilovecookes.blogspot.com/ for light hearted technical information.
    9. Re:WHY! WON'T! IT! DIE! by pete-classic · · Score: 2, Interesting

      MicroSoft's (heh) first (or at least very early) product was, indeed, a BASIC interpreter.

      IIRC the first PCs shipped with MS BASIC on ROM, which loaded if no boot disk was present. Hence "No ROM BASIC" messages once that mis-feature was removed from later PCs.

      -Peter

    10. Re:WHY! WON'T! IT! DIE! by ArmpitMan · · Score: 1
      Actually, you were. Woz's BASIC was known as "Integer BASIC" and wasn't all that widely used once Microsoft's Applesoft BASIC (now with floating point!) came along.

      Microsoft got its start writing BASIC interpreters. Bill Gates created one for the Altair, which he charged for, and which was widely pirated. Setting the tone for the rest of his career, he lashed out with a scathing open letter to computer hobbyists, saying that quality software couldn't possibly be created without sinking a significant amount of money into it.

      Deja vu, eh? Helps to know your history.

    11. Re:WHY! WON'T! IT! DIE! by Anonymous Coward · · Score: 0

      One of the first programs Bill Gates is known to have created is a BASIC intepreter, I beleive for one of the PDP's at MIT. It's also the point where he decided that sharing source code was a bad idea.
      (At the time, people just put their source code tapes in a public drawer and whoever wanted to change them could do it at will. Apparently, young Bill didn't like that idea.) Read the book "Hackers" by Steven Levy, he tells the whole story.

    12. Re:WHY! WON'T! IT! DIE! by Havokmon · · Score: 1
      For a long time, DOS and the early Windows shipped with a free basic interpreter (sadly, those days are over).

      No kidding, it came with a convenient ASCII Table. ;)

      --
      "I can't give you a brain, so I'll give you a diploma" - The Great Oz (blatently stolen sig)
    13. Re:WHY! WON'T! IT! DIE! by Seehund · · Score: 1

      They had several versions of it. For example, it was Microsoft that supplied Commodore with the abomination known as AmigaBASIC, which defiled AmigaOS up to v1.2, IIRC.

      10 GOTO 1985
      20 Get a spiffy new Übercomputer.
      30 Discover AmigaBASIC.
      40 ???
      50 Give up any dreams of becoming a programmer!!!

      Luckily for budding programmers, stuff like ARexx and AMOS eventually appeared.

      --
      Help savingAmigaOS and a free PowerPC market
    14. Re:WHY! WON'T! IT! DIE! by sdjunky · · Score: 1

      "For a long time, DOS and the early Windows shipped with a free basic interpreter (sadly, those days are over)."

      But my Windows XP does come with QBASIC so there is still a free basic interpreter.

    15. Re:WHY! WON'T! IT! DIE! by MrIrwin · · Score: 1
      Microsoft was founded when Bill persuaded his roomate Paul to do ports of the Digital Basic interpreter which was, shock horror, open source.

      They never talk to Steve about these things thougth.

      --

      And if you thought that was boring you obviously havn't read my Journal ;-)

    16. Re:WHY! WON'T! IT! DIE! by Short+Circuit · · Score: 1

      OK, what language is your sig in? I can tell it's a "Hello World" app.

    17. Re:WHY! WON'T! IT! DIE! by joeykiller · · Score: 4, Informative
      BASIC was always the applications and scripting language at Microsoft. For a long time, DOS and the early Windows shipped with a free basic interpreter (sadly, those days are over).
      Actually, they're not. Every copy of Windows XP, and probably Windows 2000 and ME and maybe even 98, ships with the Windows Scripting Host. One of the languages supported by WSH is VBScript ("Visual Basic Script").

      VBScript is surprisingly capable. Read more about it here.

    18. Re:WHY! WON'T! IT! DIE! by JaxWeb · · Score: 1

      Actually, according to the book "Accidental Empires", it was a program for their school to make time tables. It apparently had a hidden feature which put him in the same class as the nice girls. He was 10 at the time, iirc.

      Not sure how true it is. I'm not sure if Robert X Cringely knows either, but interesting none-the-less.

      --
      - Jax
    19. 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
    20. Re:WHY! WON'T! IT! DIE! by rice_burners_suck · · Score: 0, Flamebait
      BASIC is still Microsoft's language for application automation

      And herein lies the strength. I wouldn't be surprised if every Microsoft software actually contains an embedded copy of their original BASIC interpreter from 1980 or whenever, and the program itself is actually written in BASIC. Also, I wouldn't be surprised if they have a company policy against using any method of flow control except GOTOs. It is design decisions like these that make Windows the most efficient, cost effective, secure, and bug free software in the world.

      Oh yeah, and Linux iz th4 suxx0rz bec4us3 it do3sn'7 !nc1ude BASIC in th4 k3rn31!!!111111111111

    21. Re:WHY! WON'T! IT! DIE! by Theatetus · · Score: 1

      Unlambda.
      A language combining the efficiency and speed of Haskell with the maintainability and ease of use of Intercal.

      --
      All's true that is mistrusted
    22. 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)

    23. Re:WHY! WON'T! IT! DIE! by poobie · · Score: 1

      IIRCC, they shipped GWBASIC (Gee Whiz BASIC I believe) until MS-DOS 5.0. Seems like that was also the first version of DOS available as a standalone product. 4.11 was the last version I ran that shipped with GW vs. Q.

    24. Re:WHY! WON'T! IT! DIE! by dasmegabyte · · Score: 2, Informative
      Windows shipped with a free basic interpreter (sadly, those days are over)

      Au contraire. Open Notepad. Type in:
      Dim message
      message = "Hello World!"
      WScript.Echo message
      Save it as Hello.vbs. Then, double click on it. Your program will be loaded and interpreted by the Windows Scripting Host, a batch processing system that's been available for Windows since 1998 and installed by default as of 1999. It allocates a variable called message, assigns the string "Hello World!" to that variable, and then passes the Variable to a static function of the globally available object WScript, which echos the message to the screen.

      This works in ME and 2k, might work in XP as well (though hopefully they locked it down). VBScript is just one language used by WSH (JScript is another, and plug ins exist for Perl, Python, Ruby, etc). WSH offers programs written in these languages access to any and all COM objects, which gives access to most Windows functionality. It's goddamn powerful...which is why it's used by such deadly viruses.
      --
      Hey freaks: now you're ju
    25. Re:WHY! WON'T! IT! DIE! by jspayne · · Score: 1
      What's the connection between MS and BASIC?

      While he was a student at Harvard, he co-authored with Paul Allen the original Altair BASIC interpreter for the Altair 8800 (the first commercially successful personal computer) in the mid 1970s. It was inspired by BASIC, an easy-to-learn programming language developed at Dartmouth College for teaching purposes.

      [...]

      In 1975, Gates and Allen co-founded Microsoft Corporation to market their version of BASIC, called Microsoft BASIC. It was the primary interpreted computer language of the MS-DOS operating system, and was key to Microsoft's early commercial success.

      Found here.

    26. Re:WHY! WON'T! IT! DIE! by jonabbey · · Score: 1

      No. Metacomco produced the original Amiga basic, known as 'ABasic', which shipped with Amiga OS 1.0/1.1, I believe. Starting at 1.2 (or thereabouts), Commodore replaced ABasic with Microsoft's AmigaBasic.

      AmigaBasic was just about a straight port of their Macintosh Basic, and it didn't do nearly as nice a job in supporting the Amiga's sound chip as ABasic did. It was quite slow, as well. The only thing it really did better was windowing under Intuition.

      Metacomco's ABasic even included a command line editing feature based on that included by Microsoft in TRS-80 Level II Basic.. now that's some good eating!

    27. Re:WHY! WON'T! IT! DIE! by Matt+-+Duke+'05 · · Score: 1

      im sorry.. i posted this earlier, but i just couldn't resist posting it again in response to your nonsense:

      --($:/usr/src/linux-2.6.0)-- find . |xargs grep goto | wc -l
      25108

      --
      -Matt
      Duke '05
    28. Re:WHY! WON'T! IT! DIE! by Anonymous Coward · · Score: 0


      A lot of the MS Windows resource kits from OS/2 on also included rexx if you cared to use it.

    29. Re:WHY! WON'T! IT! DIE! by Anonymous Coward · · Score: 0

      Is your box an upgrade from Windows 98? A fresh XP install doesn't include QBASIC.

    30. Re:WHY! WON'T! IT! DIE! by Patrik_AKA_RedX · · Score: 1
      It apparently had a hidden feature which put him in the same class as the nice girls. He was 10 at the time, iirc.
      He wrote a program with computer vision that could recognise good looking girls?! Wow, impressive! But what happend with that technology?
    31. Re:WHY! WON'T! IT! DIE! by Marxist+Hacker+42 · · Score: 0

      ALTAIR Basic was Microsoft's first product- but it was just a port of PDP-11 Basic.
      So in a way- Bill pirated his first product

      --
      SJW: a person who perceives an injustice, and while correcting it, commits a greater injustice.
    32. Re:WHY! WON'T! IT! DIE! by IntlHarvester · · Score: 1

      There was some reason for that I used Integer BASIC instead of AppleSoft for a program -- I want to say that IBASIC had PRINT USING and AppleSoft did not, but that could be wrong about that.

      There was also the much better MBASIC if you had the CP/M Softcard.

      --
      Business. Numbers. Money. People. Computer World.
    33. Re:WHY! WON'T! IT! DIE! by aled · · Score: 1

      If it was his software it was his right, isn't it?
      Hey, at least he wrote an interpreter!

      --

      "I think this line is mostly filler"
    34. Re:WHY! WON'T! IT! DIE! by sdjunky · · Score: 1

      No. I never do an OS "upgrade" too unstable (as if windows isn't enough already)

      It's XP Pro though so that may be why. I know that Win2K didn't include it at all though.

    35. Re:WHY! WON'T! IT! DIE! by TheClam · · Score: 1

      Quote:

      "Nothing would please me more than being able to hire ten programmers and deluge the hobby market with good software."

      Holy shit.

    36. Re:WHY! WON'T! IT! DIE! by Colonel+Cholling · · Score: 1

      Don't forget, Microsoft's Altair BASIC was also extensively traded by the Homebrew Computer Club and other groups, prompting Gates to publish his famous letter accusing them of stealing. This is, I believe, the first instance of a software company going after end users for software piracy.

      --

      I am Sartre of the Borg. Existence is futile.
    37. Re:WHY! WON'T! IT! DIE! by Bigman · · Score: 1

      Microsoft BASIC? It was practically everywhere. The version of BASIC on the Commodore PET was licenced from MS IIRC. I had Microsoft BASIC on my Atari 400 (It came on a cartridge as an alternative to Atari Basic). Although I remember reading somewhere that MS bought BASIC from someone else and upgraded it, but I can't find a ref to that at the moment.

      --
      *--BigMan--- Time flies like an arrow.. but personally I prefer a nice glass of wine!
    38. Re:WHY! WON'T! IT! DIE! by Anonymous Coward · · Score: 0


      GW-BASIC - commonly known as Gee-Whizz BASIC

    39. Re:WHY! WON'T! IT! DIE! by AndroidCat · · Score: 1

      No qbasic here. What's the executable called? (I want to hunt it down and kill it.)

      --
      One line blog. I hear that they're called Twitters now.
    40. Re:WHY! WON'T! IT! DIE! by Seehund · · Score: 1

      Thanks for that info, I've never tried ABasiC.

      But AFAIK, ABasiC only shipped with AmigaOS/Workbench up to v 1.1. That would mean it only came with the Amiga 1000, wouldn't it? I got my first own Amiga (A500) when WB 1.3 was new, and remember missing a BASIC interpreter from my C=64, so I got AmigaBASIC from a friend who had an early A500 and WB 1.2.

      --
      Help savingAmigaOS and a free PowerPC market
    41. Re:WHY! WON'T! IT! DIE! by jonabbey · · Score: 1

      Yup. I had got my Amiga 1000 in late '85, and it came with EA's Kaleidoscope demo, ABasiC, and that was about it. I had some fun programming in ABasiC before EA finally made with Seven Cities of Gold, Archon, and the like.

    42. Re:WHY! WON'T! IT! DIE! by bhtooefr · · Score: 1

      No, it wasn't, as he was using an Apple ][e, not I/][/][+ (BTW, it was called Integer Basic). It was Applesoft BASIC. You want to take a guess as to where the "soft" came from? Yep, it's MS 6502 Basic with Apple modifications.

    43. Re:WHY! WON'T! IT! DIE! by ThisIsFred · · Score: 1

      VBScript is surprisingly capable.

      I know, and that's a problem, especially since Windows filetype associations decides that all VB scripts are to be executed, and not edited, by default.

      --
      Fred

      "A fool and his freedom are soon parted"
      -RMS
    44. Re:WHY! WON'T! IT! DIE! by bhtooefr · · Score: 1

      I once had a 386 clone that one day crashed (while running Windows 3.10 with IE 3.0), and displayed (in 40x25, no less) this NO ROM BASIC error. It did this WHILE it was running Windows, too.

    45. Re:WHY! WON'T! IT! DIE! by laresek · · Score: 1

      Why stop there? Future versions of windows will ship with the .NET Framework, which gives you a free command line version of C# and VB.NET!

    46. Re:WHY! WON'T! IT! DIE! by Anonymous Coward · · Score: 0

      Visual Basic remains one of Microsoft's flagship products. It's philosophy is similar to the original BASIC philosophy: you shouldn't have to be a comp sci graduate to write computer programs. Whether VB succeeds in that regard is another question, but it's what they intended.

      Visual Basic's primary function is a rapid application development language, although with VB.NET's obsession with object oriented programming makes you type a bit more then VB 6 required to do the same things.

      Simplicity and ease of use comes with the BASIC syntax.

      -- paper

    47. Re:WHY! WON'T! IT! DIE! by ishmaelflood · · Score: 1

      It isn't installed, but if you look around on the CD it is there, qbasic.ex_ at a guess. Leastways, it is on my NT 4.0 CD.

    48. Re:WHY! WON'T! IT! DIE! by Wolfrider · · Score: 1

      --I always understood it to mean "Gee-Whiz Basic." Not kidding! ...and we LIKED IT!!

      --
      .
      == WolfriderV6 == I'm willing to admit that *I just might* be wrong... Are you??
    49. Re:WHY! WON'T! IT! DIE! by Anonymous Coward · · Score: 0
      It's possible to change the defaults. Type this in a command prompt:
      ftype VBEFile=%SystemRoot%\System32\NOTEPAD.EXE "%1"
      ftype VBSFile=%SystemRoot%\System32\NOTEPAD.EXE "%1"
    50. Re:WHY! WON'T! IT! DIE! by Firehawke · · Score: 1

      It does still come with VBScript built in via the Windows Scripting Host-- you could pull out a copy of notepad and code up a quick applet right from a fresh install.

    51. Re:WHY! WON'T! IT! DIE! by ThisIsFred · · Score: 1

      Too bad you posted as AC, because no one will see this and mod it up as "Informative".

      --
      Fred

      "A fool and his freedom are soon parted"
      -RMS
    52. Re:WHY! WON'T! IT! DIE! by Anonymous Coward · · Score: 0

      Their first product was a BASIC [Compiler/Interpreter] for the Altair I believe. That's how they made their first millions. They made almost every best selling BASIC interpreter ever made for every platform. They then purchased DOS from some guy in New Mexico, I think, and licensed it to IBM, who screwed the pooch by allowing MS to keep all rights to the software.

      IBM simply shelled out license fee after license fee to pay for DOS (PC-DOS I think it was called at the time, but I could be getting confused), which was required for their PCs to be marketable. Thus they entangled their success with MS, getting locked in to using MS software. This continued all the way through to Windows 3.x.

      MS doesn't need a monopoly to perform software lock-in.

  15. Whew! by shut_up_man · · Score: 1

    I think this story wins the "formatting most likely to make people think Slashdot has been hacked" award.

    1. Re:Whew! by Anonymous Coward · · Score: 0

      Shut up man

  16. From the Jargon File by idiot900 · · Score: 4, Interesting
    Alright, I'll commence the BASIC-bashing by quoting from the Jargon File:


    BASIC

    [acronym, from Beginner's All-purpose Symbolic Instruction Code] n. A programming language, originally designed for Dartmouth's experimental timesharing system in the early 1960s, which has since become the leading cause of brain-damage in proto-hackers. This is another case (like Pascal) of the cascading lossage that happens when a language deliberately designed as an educational toy gets taken too seriously. A novice can write short BASIC programs (on the order of 10--20 lines) very easily; writing anything longer is (a) very painful, and (b) encourages bad habits that will make it harder to use more powerful languages well. This wouldn't be so bad if historical accidents hadn't made BASIC so common on low-end micros. As it is, it ruins thousands of potential wizards a year.
    1. Re:From the Jargon File by Anonymous Coward · · Score: 0

      People seem to forget that as languages are extended, they CAN be used for more than 'educational toys'. Delphi/Kylix (Object Pascal) is an excellent example. VB is maturing as well, with the .NET version and all.

      (...I must be new here.)

    2. Re:From the Jargon File by ch-chuck · · Score: 1

      if historical accidents hadn't made BASIC so common on low-end micros.

      Another Micro-Soft Innovation®

      --
      try { do() || do_not(); } catch (JediException err) { yoda(err); }
    3. Re:From the Jargon File by Hexact · · Score: 2, Interesting

      I used GWBasic to write an organization chart program back in 85. By the end, I had to strip a line of comment for each line of programming I was adding.

      All that to make it fit into 64k.

      Very painful indeed.

      BTW. it was on a Zenith Heath clone. I think it ran at 6Mhz. A real speed deamon compared to the original PC which ran at 4.77Mhz.

      Clem.

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

    5. Re:From the Jargon File by plugger · · Score: 1

      Was the Zenith one of those early not-quite-PC-compatible machines, with a version of MSDOS but a different BIOS? No playing Sopwith for you then :-)

    6. Re:From the Jargon File by bar-agent · · Score: 1

      Bah. I learned structured programming on C-128 BASIC! Complete with the One True Indentation Style.

      --
      i'd hit it so hard, if you pulled me out you'd be the king of britain [bash.org]
    7. Re:From the Jargon File by richg74 · · Score: 2, Interesting
      I think the worst program I ever saw was a BASIC program, written for an HP mini by another grad student. It was intended to sort the contents of a file. It did this by (a) using temporary workspace six times the size of the input file, and (b) destroying the input file as it went. Printed out (on a Teletype, this was the early 1970s), it was several feet long, and completely incomprehensible. But it could sort a 500-line input file in under an hour!

      The guy that wrote this masterpiece had great difficulty finding someone to help him debug it. This was partially owing to the characteristics of the program, but mostly because his personal hygeine meant no one was willing to be in the same room unless all the windows were open, and it was January in Chicago.

    8. Re:From the Jargon File by Anonymous Coward · · Score: 0

      Any "potential wizard" who can't recognize, on their own, the drawbacks of BASIC does not deserve to be one.

      Same applies to any other language or tool.

    9. Re:From the Jargon File by Frizzle+Fry · · Score: 1
      It could still be worse

      Are you sure this is worse?
      --
      I'd rather be lucky than good.
    10. Re:From the Jargon File by Anonymous Coward · · Score: 0

      Although I'm a big fan of the Jargon File, I have to disagree with its position on BASIC as an educational language. I first learned how to program in TI-BASIC, the programming language on the various TI calculators (83, 83+, etc). Before that, I knew nothing about how programs worked; I had no mental conception of them. That's what TI BASIC did for me. It gave me a basic idea of how programs did what they did. Yes, I used gotos and labels, but when I progressed to a higher language (C++) and learned its structures, I was able to see the usefulness of those more advanced structures. So in a way, the deficencies of BASIC helped me realize how other structures can be better, and so I now have a deeper understanding of the more advanced idioms and techniques. Of course, I don't doubt that I'd be a worse programmer if I had completely rejected other languages; I guess the Jargon File is right on that point.

    11. Re:From the Jargon File by Hexact · · Score: 1

      Yes it was. Great BIOS. Almost as feature rich as the modern ones (at least that's how I remember it).

      Nerver heard of Sopwith.

    12. Re:From the Jargon File by AndroidCat · · Score: 1

      Not really. BASIC was popular at the time, and if not for them, someone else would have done it. (And some might say that someone else did in 1972.)

      --
      One line blog. I hear that they're called Twitters now.
    13. Re:From the Jargon File by ThisIsFred · · Score: 1

      That's nice, but University professors weren't exactly stumbling over themselves to make available C compilers or Lisp interpreters from home micros, so we used what we had. It was two choices, assembly or BASIC. Most of us learned to combine the two for short programs, and got some decent reference manuals for doing assembly on the big projects.

      Thank heavens for Stallman. If he hadn't come along, I guess the only way I'd get my hands on some decent programming tools would be to spend the taxpayer's money while making fun of them.

      --
      Fred

      "A fool and his freedom are soon parted"
      -RMS
    14. Re:From the Jargon File by bhtooefr · · Score: 1

      Google Sopwith 2, and (if you've got a Winbox) play it (or The Author's Edition).

      It's a multiplayer network game designed to show off BMB CompuScience's network system, but the network parts are useless (it's still fun against the computer, though). I didn't know it was dependent on a standard BIOS, though...

    15. Re:From the Jargon File by Anonymous Coward · · Score: 0

      if you know anything about computer languages. Then you know that if a language is Turing complete, then it can represent any state machine. Basic happens to be Turing complete.

    16. Re:From the Jargon File by Anonymous Coward · · Score: 0

      Programming tools were around long before Stallman. And the decent ones are all commercial anyways. Do you consider Stallman your personal Jesus or something?

    17. Re:From the Jargon File by ThisIsFred · · Score: 1

      No, but I condsider myself of limited financial means. So, Stallman has given me a tremendous gift.

      --
      Fred

      "A fool and his freedom are soon parted"
      -RMS
  17. AAAaaaaghhh by Doesn't_Comment_Code · · Score: 2, Interesting

    Damn I hated numbering each line of code!

    And when you had to add something and have uneven spacing of line numbers... Oh it just drives the type A personality in me nuts!

    The only good part about line numbers was how easy it made it to write GOTO statements.

    --

    Slashdot Syndrome: the sudden, extreme urge to correct someone in order to validate one's self.
    1. Re:AAAaaaaghhh by MikeXpop · · Score: 1
      You know, you didn't have to use numbers. Say for example, this would compile fine:
      10 PRINT "I am a"
      30 PRINT "functional member of society"
      END
      Or
      PRINT "omg lol"
      END
      --
      Etiquette is etiquette. He kills his mother but he can't wear grey trousers.
    2. Re:AAAaaaaghhh by grub · · Score: 1


      Most "modern" BASICs don't require line numbers. They support user-defined functions, etc.(that's based on Microsoft PDS (Professional Development System aka BASIC back in the early 90's.) I haven't touched a BASIC since but it was suprisingly grown up from the old 10 REM style of coding. Ah yeah it was compiled too. I'd guess that was the precursor to VB.

      --
      Trolling is a art,
    3. Re:AAAaaaaghhh by Anonymous Coward · · Score: 0

      Didn't your interpreter have a RENUM command?

    4. Re:AAAaaaaghhh by Doesn't_Comment_Code · · Score: 1

      If only I couldn've known then the things that I know now...

      --

      Slashdot Syndrome: the sudden, extreme urge to correct someone in order to validate one's self.
    5. Re:AAAaaaaghhh by drivers · · Score: 2, Informative

      Damn I hated numbering each line of code!

      And when you had to add something and have uneven spacing of line numbers... Oh it just drives the type A personality in me nuts!


      Ah, but AUTO numbers the lines for you. You get a new number each time you hit enter. AUTO [n] starts at line [n].

      RENUM renumbers all the lines with a consistent spacing, including the GOTOs, GOSUBs, etc.

      I can't believe I still remember that PC-DOS BASICA stuff.

    6. Re:AAAaaaaghhh by tepples · · Score: 3, Interesting

      10 LET M$ = "Microsoft"

      And when you had to add something and have uneven spacing of line numbers

      Of course, that's why many micro BASIC dialects had a renumbering program available.

    7. Re:AAAaaaaghhh by tttonyyy · · Score: 1
      And when you had to add something and have uneven spacing of line numbers... Oh it just drives the type A personality in me nuts!

      Wha... you never discovered "RENUMBER"?

      Heh, I was so chuffed when I upgraded from my ZX Spectrum to the ZX Spectrum +3A and discovered that functionality. :)

      --
      biopowered.co.uk - catalytically cracking triglycerides for home automotive use since 2008. Just say no to big oil!
    8. Re:AAAaaaaghhh by SirTwitchALot · · Score: 1

      Nowadays sure, but back in the good 'ole days you didn't have all these spiffy editing programs. You typed your code in, one line at a time at the command prompt. The interpreter inserted that line into its proper place relative to the line number you started with. If you typed a command without a line number, the command ran instantly. I can remember hours of frustration on my Apple IIc when I'd space lines too closely and run out of room to insert the one line I needed to make my program work as I wanted.

      --
      Go away, or I will replace you with a very small shell script.
    9. Re:AAAaaaaghhh by Anonymous Coward · · Score: 0

      Duh! When you added something you could RENUM the program it would respace everything out properly!

      Jesus christ! ./ Moron

    10. Re:AAAaaaaghhh by mph · · Score: 1
      Wha... you never discovered "RENUMBER"?
      You've forgotten the one thing that all BASIC versions had in common: They were all different.
    11. Re:AAAaaaaghhh by Squirrel+Killer · · Score: 1
      Most early versions of BASIC didn't let you omit line numbers. 8-bit Commodores, Apples, and Ataris made you use line numbers. The Amiga was the first computer I remember that had a version of BASIC that didn't require them, but I'm sure there were others. A couple computers had an AUTO command that after you entered one line, would automatically put the next line number on the next line, and there were programs out there that would renumber your program, so you could make:

      5 REM Hello World!
      6 REM By ME!
      10 PRINT "HELLO WORLD!"
      13 GOTO 10

      into:

      10 REM Hello World!
      20 REM By ME!
      30 PRINT "HELLO WORLD!"
      40 GOTO 30

    12. Re:AAAaaaaghhh by zakezuke · · Score: 1

      And when you had to add something and have uneven spacing of line numbers... Oh it just drives the type A personality in me nuts!

      I learned on the TI-99/4a... I can't remember if it was its extended basic or regular basic that had the ability to renumber what you had in memory already. As in you could do 10 20 30... add in a 15, renumber 1,2,3,4, and renumber 10,20,30,40.

      I can't remember if it was the TI or the Atari that offered auto line numbering... as it it would pretype 20 in for you if you started with 10.

      --
      There is no sanctuary. There is no sanctuary. SHUT UP! There is no shut up. There is no shut up.
    13. Re:AAAaaaaghhh by alanthenerd · · Score: 1

      the interpreter i used had to coomands that handled this nicely.
      autonum - as you might expect automatically generated line numbers leaving me free to type code.
      renum - renumbered all lines at an increment of 10

    14. Re:AAAaaaaghhh by Dun+Malg · · Score: 1
      I can remember hours of frustration on my Apple IIc when I'd space lines too closely and run out of room to insert the one line I needed to make my program work as I wanted.

      That's easy to fix. Replace one of those lines with GOTO 12000, then put all that stuff at 12000, ending with a GOTO pointed at the line after GOTO 12000. The first time I had to do that, my first thought was "this is going to turn out badly". It turned out I was right.

      --
      If a job's not worth doing, it's not worth doing right.
    15. Re:AAAaaaaghhh by AKAImBatman · · Score: 1

      Do yourself a favor will you? Use a GOSUB!

    16. Re:AAAaaaaghhh by WWWWolf · · Score: 1

      BASIC coders should never leave home without a BASIC expander that had RENUM command. Type "RENUM", let it crunch for a few minutes, and tadah.

      My favorite was the one I had - The Final Cartridge 3 for Commodore 64. It even had some weird spacing setting or something. Can't remember.

      I could do some cool stuff with it. Joining two program files more or less safely was a piece of cake: RENUM 1000, DSAVE"PART1", DLOAD"PART2", RENUM 2000, DAPPEND"PART1", ORDER, RENUM, DSAVE"MERGEDPROGGY"

    17. Re:AAAaaaaghhh by pomakis · · Score: 1
      That's easy to fix. Replace one of those lines with GOTO 12000, then put all that stuff at 12000, ending with a GOTO pointed at the line after GOTO 12000. The first time I had to do that, my first thought was "this is going to turn out badly". It turned out I was right.

      When I encountered this problem for the first time, I decided to use a GOSUB instead. My first thought was "this is going to turn out badly". It turned out that I was wrong; I had just discovered structured programming.

    18. Re:AAAaaaaghhh by tverbeek · · Score: 2, Interesting
      You know, you didn't have to use numbers. Say for example, this would compile fine:

      "Compile"? In BASIC's heyday, it was almost always interpretted. The line numbers were essential because programs were usually typed interactively, line by line. Need to insert a command between lines 50 and 60? Simply type "55 PRINT NAME$" (or whatever) and the new command is inserted.

      By the way, some BASIC systems (I don't recall which of the several I used... TRS-80, Atari, DEC, GW-BASIC) had the ability to renumber your lines for you, in case you ran out of integers in a particular range.

      --
      http://alternatives.rzero.com/
    19. Re:AAAaaaaghhh by Marxist+Hacker+42 · · Score: 0

      Both Atari and TI had auto line numbering. Atari was simply starting on line 10, TI you used the NUM Start,Increment command. Renum start, incroment had a default of 100 on TI- so most TI programs in magazines started at 100.

      Junior Leader of the Victor Point Computer 4-H club in Marion Co. OR. When I abandoned my sheep herd to work on computers, and left them to just graze in the pasture, I doubled the size of the herd. Never looked back.
      Ted

      --
      SJW: a person who perceives an injustice, and while correcting it, commits a greater injustice.
    20. Re:AAAaaaaghhh by Dun+Malg · · Score: 1
      Do yourself a favor will you? Use a GOSUB!

      Hah! GOSUB is for wieners! Also, it's really the same thing as a spaghetti GOTO call, only you have an inscrutable RETURN at the end instead of a GOTO telling you where it came from originally.

      --
      If a job's not worth doing, it's not worth doing right.
    21. Re:AAAaaaaghhh by Dun+Malg · · Score: 1
      When I encountered this problem for the first time, I decided to use a GOSUB instead. My first thought was "this is going to turn out badly". It turned out that I was wrong; I had just discovered structured programming.

      Heh. GOSUB is an even worse choice for "stretching" when you've run out of line numbers. A pair of out-and-back GOTOs is better because instead of an inscrutable RETURN at the end, you have a GOTO pointing back to where this little code segment really belongs. GOSUB is only structured if you're actually breaking things into discrete elements. Spaghetti is spaghetti, no matter how you make it.

      --
      If a job's not worth doing, it's not worth doing right.
    22. Re:AAAaaaaghhh by AKAImBatman · · Score: 1

      Didn't your interpreter have a renum command? Mine did. If the program got too long, I'd just type "renum" and watch it all magically fix itself. And sub-routines were a good thing. as line numbers tended to be very fragile and prone to breaking. Of course, now every SciFi show in history now uses the term "subroutine". ARRRRGGHHHHH!!!

    23. Re:AAAaaaaghhh by lightspawn · · Score: 1

      Damn I hated numbering each line of code!

      And when you had to add something and have uneven spacing of line numbers... Oh it just drives the type A personality in me nuts!


      Some of the BASIC dialects I used back in the day had a RENUM command to do that automagically.

    24. Re:AAAaaaaghhh by Dun+Malg · · Score: 1
      Didn't your interpreter have a renum command? Mine did. If the program got too long, I'd just type "renum" and watch it all magically fix itself.

      Hah! I wish. It was a Commodore 64. By the time I found an after-market assembly patch to add a renumbering command, I had already discovered "planning" and (even better) 6502 assembly.

      --
      If a job's not worth doing, it's not worth doing right.
    25. Re:AAAaaaaghhh by Sj0 · · Score: 1

      The next version of QB after PDS was called VBDOS 1.0. Pretty nice. 0/2/386 compilation, lots of nifty little automated things, like checking the date and time in a thousand different ways.

      I still play with basic quite often. I like it. :)

      http://djrpg.sourceforge.net (!!!)

      --
      It's been a long time.
    26. Re:AAAaaaaghhh by bhtooefr · · Score: 1

      I thought the C64 had a 6510...

      Yes, I know, 6502 code will run fine on a 6510, but you're not utilizing the whole CPU there... However, if you happened to be writing something us Apple users wanted, we have YOU to thank for writing in 6502 instead of 6510 - means it's easier to port.

    27. Re:AAAaaaaghhh by bhtooefr · · Score: 1

      Isn't it basically the steaming pile of crap we all know as Visual Basic, just for DOS?

      BTW, I don't think the SF.net site is what you wanted, as they're trying to distance themselves from VBDOS, and it looks like they never distributed VBDOS.

    28. Re:AAAaaaaghhh by Sj0 · · Score: 1

      Eventually even old kodgers like me have to face facts and move on. Windows' DOS compatiblity gets worse with every revision, and I shouldn't spend as much time as I have trying to keep the jrpg runtime engine from imploding under the weight of the VM, so it's all being ported to a modern language in pmode with nice cross-platform lib...

      VBDOS is more QB than VB, in a good way. There are libraries for object oriented RAD GUI design included, but it's infinitely more useful when you remember you have hardware access and other real-mode niceties available to you.

      --
      It's been a long time.
    29. Re:AAAaaaaghhh by dagarath · · Score: 1

      Flames or Praise of 'BASIC' really need to be tied to a specific version. References to a generic 'BASIC' are almost useless. There have been more versions of a BASIC-like programming language over the years than we can keep track of. Some posts are referencing versions before the micro-computer era. But, here's a short list.

      TRS-80 model 1 basic
      TRS-80 model 3 basic
      Integer Basic
      Applesoft
      basic-a / gw-basic
      commodore basic

      Are all of the spagetti code goto/gosub/line number family. They were originally implemented in ROM and always available. Many started programming with these basic's to play with their home computers. The comments about poor programming structure stem from these varients.

      quickbasic (1 thru 4.5)
      qbasic
      ms basic pds
      vbdos
      turbobasic
      powerbasic

      These were much more structured versions of basic, frequently available with compilers, libraries. They support more programming formats for sub/function and no line number requirement. The MS series was successful due to the beginner friendly IDE, syntax checking as each line was typed, F1 available help on any keyword or variable name, F2 available list of functions and subs. 3rd party libraries were widespread for this group. VBDOS was a limited time product since MS dropped it almost as soon as it was released. These languages don't teach any worse procedural programming habits than other languages of their level. Personally I think this niche has been replaced by the high level scripting languages available today. (perl, php, python, ruby, vbscript, etc)

      visual basic
      Was very successful with the new GUI developments on MS Windows and MS soon abandoned their DOS basic line. Integration as VBA will probably keep this variant of basic alive almost forever.

    30. Re:AAAaaaaghhh by aziraphale · · Score: 1

      But... that would have stopped me from being able to write code like this:

      10 LET a$ = INKEY$()
      20 LET b = ASC(a$)
      30 GOTO b
      32 PRINT "you pressed -space-"
      33 PRINT "you pressed -!-" ...
      126 PRINT "you pressed -~-"
      130 END

      Run renum on that and see what a mess it makes...

      More seriously, I hated renum routines because when you've got nicely spaced out subroutines set up at memorable lines like 1000, 2000, 5000, 10000, and so on, once you've run renum they end up at 430, 470, 520 and so on. Still, you could always get round that by having a few lines at the top of your code declaring things like:

      100 LET SUB_HANDLE_INPUT = 1000

      and your subroutine calls look like:

      160 GOSUB SUB_HANDLE_INPUT

      then when you renumbered, and that sub turned up at line 540, you just edit line 100 and change the value of SUB_HANDLE_INPUT.

      I guess the point is, a form of structured programming's quite achievable in BASIC - you can pass subroutine locations around in variables - even do a crude kind of function-pointer-arithmetic, which might even allow you to code rudimentary 'classes' in it. It was definitely a fun language to stretch the boundaries of.

    31. Re:AAAaaaaghhh by AKAImBatman · · Score: 1

      My God. It would have killed you to use an "if" statement, wouldn't it? Or more flexibly, a data structure or array. BASIC did have the DATA keyword for a reason you know...

    32. Re:AAAaaaaghhh by Dun+Malg · · Score: 1
      I thought the C64 had a 6510... Yes, I know, 6502 code will run fine on a 6510, but you're not utilizing the whole CPU there

      Actually, the difference between the two is quite minimal. The instruction set is identical, but the 6510 had a 6-bit IO port that Commodore used with a PLA to implement bank switching. This is how they managed to have a system with 48K ROM and 64K RAM with a CPU limited to a 64K address space. It was a pretty cool setup: you could copy the contents of ROM to the RAM "underneath", flip out the ROM and the kernel would seamlessly switch to running from the copy in RAM. You could then patch it all kinds of ways. Another trick was to load a program that didn't need the kernel into the RAM underneath the ROM, flip out ALL the ROM and give you almost the full 64K to run it. A lot of Commodore games used that trick.

      --
      If a job's not worth doing, it's not worth doing right.
    33. Re:AAAaaaaghhh by bhtooefr · · Score: 1

      We had bank switching too, you know. AFAIK, there were cards that pushed your RAM to 3584K (Apple sold some that went to 65K and 128K, and 1MB cards were very common back in the day), and there were apps that used it (AppleWorks 5.0 needed AT LEAST 256K RAM, and it ran on a CPU that only handled 64K at a time).

  18. Excellent post by Manhigh · · Score: 1

    Thanks for the creativity.

    --
    "Open the pod by doors, Hal" > "I'm afraid I can't do that, Dave" sudo "Open the pod bay doors, Hal" > alright
  19. Re:fp by Anonymous Coward · · Score: 0

    10 CLS
    20 PRINT "I fail it!"
    30 END

  20. And then came VB by John+Starks · · Score: 5, Insightful

    Then VB came, and a language was created that was muscular enough to script Word macro viruses, but simple enough to enfuriate good programmers (I mean, really, no short circuit boolean operators? It makes me weep.)

    1. Re:And then came VB by dasmegabyte · · Score: 2, Interesting

      Oh yeah? Wait until you see VB.NET. That makes me want to Weep AndAlso Scream OrElse Not IsNothing(MyCSharpSkills)

      "Nothing" drives me up a wall, it's goddamn null you assholes! As do modifiers like Shared (aka static), Overridable (aka virtual), Shadows (aka new), MyBase, Me and MustOverride (aka abstract). In fact, were it not for these inscruitably obnoxious naming conventions, VB.NET would be a pretty awesome language. Sadly, it falls into the same trap as the user interface of XP: trying to solve usability issues by using more (and bigger) words. Hey guys, if you don't understand the concept behind an internal method, calling it a "Friend" method isn't going to help. At best, all you're doing is confusing those of us who already know what an internal method is (and think of a friend method as something completely different!)

      --
      Hey freaks: now you're ju
    2. Re:And then came VB by KlomDark · · Score: 1

      Tell that to the damn Java people with their stupid coffee-related terms for non-new concepts like Bean for Object. Java is a shitty language just as bad as VB.

    3. Re:And then came VB by Anonymous Coward · · Score: 0

      Amen to that, bro'!

    4. Re:And then came VB by dasmegabyte · · Score: 1

      Yes, I hate it when programmers take it upon themselves to do their own marketting. Java is FULL of that shit. Maybe I don't WANT to debug the Realmuse EJBs embedded in a TagLib of a JSP compiled to a Servlet to run on the Catalina engine of Tomcat. Maybe I just want to write a fucking web application in Java!

      --
      Hey freaks: now you're ju
    5. Re:And then came VB by Xoc-S · · Score: 1

      I mean, really, no short circuit boolean operators? It makes me weep.

      Visual Basic .NET finally added short circuit boolean operators: AndAlso and OrElse

    6. Re:And then came VB by Doctor+Faustus · · Score: 2, Insightful

      "AndAlso" and "OrElse" were compromises dragged out of MicroSoft after VB.Net beta 1 was out. Originally, the regular "And" and "Or" operators were going to be short-circuiting boolean operators (they were actually bitwise in earlier MS BASICs), but that was going to cause too much trouble in the porting wizard.

      I don't think the "Is Nothing" part is different in VB.Net than in classic VB. The "Is" operator compares the pointer values in the object reference variables. If "A Is B" returns true, that means the variable A and the variable B refer to the same object, while if "A = B" returns true, that means the default functions return the same value. "Nothing" is simply a constant object reference value. You could use "A = null" instead of "A Is Nothing", but that would lead to Java's "A.equals(B)" nonsense.

      Finally, dude, if you just don't like the keyword choices in VB.Net, just use C#; they're two different shells over the same system.

    7. Re:And then came VB by Doctor+Faustus · · Score: 1

      In VB.Net beta 1, "And" and "Or" were short-circuit boolean, but that was changed for beta 2, as it would have made porting old code harder.

    8. Re:And then came VB by Doctor+Faustus · · Score: 1

      Try no boolean operators, at all. "And", "Or" and "Not" are all bitwise in MS Basic, which is why "True" is -1 (all 1s, at the bit level), rather than 1. This can lead to some strange results before you learn how it works:

      x = "This is a test."
      If Instr(x, "This") Then Whatever ' 1 is considered true; whatever is called.
      If Instr(x, " ") Then Whatever ' 5 is considered true; whatever is called.
      If Instr(x, "This") And Instr(x, " ") Then Whatever ' 1 And 5, bitwise, evaluate to 0, which is considered false. Whatever is not called.

      Putting in explicit comparisons (for example, adding "> 0" in the code above) will cause genuine -1 true values to be used, clearing up the problem. However, VB will not enforce that.

  21. 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 Anonymous Coward · · Score: 0
    2. Re:Obligatory Dijkstra quote by EnsilZah · · Score: 0

      Does that mean learning VB damages your brains' visual centers?

    3. Re:Obligatory Dijkstra quote by Anonymous Coward · · Score: 0

      10 PRINT "Ia programd 20 yaers"
      11 PRINT "in Basic"
      12 PRINT "Basic"
      13 PRINT "Basic, Basic, Basic"
      12 PRINT "and did nuot happened"
      15 PRINT "anything to I."
      20 PRINT "though I repeat myself when ynder stress..."
      30 GOTO 20
      40 REM "With apology to Adrian Belew and King Crimson"

    4. Re:Obligatory Dijkstra quote by maximilln · · Score: 2, Interesting

      I've found the quote many times.

      Are there any arguments to justify the statement?

      --
      +++ATHZ 99:5:80
    5. Re:Obligatory Dijkstra quote by AmicoToni · · Score: 1

      True, except that once upon a time such damage was often restored by a scholastic exposure to Pascal, essential but very elegant. Then you would move to objects.
      Modern day programmers do not have a similar advantage, and the "style" obtained starting with C (and often never moving, if not towards Java) often leads to unreliable (or plain ugly) code for a lifetime.
      Modern code is *extremely* fragile, and the programming language that is in use has much more to do with that than most people care to admit.

    6. Re:Obligatory Dijkstra quote by Old+Wolf · · Score: 2, Interesting

      This is the same Dijkstra who advocated that programming should only be done by people with a degree in pure mathematics

    7. Re:Obligatory Dijkstra quote by Anonymous Coward · · Score: 0

      How could Dijkstra _know_ something like this without ever having gotten deep into BASIC himself (thus incurring the brain damage he talks about)?

      I've known many programmers that started in BASIC on Sinclair ZX81's, C-64's, etc, who turned out to be quite excellent professional developers. Any brain damage we have was incurred through the educational/enculturational system. Not from playing with toy computers at home.

    8. 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
    9. Re:Obligatory Dijkstra quote by DerekLyons · · Score: 2, Insightful
      Are there any arguments to justify the statement?
      No. It exists mainly to let the wizards feel good about writing in increasingly esoteric lanquages designed mostly to fulfill academic theories, (the whole C family).

      The quote and the jargon file entry also shows that the writers and speakers thereof never saw some of the later, and much more powerful BASIC's. (QBasic (which was the professional version of Quick Basic, no mean lanquage itself. Don't confuse it with the Qbasic that shipped with later versions of DOS.), Power basic, etc...)

    10. Re:Obligatory Dijkstra quote by Sj0 · · Score: 2, Informative

      Quickbasic was the bigger brother. qbasic was v1.1 which shipped with Dos 5.0+. Quickbasic went on until it was renamed Professional Development System 7.0, then later Visual Basic for DOS 1.0. That was the last version made.

      http://www.qbxl.net/

      I'm a monster, you see. That's how I know all this. :P

      --
      It's been a long time.
    11. Re:Obligatory Dijkstra quote by bhtooefr · · Score: 1

      Wait a sec...

      MS Altair Basic (1975?)
      Craploads of variants of 8-bit MS BASIC (1976-1980's)
      BASICA (1980/1981)
      GW-BASIC (Disk version of BASICA)
      QuickBASIC 1.0 (mid-80's)
      (skipping QB2-4)
      QuickBasic 4.5 (1988)
      QBasic 1.0 (1991, with MS-DOS 5.0)
      Visual Basic 1.0 (1991, for Win3.0 and DOS - later versions skipped)
      PDS 7.0 (early 90's)
      QBasic 1.1 (1993, with MS-DOS 6.0 through today? (at least WinME))

    12. Re:Obligatory Dijkstra quote by Sj0 · · Score: 1

      AH! We're both monsters!!!

      but I'm positive, based on the advancements in the language and platform, that PDS was before vbdos. I've used both extremely recently, and vbdos is definitely the more advanced of the two.

      --
      It's been a long time.
    13. Re:Obligatory Dijkstra quote by Anonymous Coward · · Score: 0
      QBasic 1.1 (1993, with MS-DOS 6.0 through today? (at least WinME))

      Windows Me doesn't include QBasic. Windows 98 was the last OS to have it on the CD.

    14. Re:Obligatory Dijkstra quote by Anonymous Coward · · Score: 0

      Yes, there are. Me.

    15. Re:Obligatory Dijkstra quote by bhtooefr · · Score: 1

      I wasn't exactly sure on those, which is why I put PDS as early 90's. I thought it was after, but...

  22. Re:fp by Anonymous Coward · · Score: 0

    10 PRINT "You fail" 20 PRINT "it" 30 END

  23. RTFA, dillhole by Anonymous Coward · · Score: 1, Flamebait
    A year later on May 1, 1964, the BASIC computer programing language (as demonstrated above) was born and for the first time computers were taken out of the lab and brought into the community.
  24. Java? by Theatetus · · Score: 0, Interesting
    The popularity of BASIC waned as computers got more sophisticated, and newer languages were developed to take advantage of the power. Many of those languages, including the Internet's Java, have their roots in BASIC.

    That's an odd thing to say. In terms of syntax it's hard to call Java "rooted" in a non-algol language like BASIC. I guess it does share with BASIC the fact that both are marketed towards non-programmers (well, people who don't program for a living, at least).

    --
    All's true that is mistrusted
    1. Re:Java? by ifreakshow · · Score: 1

      How is Java not marketed towards Programmers? This isn't ment to be a flame I just wonder how a non programmer could quickly learn java and the OO premises it operates on.

      Perhaps you meant JavaScript?

    2. Re:Java? by Tyler+Durden · · Score: 1

      Yeah, I wanted to scream when I read that Java got its roots from BASIC. The roots are clearly from C, a little C++, and some Smalltalk concepts I guess. I don't know what the fuck they were thinking.

      For the record, I'd call Java more of a learning programming language than something marketed towards non-programmers.

      --
      Happy people make bad consumers.
  25. 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)

  26. Cute, but don't be stupid by Anonymous Coward · · Score: 1, Interesting

    Don't rag on the janitors you elitist pricks.

  27. huh? by jdc180 · · Score: 1

    If it was born in 1963, wouldn't it have turned 40 last year? Seems a little sloooowww, kinda like my Timex sinclair which irritated me because you could only use the basic command preprogrammed into the keyboard.

    1. Re:huh? by hopemafia · · Score: 1

      RTFA...

      It was conceived in 1963, but not born until May 1, 1964.

      --
      If God had had a computer it would have taken him 7 months to create the earth...if he even bothered to do it at all.
  28. Most. Annoying. Story. Ever. by Xoder · · Score: 1

    But I must admit I really loved BASIC in the day. But Perl runs my life now (or I wish it did!).

    --
    The previous sig has been removed due to /. protecting your best interests
  29. 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]

    1. Re:Nostolgia by eoyount · · Score: 1

      I've got that "trench" game on my HP-48GX, but it's called "cave." Got me through several math classes, too.

      --
      To understand recursion,
      you must first understand recursion.
    2. Re:Nostolgia by ifreakshow · · Score: 1

      I loved programming this for the TI-81. Passed so many wonderful hours in Math class programming upgrades for it. Thanks for the trip down memory lane.

    3. Re:Nostolgia by silicon+not+in+the+v · · Score: 1

      ...and
      nibbles.bas
      gorilla.bas

      --
      We may experience some slight turbulence and then...explode. -Capt. Mal Reynolds
    4. Re:Nostolgia by JohnGrahamCumming · · Score: 1

      I do.

      Now you have made me feel very old :-(

      John.

    5. Re:Nostolgia by tttonyyy · · Score: 1
      *BOOM* YOU CRASHED. TRY AGAIN? [Y/N]

      Heh, I wonder how many Spectum BASIC games developers never got beyond "Scroll?" doing that?

      --
      biopowered.co.uk - catalytically cracking triglycerides for home automotive use since 2008. Just say no to big oil!
    6. Re:Nostolgia by schapman · · Score: 1

      oh no... why did you have to make me rememeber that... time to break out the xt and fire it up :)

      --
      Wouldnt you like to be a pepper too?
    7. Re:Nostolgia by jaciii · · Score: 1

      Waste alot of cpu time in Grad school on that game. (Back in the days when you had to buy time based on how cpu time you used.)

    8. Re:Nostolgia by AKAImBatman · · Score: 1

      Sorry to say this dude, but YOU FAIL IT. The Star Trek game was from the 60 & 70s. The Trench game was invented in the late 70s, early 80s. QBasic with its Gorilla.bas and Nibbles.bas didn't come around until MSDOS 5.0, sometime early in the 90s.

    9. Re:Nostolgia by DevNova · · Score: 1

      I entered that game on a college terminal back in the early 80's from a type-in computer games book. A couple months ago I went searching for a version of it to put on my Palm and was shocked that no one had written a version of it for Palm or Symbian OS. (an accurate port too, one with shields and quadrants and such)

    10. Re:Nostolgia by AKAImBatman · · Score: 1

      Your XT still works?! My Laser Turbo XT (with 8MHz Turbo mode!) had a failure in its massive 40 MEG hard drive. The drive was so big, that it had to be spit into a 30 MEG C: drive and a 10 MEG D: drive. Of course, by then I was upgrading from my 486DX2 w/4MB of RAM to my P120 w/16MB of RAM. Made all those P90 w/8MB fools jealous. :-D

    11. Re:Nostolgia by AKAImBatman · · Score: 5, Informative

      You wish is my command. Here's the source code plus there's a PALM version at the bottom of the list. In case you want to type it in yourself, SmallBASIC accepts traditional BASIC syntax. Someone event did a SmallBASIC port of Super Star Trek for you!

    12. Re:Nostolgia by tkittel · · Score: 1

      OK, I dont usually do "me to" posts, but Hell Yeah, its ridiculous the number of hours I spent on those. I can even today remember the sound+graphics of the exploding bananas.

    13. Re:Nostolgia by jayhawk88 · · Score: 1

      You, sir, have become my God for today.

    14. Re:Nostolgia by Fooby · · Score: 1

      There was also a very close clone of this game called "trek" written in C included in the BSD games package, so lots of UNIX/BSD/Linux users have this game on their boxes to this day. Of course it's not the same as playing it in ALL CAPS on an old Kaypro running MBASIC on CP/M, but close enough.

    15. Re:Nostolgia by Anonymous Coward · · Score: 0

      I remember the Trar Trek game. Directions were from 1 to 9 (took some time to figure out), and 9 out of 10 times you ended up in the middle of a star and were killed. Actually, 10 out of 10 times, but it was great fun...

    16. Re:Nostolgia by kfg · · Score: 1

      Ooooooh yeah, baby! Those were the days when gameplay was more important the graphics, because, like, we didn't exactly have much of a choice.

      Only in my case I was playing an APL port on an IBM 360, so I suppose I could have installed a graphics update by changing the type ball.

      KFG

    17. Re:Nostolgia by scharkalvin · · Score: 1

      I remember converting a version of trek from MS basic to PT (remember Processor Technology?) 5K basic which only had one dimensional arrays (what a pain. You DO know how to simulate a two dimensional array with one dimensional ones don't you?).

      But my favorite was 'hunt the wumpus'!
      I made my own version of that game and called it
      'Jabborwock'.

    18. Re:Nostolgia by STrinity · · Score: 1

      I loved programming this for the TI-81.

      Newbie.

      --
      Les Miserables Volume 1 now up with my reading of
    19. Re:Nostolgia by plugger · · Score: 1

      Are you sure? I though Gorilla.bas ran on GW-BASIC, and that was dropped in favour of QBASIC in DOS 5.

    20. Re:Nostolgia by el-spectre · · Score: 1

      First PC I had ran DOS 5, and gorillas was the first program I used on it.

      --
      "Faith: Belief without evidence in what is told by one who speaks without knowledge, of things without parallel." - A.B.
    21. Re:Nostolgia by plugger · · Score: 1

      Fair 'nuff, that'll do for me :)

    22. Re:Nostolgia by AKAImBatman · · Score: 1

      Are you sure? I though Gorilla.bas ran on GW-BASIC, and that was dropped in favour of QBASIC in DOS 5.

      Unless Microsoft released it in DOS 4, I'm pretty sure. Gorilla.bas was NOT a true Basic program. It was very QBasic in its design, and made use of functions and the lack of line numbers. Besides, GW-BASIC would have been too slow. I *wrote* games for GWBASIC, and I can tell you that the screen update rate was not something you'd want to write home about. My TRON game worked pretty well though. I think I still have the print out around somewhere...

    23. Re:Nostolgia by Tango42 · · Score: 1

      And in those rare times when you avoided the stars, there weren't any Klingons anywhere to shoot, and in the even rarer times when there were, I always missed, due to the aiming system being too confusing... Great game though! :-)

    24. Re:Nostolgia by Rogue974 · · Score: 1

      I agree with the other person that responded to you. You will ever be lauded as my personal hero when I play this game on my PALM and laptop when at work. You may not be well liked by my employer, but I will always remember you!!

    25. Re:Nostolgia by AKAImBatman · · Score: 1
      You DO know how to simulate a two dimensional array with one dimensional ones don't you?

      Lemme see if I can remember how to do this in basic:
      10 DIM A(100)
      20 LET B = 10
      30 FOR Y IS 1 TO 10 STEP 1
      30 FOR X IS 1 TO 10 STEP 1
      40 LET LOC = Y * B + X
      50 LET A(LOC) = X
      60 NEXT X
      70 NEXT Y
      Hmm... Yep, that looks about right. You should get an array that counts from 1-10, 10 times over. :-)

    26. Re:Nostolgia by stevesliva · · Score: 1

      Here's a nostalgia-filled site dedicated to the Dartmouth Time-Sharing System A bit out of data, but interesting to see the BASIC compiler in some GE assembly language from the early sixties.

      --
      Who do you get to be an expert to tell you something's not obvious? The least insightful person you can find? -J Roberts
    27. Re:Nostolgia by Inda · · Score: 1

      I sort of remember playing a game like this on the Spectrum.

      A friend and I took 3 hours to type the code from a book. He was reading and I was typing. 2 hours it took to go over it again. It never worked. I hated those books.

      --
      This post contains benzene, nitrosamines, formaldehyde and hydrogen cyanide.
    28. Re:Nostolgia by AKAImBatman · · Score: 1

      Newbs. Real computer users knew that you navigated and aimed by telling the computer how many units you wanted to move/aim in the X and Y directions. I'll bet you were all trying to enter absolute coordinates instead of relative coordinates, weren't you?

    29. Re:Nostolgia by BitwizeGHC · · Score: 1

      I know nothing of this trench but it seems to bear a distinct flavor not unlike ESR's latest game "ski".

      http://www.catb.org/~esr/ski/

      Written in Python, unfortunately, not BASIC. :) Mod offtopic as you see fit.

      --
      N4st0r, trixx0r h0bb1tz0rz! Th3y st0l3 0ur pr3c10uzz!
    30. Re:Nostolgia by AKAImBatman · · Score: 1

      BTW, the library computer had a calculator to figure out where you were going. :-)

    31. Re:Nostolgia by AKAImBatman · · Score: 1

      Right here:

      http://www.basicguru.com/files/abc/abc9903/canyon. bas

      Everyone punched this game into their computers since it was so easy to code.

    32. Re:Nostolgia by Anonymous Coward · · Score: 0

      Hmmm... Don't recall that one - but I do recall the good old days sitting around with the AppleII+ (48k), hacking "Lemonade" to make myself rich...

      sigh ... if it were only that easy now.

    33. Re:Nostolgia by Anonymous Coward · · Score: 0

      The two best ascii games I can recall from my college days were Conquest (space combat) and Moria (Dungeon Combat)... both rocked.

    34. Re:Nostolgia by Yendor_Z · · Score: 1

      Ahhh, back in 1983 I thought I was sooo original. I coded this all on my own, concept and all, and called it "Tunnels". It was my first "fun" game, written on a TRS-80 Color Computer III when I was in 7th grade. Funny to see that this little game is actually a piece of nerd-stalgia! I have a PC version (DOS, actually), which was the first program I wrote when I learned C back in '90. It's available if anyone's interested...

    35. Re:Nostolgia by LiquidCoooled · · Score: 1

      I feel your pain!

      When I was about 10years old, we had some games books for our rubber keyed Spectrum.

      Me and my mum spent almost 3 weeks typing in this game called "Drakmaze", and daren't switch it off for fear of losing it.

      If you think computers nowadays get warm, the PSU on the spectrum was almost melting.

      We also never did get it working, and also gave up in the end.

      However, it was a turning point, and I was intruiged by the symbols , and the idea that I could make this thing do exactly what I wanted it to. I couldn't solve the problems with this code, but I was determined to make other things work.

      I went on a bit of a nostalgia trip a couple of years ago, and actually found drakmaze.. was quite a shock :)

      --
      liqbase :: faster than paper
    36. Re:Nostolgia by JoeCommodore · · Score: 1
      Don't knock it, I got second place in the Vintage Computer Festival 5.0 Retro code programming challenge with that game...

      I was beat out to a tiny version of Pimp Sim (both games for Commodore, use a C64 emulator) written by my competitor Jeri Ellsworth, (on the right) who is way better at hardware than programming....

      When you have to write a complete game from scratch in three hours on a vintage 'stock' micro (i.e. Apple IIe, Commodore 64, Atari 800, etc.) BASIC is the best way to go... and last year I won. :-) ...I don't have a copy of that one currently.

      --
      "Enjoy what you're doing! If it becomes drudgery, you're doing it wrong!" - Jim Butterfield
    37. Re:Nostolgia by Ben+Hutchings · · Score: 1

      Nope, that counts from 11 to 110. 1-based indexing is such a losing choice.

    38. Re:Nostolgia by silicon+not+in+the+v · · Score: 1

      Those were my first experiences feeling like a hacker. I searched through those and found all the lines where they made any sound and commented them out so that I would have silent versions to play in my programming class in high school.

      --
      We may experience some slight turbulence and then...explode. -Capt. Mal Reynolds
    39. Re:Nostolgia by AKAImBatman · · Score: 1
      $%$*^

      I never realized how much I hated 1 base indexes. Here's the fixed version:
      10 dim a(100)
      20 let b = 10
      25 for y = 0 to 9 step 1
      30 for x = 0 to 9 step 1
      40 let l = (y*b+x)
      50 let a(l) = x+1
      55 print a(l)
      60 next x
      70 next y
      Sorry about the lack of caps. Chipmunk BASIC keeps converting them all to lower case. (Grrr... I wish someone would port SmallBASIC to the Mac.)

    40. Re:Nostolgia by gujju · · Score: 1

      I remember the trench game...My older brother and I programmed it into our Toshiba (can't remember the number). It provided hours of fun. It was called Death Valley. The ASCII art takes me back...

      Gujju

    41. Re:Nostolgia by kunudo · · Score: 0

      How about TI-BASIC?

    42. Re:Nostolgia by Tango42 · · Score: 1

      IIRC I was about 7 when I last played that game... I think I got there in the end...

  30. Re:BASIC, RIAA stylee by Anonymous Coward · · Score: 0

    SYNTAX ERROR IN 10

  31. Edsger Dijkstra? Does not like it by AtariAmarok · · Score: 5, Interesting
    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/

    What it really means is that the programmers won't program exactly the way Dij wants them to do. It is not "good" or "bad": just different. Programming should not be a straitjacket: the more options and the more different ways to do thing, the better. Those who think that there is no place for anything like a GOTO should look at html.

    --
    Don't blame Durga. I voted for Centauri.
    1. 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
    2. 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.

      --
      ...
    3. Re:Edsger Dijkstra? Does not like it by DarkAurora · · Score: 2, Informative

      HTML is not a programming language. It's a Markup Language. HTML itself does nothing but display text in a pretty way and provide links.

    4. Re:Edsger Dijkstra? Does not like it by JaxWeb · · Score: 1

      I actually have nothing against GOTO, but BASIC is still a terrible language for doing anything useful in.

      Saying that, I know someone who used to program (Badly) in BASIC, but now programs quite well in Javascript (They don't do anything mathematical, just call DOM functions really, and make websites which won't work on anything which isn't MSIE). So I don't think there is much lasting damaged with BASIC.

      Myself, I've never used BASIC (Javascript was my first language), but I hear a lot of our current experts started with it. So it can't cause long damage, so long as they don't take it seriously, maybe.

      --
      - Jax
    5. Re:Edsger Dijkstra? Does not like it by rokzy · · Score: 1

      what are you on about? html isn't a programming language.

    6. Re:Edsger Dijkstra? Does not like it by beatleadam · · Score: 1

      I found BASIC to be Fascinating.
      A mind altering experience in learning.
      How else was I supposed to defeat the MCP and save Tron without BASIC on my TI-994A?

      --
      I have a theory that the truth is never told during the nine-to-five hours. -- Hunter S. Thompson
    7. Re:Edsger Dijkstra? Does not like it by MoP030 · · Score: 1

      Well i am sure he didn't say "there is no place for anything like a GOTO". It is quite practical when you ask for directions on the street.
      Now in programming languages the use of GOTO usually means that the programmer didn't really think about reasonable controlling structures and it tends to generate nondeterministic-for-practical-purposes behaviour.
      And finally, having GOTO in html surely is beyond the scope of a markup(!=programming)language. It is a skript that is being parsed once, from top to bottom. Having the capability to implement its own dynamic generation is bloat when there are already dozens of ways to generate html dynamically.

      --
      the most sexp i get is my paren-mode.
    8. Re:Edsger Dijkstra? Does not like it by Anonymous Coward · · Score: 0

      I read that as "Read some websites about it"... looking back on it, the person who wrote that was retarded...

    9. Re:Edsger Dijkstra? Does not like it by Anonymous Coward · · Score: 0

      I learned EBASIC, BASICA, and later GW-BASIC, the latter being my formative language. I taught myself to program on an 8088 with GW-BASIC, and never mastered such simple concepts as loops.

      I later learned Pascal, then C, then C++, then Java, then Perl. I've managed to produce excellent professional code in the latter 4 languages despite my uncouth upbringing under BASIC's gentle tutelage. Dijkstra is a crack whore.

    10. Re:Edsger Dijkstra? Does not like it by dasmegabyte · · Score: 1

      I always thought that what he meant was that after using BASIC you're not likely to put up with time wasting drudgery bullshit like manual memory management, char arrays, or pointers.

      "You mean I have to do all this work to add "Hello " to "world!" and print it out? And that's real programming?"

      Hence, Java, C#, perl, ruby...

      --
      Hey freaks: now you're ju
    11. Re:Edsger Dijkstra? Does not like it by plugger · · Score: 1

      You would have had to get one of those expansion packs so you could program it in assembler. Was it true that you had no direct access to memory such as POKE on the basic machine?

    12. Re:Edsger Dijkstra? Does not like it by beatleadam · · Score: 1

      Never tried Assembler on the TI-994A unfortunately. If I remember correctly, you did not have direct access to memory. No matter (in context of the original post) IMHO as BASIC was just amazingly powerful compared to what I was trying to do on the Apple][ at school :-)

      --
      I have a theory that the truth is never told during the nine-to-five hours. -- Hunter S. Thompson
    13. Re:Edsger Dijkstra? Does not like it by iamacat · · Score: 1

      It's practically impossible to reason with computer scientists. They will just keep telling you to play with their latest toy when you already learned to do everything that needs to be done with a current one.

    14. Re:Edsger Dijkstra? Does not like it by Anonymous Coward · · Score: 0

      Rather, it is impossible to teach good programming style to students who have had prior exposure to BASIC and are not intelligent enough to see the difference between the sloppy style espoused therein and the logical methodology used in other languages. It isn't BASIC's fault that people are too stupid to expand their thinking.

    15. Re:Edsger Dijkstra? Does not like it by geomon · · Score: 1

      The BASIC quotation is an attribution. He actually is quoted as referring to COBOL in this way.

      --
      "Rocky Rococo, at your cervix!"
    16. Re:Edsger Dijkstra? Does not like it by Matt+-+Duke+'05 · · Score: 1

      --($:/usr/src/linux-2.6.0)-- find . | xargs grep goto | wc -l
      25108

      --
      -Matt
      Duke '05
    17. Re:Edsger Dijkstra? Does not like it by BMazurek · · Score: 1
      What it really means is that the programmers won't program exactly the way Dij wants them to do.
      Or perhaps he means exactly what he says: Exposure to BASIC, or the programming idioms of languages like BASIC, teaches the unwary new programmer far too many bad habits. Those habits may take years to unlearn.

      Personally, I'm 20+ years into programming, including many using BASIC. Then many using Pascal. Then many using C. And dozens of other languages. BASIC introduced me to programming as a concept. But truly, it took years to unlearn the bad habits I learned. I still see code that is rife with bad habits.

      But, back to Dijkstra. Would it, for example, be easier to learn functional languages with having first learned BASIC? I'd argue it's probably easier without it. The concept of state, and it's implications is something that I am still battling with, as are a lot of developers around me: whether they recognize it or not.

      It is not "good" or "bad": just different.
      I would agree. A gun is neither good nor bad. However, putting a gun in someone's hands with no context, no understanding and no guidance is a recipe for causing harm. Perhaps the kind of irreparable harm Dijkstra was speaking of.
      Programming should not be a straitjacket: the more options and the more different ways to do thing, the better.
      But this does not seem to be born out. If this were the case, then programmers would find a language like Lisp (or it's dialects) and would never return. A language so devoid of syntax and yet so ammenable to customization that it is commonly associated with the phrase programmable programming language. Perhaps that's why some of the most influential courses on the fundamental aspects of computer science (like Structured Interpretation of Computer Programs) use dialects of Lisp: it allows the student to focus on programming fundamentals, laying an incredible foundation for their growth as a programmer.
    18. Re:Edsger Dijkstra? Does not like it by johnkoer · · Score: 1

      If you want to get technical HTML doesn't display anything, its the web browser that interprets the HTML to display the text in a pretty way.

    19. Re:Edsger Dijkstra? Does not like it by aled · · Score: 1

      I'd been told that God will punish you if you use GOTOs. Really.

      --

      "I think this line is mostly filler"
    20. Re:Edsger Dijkstra? Does not like it by Keiner+Niemand · · Score: 1

      And if you want to get pedantic, it is the monitor that does all the displaying...

    21. Re:Edsger Dijkstra? Does not like it by Bigman · · Score: 1

      Speaking someone who wrote their first program in BASIC at the tender age of 11 back in 1975 (!) and got his first computer at 16 (an 8K PET - Yes, that 8192 bytes of memory for program and data..) you have to understand that the average digital watch has more computing power than the microcomputers of the era. BASIC was 'tha biznizz' because it stopped you having to write programs by assembling them to machine code using nothing but a book and a pencil and paper. BASIC was an artifact of it's time. Add to that you had to save you programs to tape at 300 characters per second, I'm sure you can appreciate that structured programming was not an issue - it was being able to program at all.
      The fact that I managed to write interactive games with the minute amount of memory and sloooow processors was a minor miracle in itself. Would I like to go back to those days? No, not at all, modern languages and systems are so much more interesting; but I do sometimes look back in disbelief at how much was acheived with so little and how nowadays languages (with their libraries and object models..) present an almost insurmountable learning curve to all but the most dedicated enthusiastic amateur.

      --
      *--BigMan--- Time flies like an arrow.. but personally I prefer a nice glass of wine!
    22. Re:Edsger Dijkstra? Does not like it by 1729 · · Score: 1
      The BASIC quotation is an attribution. He actually is quoted as referring to COBOL in this way.

      No, the quote is correct. See the original manuscript:

      http://www.cs.utexas.edu/users/EWD/ewd04xx/EWD498. PDF

    23. Re:Edsger Dijkstra? Does not like it by geomon · · Score: 1

      Cool. We need to let the Wikiquote folks know.

      Thanks

      --
      "Rocky Rococo, at your cervix!"
    24. Re:Edsger Dijkstra? Does not like it by Magada · · Score: 1

      Dijkstra had it right, imo...

      --
      Something bad is coming when people are suddenly anxious to tell the truth.
    25. Re:Edsger Dijkstra? Does not like it by MoP030 · · Score: 1

      Definitely interesting and disenchanting. Are you sure it's not the leaked windows source? ;)
      Unfortunately I don't have 2.6 kernel available to check but here's a 2.4.22 instead:

      /usr/src/linux-2.4.22-pre7> find .|xargs grep goto 2>/dev/null|wc -l
      20

      Makes me wonder whether the number of gotos always decreases with the maturity of the code.

      --
      the most sexp i get is my paren-mode.
  32. 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
    1. Re:I would... by AKAImBatman · · Score: 1

      Errm...

      10 LET A$ = RANDOM$ * 10
      15 LET B$ = ""
      20 PRINT "GUESS A NUMBER BETWEEN 1-10: ";
      30 INKEY$ B$
      40 IF B$ <> A$ THEN PRINT "WRONG" ELSE PRINT "CORRECT"
      50 GOTO 10

      SAVE "RANDOM.BAS"
      RUN

      Wow. Didn't know I could still do that...

    2. Re:I would... by maximilln · · Score: 1

      Not that I disagree but did he ever explain why he felt this way about BASIC?

      --
      +++ATHZ 99:5:80
    3. Re:I would... by xv4n · · Score: 1

      10 LET A$ = RANDOM$ * 10
      15 LET B$ = ""
      20 PRINT "GUESS A NUMBER BETWEEN 1-10: ";
      30 INKEY$ B$
      40 IF B$ A$ THEN PRINT "WRONG" ELSE PRINT "CORRECT"
      50 GOTO 10

      This whole story is becoming really nauseating.

    4. Re:I would... by anti-trojan · · Score: 1

      30 INKEY$ B$

      I believe that should be

      30 INPUT B$

    5. Re:I would... by Sj0 · · Score: 1

      STATIC SUB drawall ()

      SHARED bitmask%()
      DIM memloc AS INTEGER
      DIM leadsdown AS INTEGER
      DIM EndRenderer AS INTEGER
      maxpar% = pvpvary% MOD tilesize 'Watch this cool optimization.

      PvPConst% = multby80(maxpar% - 1)
      maxpar% = -maxpar 'Set one bit and add one, and you have one less MOD
      'in the world. Cute, eh?

      FOR yaya% = 0 TO 3
      OUT &H3C5, bitmask%(yaya%)

      FOR x% = RenderFirstX% TO RenderSecondX%
      xx% = (MultByTileSize(x%)) + pvpvarx
      IF xx% > -20 AND xx% 319 THEN EXIT FOR
      IF (xx% AND 3) = yaya% THEN

      IF xx% > -1 THEN

      'One of the more consuming operations is taken care of by an array.
      memloc = divby4(xx%) + PvPConst% 'This sets the pointer (HAH!)

      FOR y% = RenderFirstY% TO RenderSecondY%
      IF y% = RenderSecondY% THEN EndRenderer% = maxpar + 3 ELSE EndRenderer% = tilesize
      IF EndRenderer% > 20 THEN EndRenderer% = 20
      maptile% = map%(x%, y%)

      FOR a% = 1 TO EndRenderer% 'uglier, but marginally faster.
      memloc = memloc + 80

      POKE memloc, sprite(a%, b%, mDsprites(maptile%).spriteplace)
      NEXT a%
      NEXT y%
      END IF

      b = b + 2
      xx% = xx% + 2
      END IF
      b = b + 1
      xx% = xx% + 1

      WEND
      END IF
      NEXT x%

      NEXT yaya

      END SUB

      AAAAAAH! MY EYES! YOU BASTARD!!! NOW I'LL NEVER PROGRAM AGAIN!!!

      --
      It's been a long time.
    6. Re:I would... by bhtooefr · · Score: 1

      AFAIK, that was a valid statement in (Q(uick)|Visual) Basic for DOS. It let you take only one keypress for a string.

    7. Re:I would... by anti-trojan · · Score: 1

      That's why it should be INPUT. You cannot input a number between 1 and 10 by pressing only one key (unless you think in hex).

  33. My first language too by Anonymous Coward · · Score: 0

    Hey, that is the language I learned first, on a TRS-80.

    I had alot of fun w/ this program:

    10 NEW

    and this one:

    10 TRON
    15 REM machine speed is 330 loops per second
    20 FOR I = 1 TO 330
    30 FOR J = 1 TO 10
    40 NEXT J, I
    50 LIST

  34. Man i remember when.... by aberant · · Score: 1

    I has so much fun learning basic as a teen and doing some crazy stuff with QBASIC.. sure it's lame... but after making a simple polygon 3D engine i realized it's time for me to move on. Happy B-Day!

  35. How did you do that? by Anonymous Coward · · Score: 0

    Cool! How did you get that green link thing in your listing?

    I'm looking at the commands printed on my ZX81's keyboard, but I can't find any color commands! Do I need an Apple ][ for that? ;)

    For OS X users looking for some of that Old School goodnees, you can grab Chipmunk Basic at Versiontracker.com

    1. Re:How did you do that? by bhtooefr · · Score: 1

      An Apple ][ won't do you any good, as it only does B&W in text mode. However, an IBM PC would allow color in BASIC apps.

  36. Mrrrrr... by Anonymous Coward · · Score: 0

    And we're supposed to trust advice on programming languages from someone with an Unlambda program in their sig???? ;)

  37. yah, well by Anonymous Coward · · Score: 0

    Ctrl-C, Ctrl-V.

    Not that hard.

  38. Rem: Students and Basic by mfh · · Score: 1
    Oh boy, I can remember my first exposure to computers was in the basement of a friend-of-the-family, when I learned how to program in basic for the first time.
    10 print "Scott rules!!"
    20 goto 10
    Seriously though, where would we be today without Basic? Even the most complex systems rely on the knowledge we have received after years of mistakes in computational design. Some mistakes are still around, and leading the trends of computing, and others have disappeared. But the same thing happens whenever I teach a class in PHP; students revert to the Basic model as a basis for everything, until they learn how to break up their code into blocks, functions and classes. I guess that kind of knowledge only comes from experience, after many wasted hours in the lab. That's when you know who has cheated on their latest assignment; when they don't understand the fundamentals that can only come from hours of pushing through the code revisions.
    --
    The dangers of knowledge trigger emotional distress in human beings.
    1. Re:Rem: Students and Basic by Anonymous Coward · · Score: 0

      You have the lowest /. ID I've ever seen!

    2. Re:Rem: Students and Basic by NuclearDog · · Score: 1

      My first program was on the computers at school. I forget the syntax of basic now, so I'll just guess:

      10 FOR I = 0 to 999999
      20 POKE I, 0
      30 NEXT I

      It was something like that. It basically wrote 0's to the memory until the PC shit itself and crashed.

      Good times, good times :)

      --
      This statement is forty-five characters long.
    3. Re:Rem: Students and Basic by NuclearDog · · Score: 1
      --
      This statement is forty-five characters long.
  39. Jave derived from BASIC??? by the+morgawr · · Score: 2, Interesting
    How is that so? Was B derived from basic? I'm pretty sure it wasn't. Smalltalk maybe? I thought the flow went like this:

    1. B (short for Bell, where it was written)
    2. C
    3. Objective-C (C with some smalltalk stuff added)
    4. Java
    --
    The policy of the United States is worse than bad---it is insane. -- Ludwig von Mises, Economic Policy(1959)
    1. Re:Jave derived from BASIC??? by Anonymous Coward · · Score: 0

      1 CPL (Combined Programming Language)
      2 BCPL (Basic CPL)
      3 B (short for Bell, where it was written)
      4 C
      5 Objective-C (C with some smalltalk stuff added)
      6 Java

      The Basic in BCPL means 'fundemental' and has no relationship to BASIC.

      It is this origin that raised the question of the 80s whether the next language was going to be 'D' or 'P'.

    2. Re:Jave derived from BASIC??? by Mikkeles · · Score: 1

      And:

      -3. ALGOL58
      -2. ALGOL60
      -1. CPL
      0. BCPL (used for Amiga Kickstart, e.g.)
      1. B ...

      --
      Great minds think alike; fools seldom differ.
    3. Re:Jave derived from BASIC??? by rokzy · · Score: 1

      5. ???
      6. Profit!

    4. Re:Jave derived from BASIC??? by Anonymous Coward · · Score: 0

      B was derived from BCPL.

      "BCPL, B, and C all fit firmly in the traditional procedural family typified by Fortran and Algol 60." - Dennis Ritchie

      TFOAE

    5. Re:Jave derived from BASIC??? by milgr · · Score: 1

      You forgot BCPL. The list should be:

      0. BCPL
      1. B (short for Bell, where it was written)
      2. C
      3. Objective-C (C with some smalltalk stuff added)
      4. Java

      There was some question after C was around for a bit if the next language should be D or P. C++ figured it would avoid the controversy, and name it the successor to C (in C notation).

      --
      Where law ends, tyranny begins -- William Pitt
    6. Re:Jave derived from BASIC??? by be-fan · · Score: 1

      Smalltalk was rather original, though it borrowed a lot of stuff from Lisp (regular-ish syntax, closures, etc). Had nothing to do with BASIC. And Java isn't an evolution of ObjC, its a refactorization of C++. If they'd copied Objective C instead, Java would suck less.

      --
      A deep unwavering belief is a sure sign you're missing something...
    7. Re:Jave derived from BASIC??? by Anonymous Coward · · Score: 2, Informative

      How is that so? Was B derived from basic? I'm pretty sure it wasn't. Smalltalk maybe? I thought the flow went like this:

      1. B (short for Bell, where it was written)
      2. C
      3. Objective-C (C with some smalltalk stuff added)
      4. Java


      B isn't short for "Bell", it was an abbreviated version of BCPL, hence the name. C came after B, which raised the question of which language would succeed C-- P or D?

    8. Re:Jave derived from BASIC??? by dasmegabyte · · Score: 2, Informative

      Uh, the progression is never this simple, man. Yes, syntactically, Java borrows from C and C++ heavily. But it's never so simple as X then Y then Z. Java borrows from everything -- inheriting from Object looks a lot like Objective-C, but calling instance methods looks a lot more like C++. And the concept of the Virtual Machine has a lot more in common with VB than it does with compiled, self executing, self managed languages.

      Similarily, C# borrows from both Java and C. It's not the end point of either. In fact, since people are still writing -- and revising -- C, Obj C, C++, Java, C#, BASIC and Visual Basic, you can't say any of them BECOME any of the others. They're each of them still their own thing.

      --
      Hey freaks: now you're ju
    9. Re:Jave derived from BASIC??? by Rick+BigNail · · Score: 1

      I think Java derived from C++ & Modula-3

  40. Then they got high. . . by bplipschitz · · Score: 1

    and BASIC was born.

    It always struck me that BASIC was easier to understand if you were high.

  41. New Slashdot Poll: by mschiller · · Score: 1

    10 Print "How old were you when you wrote your first basic program?" 20 Print "A) 0-5 years old" 30 Print "B) 5-7 years old" 40 Print "C) 8-10 years old" 50 Print "D) 11-13 years old" 60 Print "E) 14-16 years old" 70 Print "F) >16 years old" 80 Print "G) Basic, What's Basic?" 90 Input x .... I for one would fit into catagory A, on a commodore 64.. Knew how to format a floppy at age 5, much to my brother chargrin when I wiped out their saved games and papers.... Got in BIG trouble for that one...

    1. Re:New Slashdot Poll: by DR+SoB · · Score: 1

      Lmao, this is what happens when BASIC meets HTML, and oh what an ugly face indeed.

      --
      Mod +5 Drunk
    2. Re:New Slashdot Poll: by mschiller · · Score: 1

      Slashdot shouldn't required HTML f*cking tags for comments to look right... Why does the textbox accept carraige returns if they aren't going to be used... Many many websites do this and it's stupid..
      (Yeah, Yeah the real problem may be the browser, in this case FireFox, but still!)

      READ MY LIPS: For simple formating (i.e. Carraige returns!) I shouldn't need to know or use HTML tags!

    3. Re:New Slashdot Poll: by Anonymous Coward · · Score: 0

      spelling: chagrin

    4. Re:New Slashdot Poll: by mschiller · · Score: 1

      Yeah Yeah I don't like HTML and didn't use the freaking
      See my other comment on feelings about textboxes that accept carriage returns and then don't use them, and yeah I could have used the preview button... But I'm lame ok?... Now here's a better formatted program: --------- 10 Print "How old were you when you wrote your first basic program?"
      20 Print "A) 0-5 years old"
      30 Print "B) 5-7 years old"
      40 Print "C) 8-10 years old"
      50 Print "D) 11-13 years old"
      60 Print "E) 14-16 years old"
      70 Print "F) >16 years old"
      80 Print "G) Basic, What's Basic?"
      90 Input x
      ....

      I for one would fit into catagory A, on a commodore 64.. Knew how to format a floppy at age 5, much to my brothers' chargrin when I wiped out their saved games and papers.... Got in BIG trouble for that one... But hey it was fun proving I could format a disk!

    5. Re:New Slashdot Poll: by handslikesnakes · · Score: 0

      Then use Plain Old Text mode instead.

      (no HTML was used in the creation of this post)

  42. That was Applesoft, from Microsoft by AtariAmarok · · Score: 1
    "I wasn't using MS-BASIC on my Apple ][e, right?

    That was "Applesoft", from, you guessed it, Microsoft. Before the PC, I think Microsoft built itself on that product. Please see this page.

    --
    Don't blame Durga. I voted for Centauri.
  43. Ah, computers. by wookyhoo · · Score: 2, Insightful

    Now we have languages that are hard enough for gurus to read half the time, and others that are so wonderful and elegant that I believe janitors of today could learn and use quite easily.

    I remember using my first computer at age 5 and playing around with BASIC, and I could do a reasonable amount with it. Lets be glad though that most of us have moved on :>

  44. Inevitable by stomer · · Score: 0, Troll

    10 for x = 1 to 2
    20 x = x -1
    30 print "ALL YOUR BASIC ARE BELONG TO US"
    40 next x

  45. sniff sniff by Anonymous Coward · · Score: 0

    My first language way back in the day...

    I wrote a simple geology DB to identify minerals, a 2-handed spade game that could beat most people, and kept improving StarTrek games. All on a slow time-shared HP2000F with a TTY terminal and paper tape storage.

    I learned from a slim paperback called "My Computer Likes Me (when I speak in Basic)". It had the best explanation of how and why each statement worked. I am still looking for a copy of this for my collection of computer books.

    I moved on to more complete languages that allowed me to create bigger programs, but in many ways, the first language was the most fun.

  46. Ah, the memories... by Phoenix-kun · · Score: 2, Interesting

    I wrote my very first program in Basic on an 8K PDP-8/I computer ("Hello World!") back in 1975. We had to toggle in the bootstrap instructions using the toggle switches, load the OS from a paper tape and then finally the Basic application off the DECtape drive. I was just amazed at the possibilities and would come in on my own time just to write silly little programs.

    --
    Phoenix
    1. Re:Ah, the memories... by markana · · Score: 2, Interesting

      I want to moderate this +1 Nostalgic...

      You were lucky to have a DECtape - I was doing the same thing on an 8/I at the same time (74-75), and have to live with just an ASR-33 paper tape. I think I can do the RIM Loader switch sequence by muscle-memory... :-)

      It was much better moving to the PDP-11 with RSTS/e.

    2. Re:Ah, the memories... by PGillingwater · · Score: 1

      The ASR-33, I remember it well. The PDP 8/E that I worked on had one of those, plus a FACIT (?) tape reader, and a pair of DECtapes. I remember however working on a BASIC system in 1975 -- it was a "Computer Automation Naked Mini Alpha", which used Cassette tape (running COS.) I wrote a BASIC program to perform solutions of simultaneous linear equations with Guass-Siedel iteration, and the Newton Raphson method of optimization.

      In 1978 I used a Tektronix 4010 graphics display with the PDP-8/E, and wrote some software to accept graphics input, write it to a file, and draw it on the display.

      --
      Paul Gillingwater
      MBA, CISSP, CISM
    3. Re:Ah, the memories... by Hans+Lehmann · · Score: 2, Interesting
      Let's see a show of hands, everyone. Don't be afraid to admit it. How many of you wrote your very first program in Basic?

      Mine was in the early 70's, on a ASR-33 Teletype in my high school math class that was connected via dial-up connection to some mainframe at Penn State.

      Ten characters per second on a roll of paper. with a spiffy paper-tape punch hanging on the side.

      --
      09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
    4. Re:Ah, the memories... by Patrik_AKA_RedX · · Score: 1
      Let's see a show of hands, everyone. Don't be afraid to admit it. How many of you wrote your very first program in Basic?
      Looking for new members for the BPA (Basic Programmers Anonymous)?

      <In a typical self help group> Hello, my name is Patrik and I was a Basic user. But I haven't touched a Basic interpreter for over 6 years.
    5. Re:Ah, the memories... by mcguirez · · Score: 1

      8K?

      What did you do with all that RAM?

      I started with a 4k PDP/8L and I wrote
      my first game in FOCAL. Must have been '71.
      All paper tape - we had no fancy tape drives.

      This was a small private high school and
      we (the kids) got to load the COBOL compiler
      so the local university (FDU) could have a class
      in our computer room. Gee, mr, can we, can we,
      hun, please?!

      An addiction that has stuck for life.

      Thank you Delbarton.

      *FDU - Fairleigh Dickinson University, Madison Campus

      --
      When you hear hoofbeats, think horses, not zebras
    6. Re:Ah, the memories... by MadHungarian1917 · · Score: 1

      What no one had a high speed tape reader on their PDP 8/I
      which could read their tapes at a blistering 300 characters per second in addition to the DECTAPE which flapped so wonderfully when you unloaded them.

      Also had a ASR-35 which was the size of a sofa and always smelled of hot oil

      Ahh the memories when computers were fun...

    7. Re:Ah, the memories... by MadHungarian1917 · · Score: 1

      Oh, and dont forget Hammurabi where you were king of an ancient realm in the fertile crescent and you would allocate resources.

      Kind of like the SIMS but the UI was oily yellow paper.

  47. Did anyone try to write a Zork like game way back? by Prince+Vegeta+SSJ4 · · Score: 1

    10

    .

    .

    70 INPUT "Do you want to talk to the White Fuzzy Animal?";Q$

    80 IF (Q$ = "Y") OR (Q$ = "y") THEN GOTO 90

    85 Print "Your squire takes out the Holy Hand Grenade!"

    90 Print "A Rabbit with big pointy teeth bites your head off"

  48. Awesome times by divine_13 · · Score: 1

    I find BASIC an excellent language. It got me into all this programming. I started learning it when i was about 7, then later moved up on HTML. After that came ASP, then my dad got me into PHP, i did some Java, now i'm stuck with C. Although, i still feel the urge to open up a Windows command line, and type QBASIC. That... that was the good ole' times :)

  49. Mixed Case? by Ann+Elk · · Score: 1

    Of course, the odds are the computers used back in 1963 had UPPER CASE letters only. Real programmers don't need lower case!

    I tried to enter this message in just upper case, but it pissed off the lameness filter. Lame.

    1. Re:Mixed Case? by DR+SoB · · Score: 1

      Funny part is, _ALL_ programming languages use upper case ONLY during linkage and compilation. The reason for it, is if you break it all down to pneumonics and machine code, it's all assembler, and assembler is only programmed in upper case (You use ebidic or ascii or whatever to get case sensitivity at a higher level).

      What I want to know is why can't the lameness filter block out that crappy html formatting problem? (YOU HAVE NO LINE BREAKS YOU INSENSITIVE CLOD!) *NOTE* Use "Plain Old Text", or for us basic folks, simply "Plain Text" (When I see "Plain Old Text" I always think, so what, do they consider html NEW text??

      --
      Mod +5 Drunk
  50. Links by Anonymous Coward · · Score: 0

    Funny... I don't remember having hyperlinks in my BASIC programs.

  51. Jupiter Ace by Draoi · · Score: 1
    Oh yes. Back in the good old days when every single home computer ran BASIC and nothing else, one computer shone out. The Jupiter Ace - gods, I loved it.

    What did it run? Forth, of course!

    (Sorry, just had to show there was a better alternative to BASIC back in the early '80s. I still do Forth regularly in OpenFirmware)

    --
    Alison

    "It is a miracle that curiosity survives formal education." - Albert Einstein

    1. Re:Jupiter Ace by egomaniac · · Score: 1

      God, I used to love Forth. Incredibly elegant for its time.

      --
      ZFS: because love is never having to say fsck
  52. Wow, you totally blew it. by juuri · · Score: 1

    This is basic, remember?

    10 PRINT "ALL YOUR BASIC ARE BELONG TO US"
    20 GOTO 10

    GOTO, the staple of a master basic programmer.

    --
    --- I do not moderate.
  53. ...moderators? by Anonymous Coward · · Score: 0

    Why on earth is the parent getting moderated down?? He makes an excellent point. BASIC was neither the first human-readable language nor in any way linguistically related to Java. In short, he's right.

  54. Re:10 print "Ha " by log0n · · Score: 1

    (to the mod)

    I knew someone here would have the same sense of humor ;-)

  55. SlashBasic by AtariAmarok · · Score: 0, Troll

    10 POST TROLL 20 IF MSG = GOATSE THEN CLOSE WINDOW 25 SET X = MODPOINTS 30 FOR N = 1 TO X 35 TROLLMOD = TROLLMOD -1 40 NEXT N

    --
    Don't blame Durga. I voted for Centauri.
  56. Now we know when it was born... by gmuslera · · Score: 1

    BASIC
    1964-2005
    Requiscat in Pace

    1. Re:Now we know when it was born... by Patrik_AKA_RedX · · Score: 2, Insightful

      Sorry to destroy your dream, but Basic is very alive and isn't going to die very soon. Check out Bascom for example.
      And as computers keep getting faster, soon Qbasic will run just as fast on a P8 2THz as assembly on a 486DX 66MHz.

  57. SCO-BASIC by FrankoBoy · · Score: 1, Redundant

    10 PRINT "SUE !"
    20 GOTO 20

    1. Re:SCO-BASIC by Anonymous Coward · · Score: 0

      Hahahaha shit, "20 GOTO 20"... This sucked :)
      - Franko

  58. Dijkstra said it best ... by zonix · · Score: 4, Informative

    "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." -- Professor Edsger Dijkstra

    Oh yeah and "Goto considered harmful" too, of course.

    RIP buddy. :-)

    z
    --
    What would an EWOULDBLOCK block, if an EWOULDBLOCK could block would? -- me
    1. Re:Dijkstra said it best ... by cmpalmer · · Score: 1

      Actually, I'm not sure if I would have appreciated the style and requirements of Pascal and C if I had not been programming in Basic for nearly 10 years before I got to college.

      I had been using it long enough to hate the quirks and gotchas and I was ready for something better.

      The TRS-80 Model 1 4K was my first computer. Then I got Level II basic. Then I got 16K of memory (woo hoo!). Then I got a C-64. Then I went to college.

      --
      -- stream of did I lock the front door consciousness
    2. Re:Dijkstra said it best ... by Dielectric · · Score: 1

      Or, you could have done like my former roommate. When faced with a brick wall in his BASIC side-scroller, he resorted to inline asm loops. IIRC, it was for handling the parallax graphics. Completely disgusting, but it worked.

      I'm not sure what my point is. I just think about that guy every time someone mentions BASIC.

    3. Re:Dijkstra said it best ... by cmpalmer · · Score: 1

      I did learn some 6502 assembler prior to college due to lack of power available in the C-64 basic language.

      --
      -- stream of did I lock the front door consciousness
    4. Re:Dijkstra said it best ... by hornrimsylvia · · Score: 1

      oh thanks a million 3-2-1 contact magazine...for screwing up my future as a programmer! oh wait.

    5. Re:Dijkstra said it best ... by poot_rootbeer · · Score: 5, Insightful

      "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." -- Professor Edsger Dijkstra

      Okay, now all the professional coders whose first programming experience was in BASIC on a VIC-20, Apple II, or TRS-80, raise your hands... man, there seems to be a lot of us, huh.

      Oh yeah and "Goto considered harmful" too, of course.

      GOTO is essential -- all processors use it at their lowest levels (it goes by the name JMP in assembly language, though.)

      All other types of branching or looping are just syntactic sugar.

    6. Re:Dijkstra said it best ... by fermion · · Score: 1
      It is unlikely that BASIC is the problem. I suspect that instead it the way the instructors are teaching, and as such the statement indicates an inferior pedagogy at the university.

      The problem was, is, and will continue to be that most do notlearn how to program. Instead they learn about the mechanics of a particular language and how to make reality conform to the limitations of the language.

      As I was learning programming, the technology was changing quickly. I started playing on teletype, and then an early mini, and then an old mini, and then a mainframe and microcomputer. We learned Basic, Fortran and then C. Because I had an exposure to a set of tools, I learned to program. Because my teahers made us do quite a bit of thinking before we coded, I learned to program. If they had just let us code, then it would have been a different story.

      Every language that does anything useful has harmful bits. These bits are a critical part of the language if for no other reason that they allow us to immidiately identify the incompetent.

      --
      "She's a scientist and a lesbian. She's not going to let it slide." Orphan Black
    7. Re:Dijkstra said it best ... by Zaiff+Urgulbunger · · Score: 1

      Whilst I'm sure it was a disposable comment (as REM if you like!), and whilst I don't agree (largely due to my own BASIC background), and whilst there are plenty of other comments disagreeing and saying Dijkstra was arrogant... this is Slash dot, so:

      Proving the statement:"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."

      Wasn't Bill G/Microsoft's early background BASIC interpreters?

      Hmmm, funny that!! :)

    8. Re:Dijkstra said it best ... by zonix · · Score: 1
      Okay, now all the professional coders whose first programming experience was in BASIC on a VIC-20, Apple II, or TRS-80, raise your hands... man, there seems to be a lot of us, huh.

      Oh right here! But on an IBM PC-AT in the mid-eighties. Then on the C64, and then there was Turbo Basic on the 80286 I think? ;-)

      GOTO is essential -- all processors use it at their lowest levels (it goes by the name JMP in assembly language, though.)

      All other types of branching or looping are just syntactic sugar.

      Of course it's essential at the lowest level, but you will also remember something like JSR (or the like?). Todays syntactic sugar makes a good point of returning you to your previous origin of branching; keeping you in control of what's happening and what variables you're mangling and such (think functions). I believe GOSUB was the safer bet compared to GOTO for BASIC in those days.

      I don't think GOTO is the best idea to use in higher level languages unless you're writing a kernel or something where performance is absolutely critical in some places.

      z
      --
      What would an EWOULDBLOCK block, if an EWOULDBLOCK could block would? -- me
    9. Re:Dijkstra said it best ... by Anonymous Coward · · Score: 0

      Of course it's essential at the lowest level, but you will also remember something like JSR (or the like?). Todays syntactic sugar makes a good point of returning you to your previous origin of branching; keeping you in control of what's happening and what variables you're mangling and such (think functions). I believe GOSUB was the safer bet compared to GOTO for BASIC in those days.

      I don't think GOTO is the best idea to use in higher level languages unless you're writing a kernel or something where performance is absolutely critical in some places.


      You're not making a good case for basic-grown programmers here...

      jsr/gosub/call is used for a completely different purpose than goto/jmp. If all you have is call and no goto, you end up having to pop the return address off of the stack all over the place, which is worse than using goto. Quite often you don't want to return to the jump point. (think switches, if/else, while loops where the condition is false the first time, etc.)

      Yeah, most conditionals and looping constructs are just syntactic sugar for something involving goto, but the point of "goto considered harmful" is that people need syntactic sugar.

      Goto is almost never the way people think, and writing code that people can understand is almost always more important than writing the most efficient code possible. (and that's rarely a tradeoff you have to make, since the resulting machine code is often identical.)

      Put another way, you can write a program using nothing but a long stream of numbers, but it would be a bad idea. You'd probably end up using instructions as constants (hey, it is more efficient that way), and then it'd be hell to fix anything.

    10. Re:Dijkstra said it best ... by donaldlatif · · Score: 1

      GOTO is essential -- all processors use it at their lowest levels (it goes by the name JMP in assembly language, though.) All other types of branching or looping are just syntactic sugar.
      What you're forgetting is that the lack of GOTO statements in higher level languages is a classic example of "let the compiler do the hard work." GOTO, or JMP statements, are indeed used at the machine level, because regular programmers shouldn't have to worry about the thousands of ways you can obfuscate your control flow by using GOTOs in a higher-level language.
      Also, Dijkstra didn't just offhandedly comment that GOTOs are bad. He had a proof. The use of GOTOs in a higher level language severely complicates the concept of continuations, and destroys the provability and soundness of a program.

    11. Re:Dijkstra said it best ... by Anonymous Coward · · Score: 0

      2 REM HANDS.BAS
      5 POKE 53281,0
      6 POKE 53280,1
      10 ? "The goto statement is there in C"
      15 ? "as it is in BASIC. Modern BASIC"
      20 ? "programmers, such as VB programmers,"
      25 ? "generally don't make use of " _
      CHR$(34) + "GOTO" + CHR$(34) + "."
      30 ?
      35 ? "The people who seem to fear GOTO the"
      40 ? "most, are people who have little"
      45 ? "experience with having to write"
      50 ? "unconditional branches in assembly."
      55 ? "These people are known as " + CHR$(34) + _
      "Quiche Eaters." + CHR$(34)
      60 ?
      65 ? "I for one welcome our unconditional"
      70 ? "branching overlord."
      75 END

    12. Re:Dijkstra said it best ... by notamac · · Score: 1

      Just for fun I thought I'd try this....

      [craigt@xi linux-2.4.22]$ find -name '*.c' | xargs grep goto | wc -l
      17821

      Of course a good way to use goto in C at least (imho) is for error handling (so you can get some of the effect of C++ exceptions in tricky code that needs to be C - a quick scan through says that that's what most of the goto's from linux are)

    13. Re:Dijkstra said it best ... by kahei · · Score: 1

      Vic-20/c64 basic was a bit different. It was so lacking in syntactic and semantic functionality that to get anything done with it required that most of your program effectively be machine code, via pokes or data statements.

      Therefore, I suspect that c64 basic didn't teach bad habits as much as more complete and imprisoning basics (BBC model B!) might have.

      Of course you could probably make the same argument the other way round....

      --
      Whence? Hence. Whither? Thither.
    14. Re:Dijkstra said it best ... by Overzeetop · · Score: 1

      Learned 6502 asm the summer when I was 13 or so. Of course, I didn't have the $150 for the cheapest assembler out there (the Ace1000 I had was a _very_ generous gift from my grandfather - a whopping $1200.) So I'd write my asm on paper, then draw a chart on lined paper and code the machine language by hand.

      Very labor intensive, but at 13 it was one convenient way to kill a rainy afternoon. And it was very instructive in how computers work. It often baffles me how slow my handheld PC is today, with 300MHz at its disposal, when compared to what we did with the machines of my youth.

      Even further off topic, I remember this one kid - paul reishi - who made the most foolish proclaimation in our computer group that he wanted to write a program that would automatically turn the computer on. Of course, that was preposterous, and we all sniggered behind his back. Realize - we were in 7th grade and we had TRS80s and used BASIC. I remebered him for the first time in years when I saw my first wake-on-lan type functionality. Hope he made a mint.

      --
      Is it just my observation, or are there way too many stupid people in the world?
  59. Ah, the fun I had with QBasic... by BeneathTheVeil · · Score: 4, Interesting

    This brings me back... the first language I ever learned to code in was C++... but before that, I had learned Qbasic. ;)

    I think it was the limited nature of the language which kept me interested in it for so long. Those DOS memory limits were fun... coding a 2D RPG, and trying to stay within around 450KB, so it would run on most people's DOS machines. It was a challenge, I tell you... and trying to keep the code neat, and tidy... also a fun challenge.

    To this day, I'm still amazed at some of the things which people were able to do with QBasic, and QuickBasic... fast raycasters, 3d polygon game engines, even voxel engines! ...but I think, the biggest fad was making console style RPGs. I'd like to think that I had a small hand in starting that fad, with a little Qbasic RPG demo I released in 1997. Some of you may have played it, it was called "Lianne in... the Dark Crown". Yes, fun times... fun times indeed.

    I think, I'll go looking for all those old Qbasic games. They may not have been much, but they were fun to play.

    1. Re:Ah, the fun I had with QBasic... by Anonymous Coward · · Score: 0

      Anyone remember the old game castle or something like that?

    2. Re:Ah, the fun I had with QBasic... by JuliaNZ · · Score: 1

      > Those DOS memory limits were fun...

      Trying to stay within DOS limits? Now try staying within the Commodore PET limits (16kb), then we'll talk!

    3. Re:Ah, the fun I had with QBasic... by Professr3 · · Score: 1

      You wrote that? Excellent :D I enjoyed it quite a bit... I wrote one game engine in Qbasic... It was a mario clone, of course. DirectQB is a wonderful piece of engineering.

  60. READ THE F&%ING POST by Theatetus · · Score: 1, Insightful

    I didn't say only non-programmers used Java, I said Java was marketed towards, AMONG OTHER PEOPLE, nonprofessional programmers. It's presented as an easy language to pick up on, and, in fact, lots of non professional programmers have used it to do things like rotate images and play sounds on their webpages, for instance.

    Jeez, you Java people are sensitive.

    --
    All's true that is mistrusted
    1. Re:READ THE F&%ING POST by ifreakshow · · Score: 1

      I still think you must be confusing Java with JavaScript. From your reply I'm guessing your a troll.

  61. line numbers by amyhughes · · Score: 1
    Damn I hated numbering each line of code!
    I wrote a pre-processor that'd do the line numbering for me. As soon as it was working I re-wrote it without line numbers and used it to pre-process itself. Then I added block if-then-else and other stuff.

    Back in the days when programming was fun.

    Amy

  62. Using a language vs. knowing what to use it for by leoaugust · · Score: 2, Insightful
    yet simple enough that even the school's janitors could use it
    Using the language is one thing, knowing what to use it for is another. I know of many many "programmers" who know the programming language's syntax and can write basic programs, but ask them to program something creative or program something creatively and they fail miserably.

    --
    To see a world in a grain of sand, and then to step back and see the beach where the sand lies ...
  63. Thank you! by Whatthehellever · · Score: 1

    Thanks for that refreshing originally-styled newsbyte.

    And it'll probably be another 10 years before we see it again when BASIC turns 50?

    I hope not.

    --

    ---
    IMHO, of course.
    May the SOURCE be with you.
  64. Be gentle by Anonymous Coward · · Score: 0
  65. My life's language arc by HarveyBirdman · · Score: 2, Interesting
    Apple II Basic

    Atari Basic

    6502 Assembler

    Fortran

    Action!

    Deep Blue C

    Pascal

    Metrowerks C

    GNU C

    Perl (just enough to make my Unix life easier)

    Java

    GNU C++

    Visual Basic

    RealBasic

    Have I come full circle? By the time I got to C++ and VB, I was mainly programming for work, but RB has made programming fun again, and I have launched a couple personal projects for the first time in years.

    Gold bonus points if you know what Action! was.

    --
    --- Ban humanity.
    1. Re:My life's language arc by t0qer · · Score: 1

      Action was a C like launguage for the atari, i think FTE (fine tuned engineering) made it. Do I get a cookie?

    2. Re:My life's language arc by Anonymous Coward · · Score: 0

      I remember how psyched I was when I got my Action! catridge for my Atari 800 (got my disk drive at the same time). That was favorite until Object Pascal/MacApp.

    3. Re:My life's language arc by Marxist+Hacker+42 · · Score: 0

      Only that many? At last count I had 37 languages on my full resume- and if you separate out the dialects of Basic, it rounds it out to Life, the Universe, and Everything.

      Of course, I've only ever gotten PAID for SQL, VB, HTML, and C++. I'm VERY disappointed after spending 6 years at OIT picking up about 20 of those other languages.

      Ted

      --
      SJW: a person who perceives an injustice, and while correcting it, commits a greater injustice.
    4. Re:My life's language arc by monkeyboy87 · · Score: 1

      Action! my first exposure to something C-like. It was cool because the cartridge was orange - unlike all the brown/black atari carts. I remember liking it because it was faster than atari basic, but yet didnt require reams and reamd and reams of code like macro assembler. A shame that OSS never ported it to the 68k or the like.

    5. Re:My life's language arc by HarveyBirdman · · Score: 1
      Only that many?

      *shrug* I'm a hardware engineer. I program to simulate things and to write GUI interfaces to my hardware. If I don't, our software people will use that unholy beast called Labview and make pale, lifeless control panels that would crush my creative spirit.

      --
      --- Ban humanity.
  66. Too bad it wasn't original... by Anonymous Coward · · Score: 0

    Ripped straight from the linked article... but then again, nobody here reads those.

  67. IN SOVIET RUSSIA... by raehl · · Score: 0, Troll

    10 GOTO 20
    20 PRINT "Ha"

    1. Re:IN SOVIET RUSSIA... by Anonymous Coward · · Score: 0, Troll

      Shouldn't it be more:

      10 COMEFROM 20
      20 PRINT "Ha!"

  68. I was unclear. by Anonymous Coward · · Score: 0

    What I was saying was not that MS had claimed this, but that persons on slashdot previously had claimed this. I was trying to see to what extent this was an urban legend and where this urban legend came from. Thank you for responding :)

  69. BASIC got me going by kdekorte · · Score: 4, Insightful

    Well I'm glad BASIC exists because I probably would not have started programming without it. Can you imagine trying to learn C or something like that when you are 13 (circa 1984) and have no other programmer friends and no internet or BBS to get sample code from. Also C and Pascal compilers cost big money back then. Borland's Turbo Pascal was probably the other big hobby language back the as well. It probably damaged my skills, but I think I have overcome most of the damage.

    And Windows 3.1 never would have been as accepted as it was if not for VB 1.0. I think VB was probably the thing that got a lot of people on Windows because programming Windows in C at that point was very complicated for the home hobbiest.

    1. Re:BASIC got me going by surgeonsmate · · Score: 3, Insightful
      Well I'm glad BASIC exists because I probably would not have started programming without it. Can you imagine trying to learn C or something like that when you are 13 (circa 1984) and have no other programmer friends and no internet or BBS to get sample code from.

      Happy Birthday BASIC but where is the pathway to any flavour of the language now?

      Once upon a time BASIC came as a free part of the computer box. A lot of boxes, you turned them on and there was BASIC. To do anything at all, you had to learn BASIC, and so a lot of people did.

      But nowadays, all you do is point and click. Visual Basic isn't free. Maybe you can get into VBA through Word, but I can't see too many 13YOs going that route.

      I'd have to say that eventually BASIC will wither and die through lack of new blood. Sure it will take a while until all those programmers who learnt their stuff in the 80s die out, but die out they will.

    2. Re:BASIC got me going by Elwood+P+Dowd · · Score: 1

      VBScript.

      Type "wscript /?" at your command prompt.

      It's all there, hon.

      Dunno of any good IDEs for it, but you don't need word in order to run VBS. That's why all those viruses are written in VBS...

      --

      There are no trails. There are no trees out here.
    3. Re:BASIC got me going by dasmegabyte · · Score: 1

      Well, there are a number of free and easy ways to learn programming these days. Javascript is a good one, available whereever there's a browser and able to perform some mighty tricks without fucking up your computer. VBScript is another, "point and click" be damned, you can do some powerful shit once you get cooking in VBS and it's generally more programming language than most people want!

      And there's always Java, which is not only free, but also is a world class language for everything from internet servers to complex GUIs, with some great tools and even better literature. That's my language of choice for newbies...takes a bit more coaxing to get them to open their heads to it, but once they do...there's no shutting them again.

      --
      Hey freaks: now you're ju
    4. Re:BASIC got me going by Geoffreyerffoeg · · Score: 1

      Exception. Last year, when I was thirteen, I made a quickie VBA program through Word to ensure our coach's bracket setup for his basketball tournament couldn't result in teams playing each other more than once. This year, I brushed it um with a bunch more features. This is on a school-provided computer without even Internet access. VBA is useful. So is Javascript for quicker stuff; I wrote an averager JS in HTML forms to help with repetetive math on the same computer, and ran it with the built-in IE.

    5. Re:BASIC got me going by surgeonsmate · · Score: 1
      And there's always Java, which is not only free, but also is a world class language for everything from internet servers to complex GUIs, with some great tools and even better literature. That's my language of choice for newbies...takes a bit more coaxing to get them to open their heads to it, but once they do...there's no shutting them again.

      You know, that's exactly my thought. VBScript is all very well, but why would you want to cripple your efforts by writing stuff that doesn't run as widely as Java?

      Kids nowadays would get into programming cool webpages rather than writing Hello World! There's a tonne of examples around. Heck, just view source, copy and paste.

      I'm a VB programmer and I love it, but a lot of that is because I cut my programming teeth on BASIC and didn't develop a liking for COBOL or FORTRAN or any of the other stuff around.

      But nowadays, it'd be Java all the way.

    6. Re:BASIC got me going by FuzzyBad-Mofo · · Score: 1

      Happy birthday, BASIC. Now hurry up and die, already.

    7. Re:BASIC got me going by ThisIsFred · · Score: 1

      ... And Tcl/Tk, Python, Perl or PHP. Those are just the commonly used ones. Javascript is slow and poorly documented (no browsers come with a decent Javascript reference, or even a link to one). The four languages I've listed above have gobs of useful information, and are cross-platform. There are some wonderful things on Sun Java that you can't do in MS Java.

      --
      Fred

      "A fool and his freedom are soon parted"
      -RMS
    8. Re:BASIC got me going by cocotoni · · Score: 2, Informative

      And then, there is the free (as in no monetary exchange takes place) download of .NOT framework, with compilers for VB .NET, C#, J# and JScript .NET.

      Console application can be done without much fuss in notepad, if you care, and with a lot of trial and error tests, even a Windows.Forms application can be written.

      If you want a better IDE environment... well there is C#Builder from Borland, which is a free (as above) download for non-comercial use. There is also free (as in GPL) IDE for both C# and VB.NET called #develop (http://www.icsharpcode.net/OpenSource/SD/) but I have no experience with it.

      Fact is, kids these days have a world of options at their fingertips. Now, if only the programming could be made as interesting for them as it was for me some 20 odd years ago when I wrote 10 PRINT "Blah Blah" for the first time.

    9. Re:BASIC got me going by dasmegabyte · · Score: 1

      This is retarded. The reason I suggested you USE JavaScript over the others is that you can't fuck up your computer. And you suggest three languages that really COULD screw up a computer, the reason given that "no browsers come with a decent JavaScript reference?" Name one browser that comes with a good Perl reference. Shit, Perl doesn't even come with a good perl reference!

      I love Python, but I would NEVER tell somebody to learn how to program on it. Perl neither, they're way too esoteric syntactically while abstracting important programatic structures like types and so on. It'd be like learning how to paint by copying a Picasso, or learning engines by field stripping a Cessna. And PHP? PHP requires so much knowledge --how a webserver works, how HTML works, how to set up apache for script execution -- before it can even be approached that I'm just going to assume that you didn't think before typing, those four languages are TERRIBLE for beginners. Though insanely useful for amateurs.

      There are some wonderful things on Sun Java that you can't do in MS Java.

      Another dumb statement. Before development was halted on it, MS Java *WAS* Sun Java, only a lot more flexible. That's why Sun sued...here they were, developing a great little cross platform VM language, and Microsoft had to go and write a utility that would compile it into native code! The nerve! I remember writing an NT service in Java, and being amazed that it was actually easier than writing one in C.

      --
      Hey freaks: now you're ju
    10. Re:BASIC got me going by dasmegabyte · · Score: 1

      How about a 3d version of Logo?

      That would be hella cool, moving cursors and simple objects through 3d space...

      --
      Hey freaks: now you're ju
    11. Re:BASIC got me going by ThisIsFred · · Score: 1

      This is retarded. The reason I suggested you USE JavaScript over the others is that you can't fuck up your computer. And you suggest three languages that really COULD screw up a computer, the reason given that "no browsers come with a decent JavaScript reference?" Name one browser that comes with a good Perl reference. Shit, Perl doesn't even come with a good perl reference!

      Go on Netscape's site (a distributor of a browser with Javascript), and show me where are the comparable documents with respect to Active State's TCL references, or PHP.net's references. There is no comparison. So for a beginner, these languages are more accessible. I don't get your argument about "fucking up" the computer. The basic commands for those scripting languages I listed are no more dangerous than the basic Javascript commands. When the user more learned, he is still protected from "fucking up" his computer, but it's a trade-off, because he's also using something that has restricted functionality.

      And PHP? PHP requires so much knowledge --how a webserver works, how HTML works, how to set up apache for script execution -- before it can even be approached that I'm just going to assume that you didn't think before typing, those four languages are TERRIBLE for beginners.

      PHP doesn't require a webserver, nor does it require great knowledge of HTML. Obviously it's greatest strength is in web-based applications, but a working webserver isn't required to learn PHP. On the other hand, knowledge of HTML and a working web browser is required to use Javascript.

      Another dumb statement. Before development was halted on it, MS Java *WAS* Sun Java, only a lot more flexible.

      I wasn't speaking historically, I didn't even mention it. As it stands now, you have a much greater amount of functionality available Netscape with Sun Java.

      --
      Fred

      "A fool and his freedom are soon parted"
      -RMS
    12. Re:BASIC got me going by dcam · · Score: 1

      Javascript is a bitch to debug. Mozilla makes it far easier, but it is still (in my experience) the hardest language to debug.

      --
      meh
  70. Goto in HTML? by TrentL · · Score: 1

    What part of HTML resembles GOTO's?

  71. 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 */
    1. Re:It feels like elementary school again by Anonymous Coward · · Score: 0

      Unbeliveably, ? still works as print in the vs.net cmd window.

  72. Re:Did anyone try to write a Zork like game way ba by An+Onerous+Coward · · Score: 1

    I was probably seven or eight when I started playing around with BASIC on the Commodore 64.

    It was another ten years before I discovered that other programming languages existed.

    BASIC is evil. 'nuff said. :)

    --

    You want the truthiness? You can't handle the truthiness!

  73. The Janitors Liberation Organization by Lust · · Score: 4, Insightful

    Hey, stop using janitors as some lowest-common-denominator! Rather "The language was so simple even programmers could use it."

    The JLO

    1. Re:The Janitors Liberation Organization by plopez · · Score: 2, Interesting

      A friend of mine went to college and got an Economics degree. He then dropped out and became a buddhist hippie for a few years before landing a job as a janitor at another uni. One of the side benefits of the job was that they paid for 1 class each semester for the employees.

      He started taking classes and 5-6 years later got a Phd. in entomology. We like to joke around 'If this Phd. thing doesn't pay off you can always fall back on your experience in the janitorial field...'

      The lesson: NEVER underestimate a janitor....

      --
      putting the 'B' in LGBTQ+
    2. Re:The Janitors Liberation Organization by SirWhoopass · · Score: 2, Interesting

      In the Mechanical Engineering department at the U of MN, we had a janitor who was also a computer geek. He'd always strike up a conversation with the sysadmins. He was an early linux adopter.

      When some of the workstations got switched to linux, some of the profs would bitch. They'd claim that it was too hard and too difficult to learn.

      The standard response was, "Huh. The janitor uses linux, he has no problems." That really shut the profs up.

    3. Re:The Janitors Liberation Organization by madpoet_one · · Score: 1

      Hey wait a minute... I am a tech support guy at middle school and some of the janitors make more than me!

      --
      Remain lost in hidden worlds where I reign. Head engine and caboose in my toy train...
    4. Re:The Janitors Liberation Organization by TheSpoom · · Score: 1

      The funny thing here is that this post was modded +5, Insightful.

      The funnier thing here is that my post will probably be modded -1, Flamebait :^D

      --
      It's better to vote for what you want and not get it than to vote for what you don't want and get it.
      - E. Debs
    5. Re:The Janitors Liberation Organization by soybean · · Score: 1

      No, that's Perl.

    6. Re:The Janitors Liberation Organization by dildatron · · Score: 1

      Good story. Another point is that many of us in the IT field are basically technological janitors, picking up, moving, cleaning things(or data) for the users.

      No different than building a table, moving a desk, or cleaning up puke off the bathroom floor.

      --


      If you had nuts on your chin, would they be chin nuts?
    7. Re:The Janitors Liberation Organization by rgigger · · Score: 1

      You insensitive claud.

    8. Re:The Janitors Liberation Organization by TheGrayArea · · Score: 1

      Don't you mean:
      The language was so simple even Managers could use it."
      No, wait ... that's Excel. Sorry ...

      --

      This space for rent.
    9. Re:The Janitors Liberation Organization by Anonymous Coward · · Score: 0

      Hey, stop using janitors as some lowest-common-denominator! Rather "The language was so simple even programmers could use it."

      What is wrong with using janitors as the "LCD"? What kind of person has a job cleaning up other peoples' shit all day? Usually the unintelligent and uneducated kind. So, I think it is a valid analogy.

      Look, I don't care if you know this one janitor who is a fucking renaissance man. My janitor (and , I believe, most janitors) is a fucking moron who spends 40 hours a week of his life cleaning up other peoples' shit.

  74. the tables have turned by Digitus1337 · · Score: 1

    Now with all of this outsourcing programmers are going to have to be ready to take jobs as janitors!

  75. REM Thank You For Bad Habits by Eberlin · · Score: 5, Interesting

    Ah yes, BASIC. I remember it distinctly as it's what I used for the longest time. Didn't have to declare your variables, had to contend with line numbers (that renum thing came in very handy), and of course the ever-popular GOTO statements.

    Eventually I evolved onto qbasic with its functions and subs and (gasp) no line numbers! Then there's VB and VBA. The most fun I've had with those are the shell calls.

    On machines that are so locked down that you can't even traverse directories let alone get a shell prompt, you run your form of BASIC, and do basic shells through it or even shell to cmd.exe or command.com -- at one point, I had a really lamed out, simple, featureless, just for fun version of netcat that executed shell commands, piped it to a text file, and had the text file's contents sent through the network. (this with VB's socket stuff). If nothing else, it was a good way to make fake Novell login prompts in the mid 90's. ;-)

    In the end, not a lot of people will be taken seriously for knowing BASIC, but since it was the first language I used, I appreciated the retro code.

    1. Re:REM Thank You For Bad Habits by horza · · Score: 1

      Ah yes, BASIC. I remember it distinctly as it's what I used for the longest time. Didn't have to declare your variables, had to contend with line numbers (that renum thing came in very handy), and of course the ever-popular GOTO statements.

      Fortunately I've moved on from C to a language called PHP. There I don't need to declare my variables, and when there is an error at run-time it gives me the exact line number. Ah, how programming languages have advanced. I've never used GOTO in any language including the many years of BASIC.

      Phillip.

  76. I gotta ask... by ii-v-i-head · · Score: 1

    Who here dreamed of writing your own version of space invaders in basic as a kid. My personal pipe dream involved a TRS-80. Long live Radio Shack, Long live Tandy!

  77. 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 Nate+Eldredge · · Score: 2, Informative

      There's still hope. Remember RENUM?

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

    3. Re:a BASIC error by rleibman · · Score: 1

      Mhh, my memory fails, but I remember that applesoft basic had a way to renumber the whole thing in 10 increments so you could put things in the middle if you forgot something.

    4. Re:a BASIC error by Jugalator · · Score: 1

      I remember there was tricks on the C64 to change several line numbers to be the same. Forgot how you did it though. :-(

      Sort of like this:

      1 PRINT "Hello"
      1 PRINT "Cool huh?"

      The original execution order was preserved too. :-)

      --
      Beware: In C++, your friends can see your privates!
    5. Re:a BASIC error by hankwang · · Score: 1
      I remember that applesoft basic had a way to renumber the whole thing in 10 increments

      That was not included in Applesoft basic; you had to load a separate program first, that added some arcane command such as "REN 10,10000,500,10" to renumber the lines 10-10000 to 500 with 10 increments. Or something like that.

      Let's see whether posting this will undo my stupid moderation...

    6. Re:a BASIC error by bar-agent · · Score: 1

      The C-64/128 stored BASIC programs in tokenized form. I know because I used MONITOR a lot, trying to find the OS's multiply routine. :)

      Anyway, you could just peek and poke the BASIC storage area directly. That might be how they did it.

      I'm just glad they had the RENUMBER command! That thing was handy...

      --
      i'd hit it so hard, if you pulled me out you'd be the king of britain [bash.org]
    7. Re:a BASIC error by Geoffreyerffoeg · · Score: 1

      Or something that would qualify for an obfuscated BASIC contest (not that it would be particularly easy to choose a winner)...

      1 LET dearbasic = 0
      4 LET toyou = 1
      9 PRINT "Happy birthday ";
      16 GOSUB 64
      25 LET happybirthday = toyou
      36 GOSUB 64
      49 GOTO 196
      64 PRINT "to you,"
      81 GOTO 121
      100 PRINT "dear BASIC; "
      121 PRINT "happy birthday ";
      144 IF happybirthday = toyou THEN GOSUB 225
      169 RETURN
      196 PRINT "to you."
      225 IF happybirthday = dearbasic THEN END
      256 happybirthday = dearbasic
      289 GOSUB 100
      324 RETURN

      Works in MS QuickBasic, and, by extension, most sane standard BASICs.

      What shocks me is that I can write code like this after writing structured (subs, functions, at worst labels occasionally) BASIC code until about two years ago, whence I've been writing only C/C++ and PHP. Maybe its due to my abuse of the language...my current project for CS class uses macro functions nested three layers deep.

    8. Re:a BASIC error by newhoggy · · Score: 1
      Dammit... Missed out a line. Now I remember why I should always increment line numbers by 10.

      Easy. Just remember that GOTO is your friend. You only need to replace line 12 with a GOTO to a line number you haven't used before and code away.

      10 PRINT "Happy Birthday to you"
      11 PRINT "Happy Birthday to you"
      12 GOTO 1001
      13 END
      1001 PRINT "Happy Birthday dear BASIC"
      1002 PRINT "Happy Birthday to you"
      1003 GOTO 13

      Shit. Just one more thing ...

      10 PRINT "Happy Birthday to you"
      11 PRINT "Happy Birthday to you"
      12 GOTO 1001
      13 END
      1001 PRINT "Happy Birthday dear BASIC"
      1002 GOTO 1004
      1003 GOTO 13
      1004 PRINT "Happy Birthday to you"
      1005 PRINT
      1006 PRINT "Hip hip hurray!"
      1007 PRINT "Hip hip hurray!"
      1008 GOTO 1003

      See how quick it was to add new functionality? Now you realise the power of GOTO!

    9. Re:a BASIC error by jazman · · Score: 1

      That's what I liked so much about the C64 screen editor. Instead of selecting lines, copying them, changing them (Sinclair), or even worse (Oric), just move the cursor onto the 3, hit 4 CR; then move it onto the second digit of either 10 or 11, hit 3 CR and problem solved. So smooth and easy, just made everything else look clunky.

  78. Best. GOTO. Ever. by Anonymous Coward · · Score: 0

    Had a lot of fun doing that on TRS-80s in jr. high.

  79. Gorilla by Anonymous Coward · · Score: 0

    Damn. I miss Gorilla. Throwing bananas at each other over the city

    1. Re:Gorilla by Anonymous Coward · · Score: 0

      Nibbles was better.

  80. QBasic user! by Anonymous Coward · · Score: 0

    Doesn't know REAL basic.

  81. 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 Anonymous Coward · · Score: 0

      Or you can shorten that a bit with:

      while true ; do echo 'First Post' ; done

    2. 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.
    3. Re:Today we use Bash by shawn99452 · · Score: 3, Informative

      Your sig in C will also run out of stack space and crash very quickly.

    4. Re:Today we use Bash by IWannaBeAnAC · · Score: 1

      But the return type of main() is int!

    5. Re:Today we use Bash by shawn99452 · · Score: 0, Redundant

      His sig is recursive. It will eventually run out of stack space, because none of the functions returns, and then it will die.

    6. Re:Today we use Bash by bar-agent · · Score: 1

      This proves the superiority of BASIC! That version won't crash...

      Of course, neither would the C version if C knew wtf tail recursion was.

      --
      i'd hit it so hard, if you pulled me out you'd be the king of britain [bash.org]
    7. Re:Today we use Bash by Surt · · Score: 1

      Only on certain compilers. Lots support void main().

      --
      "Who is the Journal of Quantum Physics going to believe?" --Stephen Hawking
    8. Re:Today we use Bash by bobthemonkey13 · · Score: 1

      Not if your compiler optimizes tail recursion, which many do. Still, it's not exactly good practice. I always see 8th graders doing this in TI83-Basic.

    9. Re:Today we use Bash by andyh1978 · · Score: 1
      Lots support void main().

      Doesn't make it valid C.
    10. Re:Today we use Bash by ajs318 · · Score: 5, Informative
      Better to use something like
      int main() { /* i wish this thing would indent properly */
      for (1;1;1) { /* will loop forever */
      printf("ajs318 is a better programmer than Jorkapp\n");
      };
      };
      Repeatedly calling main() from within main() probably would overflow the stack. It's the equivalent of using GOSUB in BASIC when you meant GOTO -- GOSUBs and function calls have to remember where they were called from, which is what a stack is used for. If the compiler you were using was tolerant enough that you could declare void main(), then it would last about twice as long before crashing and burning, due to not having to temporarily remember an integer it's later going to have to throw away.
      --
      Je fume. Tu fumes. Nous fûmes!
    11. Re:Today we use Bash by shawn99452 · · Score: 1

      If the C version used goto like the BASIC program, it wouldn't crash either. If the BASIC one used a function instead of a goto, and it was compiled, it would probably crash too.

    12. Re:Today we use Bash by Anonymous Coward · · Score: 0

      Dude;

      Your for loop is too verbose. This will loop forever:

      for (;;) {};

    13. Re:Today we use Bash by Anonymous Coward · · Score: 0
      for (1;1;1)


      What the hell?

      for (;;) printf("Owned\n");
      please.
    14. Re:Today we use Bash by mujin · · Score: 1

      I always see 8th graders doing this in TI83-Basic.

      Reminds me of a program I used to have for my TI-83+... It gave a countdown, and when it reached 0 it gave an "ERR: Memory" from overflowing the stack.

    15. Re:Today we use Bash by Anonymous Coward · · Score: 1, Insightful

      Repeatedly calling main() from within main() probably would overflow the stack.

      Only if he's using a shitty compiler that doesn't know about tail call optimisation.

      Of course, for all I know that applies to all C compilers. I haven't used anything as crude as C in a while, so I wouldn't know.

    16. Re:Today we use Bash by mog007 · · Score: 2, Informative

      Bah... a real coder's infinite for loop doesn't have ANY numbers.

      for (;;)
      printf("STOP MEEEEEEEEE\n");

    17. Re:Today we use Bash by aardvarkjoe · · Score: 1
      Lots support void main().

      Doesn't make it valid C.

      Doesn't make it an invalid program, either.
      --

      How can we continue to believe in a just universe and freedom to eat crackers if we have no ale?
    18. Re:Today we use Bash by YOU+LIKEWISE+FAIL+IT · · Score: 1

      C supports GOTO. If you "meant GOTO"[*], why not use it?

      int main( int argc, char **argv )
      {
      tag: printf( "arrgh\n" );
      goto tag;
      return -1;
      }

      YLFI

      [*] And crave sadness.
      --
      One god, one market, one truth, one consumer.
    19. Re:Today we use Bash by Compenguin · · Score: 1

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

    20. Re:Today we use Bash by abradsn · · Score: 1

      There is one more character to type with the while version:
      for(;;);
      while(1);

    21. Re:Today we use Bash by BigMattG · · Score: 2, Informative

      Recent versions of GCC are actually smart about
      simple cases of tail recursion and are probably
      smart enough to expand the call into a loop.

    22. Re:Today we use Bash by Anonymous Coward · · Score: 0

      On some compilers, especially those with crappy optimizers, while(1) would produce assembly where after every iteration of the while loop, it checks to see if 1 isn't equal to zero. The equivalent for loop wouldn't have this problem.

    23. Re:Today we use Bash by Anonymous Coward · · Score: 0

      no shit dumbass, so you finally get the joke...

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

    25. Re:Today we use Bash by Anonymous Coward · · Score: 0

      both of your programs fail to compile...

      you both failed to include the stdio.h headers.

      Come on people.... this is programming 050 here!

    26. Re:Today we use Bash by ignavus · · Score: 2, Informative

      Why write "for (1;1;1)" ?

      According to K&R, it is perfectly OK to leave out any - or all - of the expressions inside the "for" loop header, and they themselves use "for (;;)" to implement an infinite loop. It means "loop without any initial action, without any test after each iteration, and without any action after each iteration".

      A "while(foo)" loop is exactly the same as "for (;foo;)". "for" loops are very versatile.

      --
      I am anarch of all I survey.
    27. Re:Today we use Bash by Gilk180 · · Score: 1

      a lot of the time, return values are put in registers, so void wouldn't make any difference.

    28. Re:Today we use Bash by Gilk180 · · Score: 1

      because of limitations of some architectures(more specifically their abi), real tail call optimization isn't possible.

      I would think even very basic compilers would be able to optimize a simple tail recursion.

      BUt from what I've seen a lot of developers don't bother with adding that -O optimization flag, so it doesn't really matter.

    29. Re:Today we use Bash by Gilk180 · · Score: 1

      personal preference in some cases. In some cases it is a difference of readability. In general for loops are meant for iteration and while loops are for condition checking.

      I would say either would apply here.

      However, for loops and while loops are identical in power. for(a;b;c){d;} is identical to a;while(b){c;d;}. Just rearranging stuff.

      I would think that for loops are easier for a compiler to optimize in some cases, though.

    30. Re:Today we use Bash by grozzie2 · · Score: 0
      Your sig in C is an example of why they had to invent 'managed' languages. A lot of wannabe developers writing code that is fundamentally flawed, to the point it was determined to be more cost effective to write 'managers' for broken code than it was to try teach 'developers' to do it right to begin with.

      Altho I must admit, I'm slightly amazed. I really thought an average /. reader could write 4 or 5 lines of C that doesn't blow/corrupt the stack. Guess my opinion of /. readers is still a little on the high side...

    31. Re:Today we use Bash by Anonymous Coward · · Score: 0
      for (1;1;1) { /* will loop forever */

      You know... "while (1) {" works just fine.

      Or even "for (;1;) {"

      Your version is amateurish.

      Plus I highly recommend ANSI standard formatting:
      while(1)
      {
      . /* do stuff */
      }
      KISS

      p.s. WTF is the deal with <ecode>?! The damn thing doesn't keep the spacing if the first non-space character is {, /, or .
    32. Re:Today we use Bash by marcop · · Score: 1

      Do you really need the "1's" in the for loop statement? I have used two embedded C compilers that let me do: for(;;)

      I have been told (although I have not checked the generated code) that there is no condition checking with just "for (;;)". I would imagine that putting a "1" in the middle would force a condition check "1=true" every iteration. For embedded applciations, it's better to avoid the condition statement if possible.

      Anyone confirm.

    33. Re:Today we use Bash by Shakrai · · Score: 0

      Altho I must admit, I'm slightly amazed. I really thought an average /. reader could write 4 or 5 lines of C that doesn't blow/corrupt the stack. Guess my opinion of /. readers is still a little on the high side...

      Look, cut the guy a break. He probably knew about the correct usage of C (a nice while loop) but ran out of stack space for his /. sig ;)

      --
      I want peace on earth and goodwill toward man.
      We are the United States Government! We don't do that sort of thing.
    34. Re:Today we use Bash by happylight · · Score: 1

      A real man puts his statements inside the for

      for(;;printf("I'm a real man\n"));

    35. Re:Today we use Bash by Anonymous Coward · · Score: 0

      as crude as C

      If your C code is crude, it's because you're a dumbass and can't write good code.

      C is an elegant language if you use it right.

    36. Re:Today we use Bash by BhAaD · · Score: 0

      the for loop is converted to a while loop by the compiler anyways.

    37. Re:Today we use Bash by Jay+Carlson · · Score: 1

      void main() {printf("foo\n"); main();}

      Using gcc -O2 3.3.1 on cygwin (sorry), the core of that compiles to clearing a little space on the stack and then:

      L2:
      call ___main
      movl $LC0, (%esp)
      call _printf
      jmp L2


      The call to __main is automagically inserted for any function called main; it goes away if you rename the function to main2. It makes no difference whether main is declared void or int; after all, the compiler knows whether the call discards its results.

      By inspection, this uses constant stack space. (Which means the int version does use twice as much stack space per function call as the void version, ha ha ha)

      Some of the details here may be x86 and/or win32 ABI-specific, and certainly gcc-specific. But in general, simple tail recursion, especially in static functions should be OK.

      Postscript: I just about spit Diet Mountain Dew out my nose when I saw what the gcc 3.4 snapshot I use for MIPS development did to such a silly example. Two quick facts about MIPS: it takes two instructions to load a 32-bit constant (lui/addiu), and the instruction *after* a jump is always executed (branch delay slot).

      gcc not only converted printf to puts but it scheduled all the delay slots and unrolled the loop:

      lui $4,%hi($LC0)
      $L4:
      jal puts
      addiu $4,$4,%lo($LC0)

      lui $4,%hi($LC0)
      jal puts
      addiu $4,$4,%lo($LC0)

      j $L4
      lui $4,%hi($LC0)


      I am amused too easily.

    38. Re:Today we use Bash by Jeremi · · Score: 1
      I would imagine that putting a "1" in the middle would force a condition check "1=
      true" every iteration.


      Only if your compiler was really primitive. Any semi-modern compiler would optimize this out for you.

      --


      I don't care if it's 90,000 hectares. That lake was not my doing.
    39. Re:Today we use Bash by Anonymous Coward · · Score: 0

      main() {
      flow:
      printf("Who needs those silly whiles?");
      goto flow;
      }

    40. Re:Today we use Bash by Urkki · · Score: 1
      • However, for loops and while loops are identical in power. for(a;b;c){d;} is identical to a;while(b){c;d;}. Just rearranging stuff.

      Common mistake! There is a subtle yet important difference, continue command. With for-loop continue will jump to 'c' in your code, but in while-loop it will skip 'c' and go directly to 'b'. That's why you can't iterate over something with while loop if you use continue, the index (or pointer whatever) will not be incremented.

      Not to mention, your while has 'c' and 'd' in the wrong order, it should be
      a; while(b) { d; c; }
    41. Re:Today we use Bash by fatphil · · Score: 1

      What if printf fails?

      while(printf("I detect when no characters have been printed\n"));

      (or the for(;...;) equivalent)

      FP.

      --
      Also FatPhil on SoylentNews, id 863
    42. Re:Today we use Bash by fatphil · · Score: 1

      C has no concept of a stack.
      Get off your high horse.

      FP.

      --
      Also FatPhil on SoylentNews, id 863
    43. Re:Today we use Bash by ajs318 · · Score: 1
      Seeing that processors really don't understand anything more complex than IF and GOTO, many "different" ways of writing the same loop will compile to the same instructions.

      for (caz; shaz; daz) { gaz; }; can be expressed more simply as
      [start]
      evaluate caz ....... initialisation
      [repeat]
      evaluate shaz ...... condition
      IF (turned out FALSE) GOTO done
      evaluate gaz ....... loop body
      evaluate daz ....... update
      GOTO repeat
      [done]
      Now, while (shaz) { gaz; }; expresses in the same pseudocode as
      [repeat]
      evaluate shaz ...... condition
      IF (turned out FALSE) GOTO done
      evaluate gaz ....... loop body
      GOTO repeat
      [done]
      See the similarities now? A while loop is just a cut-down version of a for loop, except it looks one unit prettier on some arbitrary scale. Both are just ways of pretending there is no such thing as GOTO -- even although we know it's necessary, deep down at some level. "Proper" loop statements let the computer deal with the awkward stuff like remembering where our programme is in memory, so human beings can concern themselves with bigger matters.
      --
      Je fume. Tu fumes. Nous fûmes!
    44. Re:Today we use Bash by Anonymous Coward · · Score: 0

      Depending on your compiler settings, while(1) can get you a "condition always true" warning. for(;;) doesn't.

    45. Re:Today we use Bash by IWannaBeAnAC · · Score: 1
      Well, that is questionable. I think it was intended that it would be invalid, but the actual wording in the standard could be interpreted to allow it.

      In C++ however, it is quite clear that void main() is ill-formed, diagnostic required.

    46. Re:Today we use Bash by Anonymous Coward · · Score: 0

      while true; do echo "use it properly then"; done

    47. Re:Today we use Bash by Anonymous Coward · · Score: 0

      That should be "a; while (b) { d; c; }"

    48. Re:Today we use Bash by Anonymous Coward · · Score: 0

      You've definately confirmed my opinion of some /. posters.

      As if we were unaware to people being able to code better than others. I spose you climbed out of the womb and started running hey?

      You are so 1337 dude.

    49. Re:Today we use Bash by grozzie2 · · Score: 1

      I suggest then you take the code in question, compile it, run it, and explain to me why it will fail with a stack overflow.

    50. Re:Today we use Bash by Anonymous Coward · · Score: 0

      What the fuck? C itself may not have any concept of a stack but almost any C ABI in existence uses a stack to pass function arguments.

    51. Re:Today we use Bash by DeadSea · · Score: 1
      But isn't this more readable?

      #define _EVER_ ;;

      ...

      for(_EVER_){
      dosomething();
      }

      (And yes I have seen it done. mmm.... c preprocessor obfuscation...)

    52. Re:Today we use Bash by Nicodemus · · Score: 1

      Actually, I'm sure any modern compiler would correctly see his function as a tail recursion call, thus reusing the current space on the stack and so it would be as efficient as a for(;;) infinite loop. Search google for "tail recursion" for more info.

      So maybe his sig really is l33ter than you thought =)

      Nicodemus

    53. Re:Today we use Bash by orasio · · Score: 1

      "for" loops are _too_ versatile.

      I know that there is more than one way to do it, but when it comes to a programming language and such a simple structure, I think it would be better to have separate while and for constructs. (Pascal rulz (or is that ruld?)!:)

    54. Re:Today we use Bash by aardvarkjoe · · Score: 1

      I was just making a practical point: if it works, then it's not an invalid program for your compiler. It might not be valid C, but that's a whole different story.

      --

      How can we continue to believe in a just universe and freedom to eat crackers if we have no ale?
    55. Re:Today we use Bash by ari_j · · Score: 1

      for(;;) is more idiomatic C than for(1;1;1), but generally while is considered better form for conditional loops like this (the condition being 'true' in this case). Also the semicolon after the code block your loop works over is not necessary.

      So, I say to you:
      main(){while(1)puts("ari_j is a better programmer than all y'all\n");}

      Speaking of stack overflow with recursive calls, a little bit of compiler optimization can go a long way, here. Most Lisp compilers are smart enough to change the recursive call in (defun f (who) (format t "~A is a better programmer than all y'all") (f who)) to a jmp instead of a call instruction. This is called 'tail recursion elimination', and works on the basis that the tail-recursive call's return value will be returned by the current invocation too, so why not just modify the parameters on the stack and leave the return address intact, and do a jmp into the new function? This works with calling other functions, too. The following code, despite having no meaning, compiles to have no call instructions (presuming that '+', '1-', and '<' are inlined):

      (defun f (a) (if (< a 1) 0 (g (1- a))))
      (defun g (a) (if (< a 3) 0 (f (+ 5 a))))
      ---
      In pseudo-assembly, a smart compiler will give:
      f:
      ld a,(ARG0)
      cmp a,1
      jb L0
      ld a,0
      ret
      L0:
      dec a
      ld (ARG0),a
      jmp g

      g:
      ld a,(ARG0)
      cmp a,3
      jb L1
      ld a,0
      ret
      L1:
      add a,5
      ld (ARG0),a
      jmp f
      --

      Answering the question "Why did you post this?" is left as an exercise to the reader.

    56. Re:Today we use Bash by Uber+Banker · · Score: 1

      This is excellent practice - its recursive not iterative. Recursion is superior for many problems.

    57. Re:Today we use Bash by jovlinger · · Score: 1

      even C compilers?

  82. most school janitors now are COMPSCI graduates by Anonymous Coward · · Score: 0

    laugh it up, taco

  83. 60... by antdude · · Score: 1

    60 GOTO 10

    --
    Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
  84. Why BASIC was good by unfortunateson · · Score: 4, Insightful

    Today's VB and similar derivatives bears so little resemblance to Dartmouth BASIC that it's hardly the same language. If it wasn't for FOR/NEXT and DIM, you might not recognize it at all.

    But the old line-oriented BASIC had some advantages in the bad, old days:
    1) Interactive editing is difficult to do on a teletype -- many schools only had a hardcopy terminal to a timeshare service. Being able to drop a line in the middle, or retype a single statement really really helped learn what was going on, without having to re-send the entire program. Even with a primitive CRT, full-screen text editors were of poor quality -- dropping in statements helped to debug and fix features.

    2) Later, it was ubiquitous: You could write the same abusive repeating naughty-word program at a Radio Shack, an Apple Dealer, or a department store selling Commodore PETs.

    3) It beat COBOL or FORTRAN. The only thing with BASICs interactivity might be FORTH -- imagine if we'd been saddled with page-delimited, stack-based code in all our micros. It's a lot harder to learn, but would have helped modularity and library development.

    --
    Design for Use, not Construction!
    1. Re:Why BASIC was good by Anonymous Coward · · Score: 0

      imagine if we'd been saddled with page-delimited, stack-based code in all our micros. It's a lot harder to learn, but would have helped modularity and library development.

      Like this you mean?

      It was pretty confusing for me as a 12 year old starting out with FORTH, but it steered me into Z80 ASM rather than BASIC, which has to be a better choice!

  85. BASIC 7th grade project by F.+Mephit · · Score: 1, Interesting

    I learned BASIC in 7th grade on the boxes in my public school's apple IIe room. I remember spending all of my free time during the (public school-quality) computer class trying to figure out how to write one of those 'virus' things I heard about on a BBS and since I didn't have a 'real' computer I ended up writing a really long program called "boom" on my IIe, which essentially was a sort of BASIC virus that would wipe the floppy disk (what with no hard drive and all) and save itself onto the disk under a random filename chosen from a line from my favorite band at the time. All the assignments for the class were about 30 lines long, but 'boom' was easiy 500, and everyone in the class watched me code it and were more interested in anything not related to programming "merry christmas" programs, so they happily let me run the file on all their computers. About a week after we got out for summer, the teacher called me up very angrily and wanted to know if I knew anything about why every students disk had the same program on it, with filenames like "esusbuil" and "uiltmyho", and yet nothing else. What could I say, but "Boom!" BASIC was awesome.

    1. Re:BASIC 7th grade project by Anonymous Coward · · Score: 0

      BASIC in itself was a bit rough without its own compiler and such. Now, I'm not sure I remember how the IIe did things, but my experience is a bit later with XT's and 286 boxen running GW-BASIC. At that point, the tack would've been to shell "format a: /s" then create a copy of the gwbasic executable AND the original .bas file onto the floppy, then create an autoexec.bat file on the same floppy that runs the BASIC file.

      Within the program logic, you either create some date-based logic bomb or have a marker file on the disk where if the file exists, do nothing.

      Now how to make it TSR and replicate at will, that's a tougher ploy. However, slipping things into the autoexec.bat file is a classic the same way people slip things in startup and the registry nowadays. :)

  86. No and then came QB, then VB ;) by Falshrmjgr · · Score: 1

    http://en.wikipedia.org/wiki/QBASIC

    By the way, the "Beginners All Pupose Symbolic Instruction Code" acronym came way after it was called BASIC

    =P

    --
    "I wasn't using my civil rights anyway...."
    1. Re:No and then came QB, then VB ;) by John+Starks · · Score: 1

      Well, yes, of course. It was just an attempt at humor.

      I remember well the days of QBASIC and its compilable older brother, QuickBasic. I was quite the avid QB coder in my day. VB too, around version 3.0. Then I met C, and we've been together ever since.

      On a related note, does anyone remember Microsoft QuickC? I had a copy, but I don't think I ever used it.

    2. Re:No and then came QB, then VB ;) by FuzzieNorn · · Score: 1

      QuickC wasn't particularly much to do with QB.. it was just a stripped down Microsoft C compiler (no optimisation) and a nice IDE for it.

  87. The debate is also 40 years old. by Spicerun · · Score: 2, Insightful

    I see the debate between the Basic vrs. Anti-Basic camps is also 40 years old and as strong as ever.

  88. Well I'm still not older than Fortran by Perl-Pusher · · Score: 1

    Hmm! I'm soon to be 45, this article depresses me! Well at least Fortran is still older than me. It was created in 1954.

  89. Consumers vs. Creators by landoltjp · · Score: 5, Interesting
    "On some level I think it's sad that it went away," he said. "People went from being creators of software to consumers."

    I must admit that I share his lament. The programmer-to-user ratio got considerably worse as the ubiquity of computers increased.

    When I got my first computer (comment hoping skip the 'geek pissing match'), the majority of other people with computers were using them to write programs. As the PCs (now workstations) got adopted (then coopted) by 'business' for them to do their thing, the computer became a 'tool'. I never stopped programming, but all my non-geek friends started to get in on the computer-owning game. Most of them couldn't write a line of BASIC with a gun to their head, even though they have the capacity to do so, but gosh, they all thought they were just whizz-bang computer users! *sigh*

    As a colleague of mine (and a really amazing programmer) once said: "Accessibility is the yellow brick road to mediocrity"

    1. Re:Consumers vs. Creators by Elwood+P+Dowd · · Score: 1
      "Accessibility is the yellow brick road to mediocrity"
      Are you sure he didn't say "the garden path"?
      --

      There are no trails. There are no trees out here.
    2. Re:Consumers vs. Creators by RatBastard · · Score: 1

      The computer is as it always has been: a tool. Nothing more, nothing less. That has never changed and never will.

      What has changed is what purpose the tool is used. In the Oldent Days(TM) people wrote programs because there wasn't a whole hell of a lot else to do with that shiny new computer. Now programs abound. And computer systems used to be a lot simpler than they are today. Back in the hayday of the Tandy CoCo I wrote a disk copy utility based on little more than the incorrect information in the DOS user manual. Today making said tool without a prebuilt toolkit is next to impossible without a lot of training.

      The computer, like the automobile, has moved from a specialty item owned by the rich (or otherwise "elite") to a commodity owned by the masses. And now being a computer owner/user no longer makes you special or requires special knowledge.

      So what? Get on with your life and quit whining about how other people use their computers. So what if most people can't program? Can most programmers fix a modern automobile?

      --
      Boobies never hurt anyone. - Sherry Glaser.
    3. Re:Consumers vs. Creators by Sj0 · · Score: 1

      If a computer programmer COULDN'T fix a modern automobile, I'd be quite suprised. The level of precision is an order of magnitude lower in an internal combustion engine+transmission than any given part of a computer. Since the programmer would have to be able to quickly pick up new concepts to stay employed, the internals of a vehicle should be a piece of cake.

      On the other hand, I'm not a computer programmer professionally, so maybe it's not that way....

      --
      It's been a long time.
    4. Re:Consumers vs. Creators by Anonymous Coward · · Score: 0

      Surely the programmer-to-user ratio got considerably better as the ubiquity of computers increased; a lot more people benefit for practically the same amount of work?

      Christopher

  90. Re:Did anyone try to write a Zork like game way ba by swordgeek · · Score: 1

    Heh. I remember playing Adventure on my dad's lab's Pet2001 (and later the fancy 4016. Woo!!). With a (very little) bit of understanding of strings vs. numbers, I coded a few thousand lines of a game like that. Then I started typing games in from magazines, and realised that they did things VERY differently. That was the end of my adventure-writing career.

    --

    "People who do stupid things with hazardous materials often die." -- Jim Davidson on alt.folklore.urban
  91. 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.

  92. insensitive clods by michaelndn · · Score: 4, Insightful

    lay off the janitors!

    1. Re:insensitive clods by valkraider · · Score: 1

      Right. And send our trash and dirty bathrooms where, to India?

  93. Since when can you play sounds with JavaScript? by Theatetus · · Score: 2, Interesting

    No, I meant Java. There are lots of people who are not professional programmers who use Java, particularly to write applets for web pages. I brought up two common things those applets do, play sounds and rotate images.

    First year comp sci classes often use Java as their language. There's no sharp distinction (to the beginning programmer) between the language and the libraries and APIs. Sun marketed the free SDK towards individual home users. I was pointing out that in those senses (alleged ease of learning and free and widely available development kit), it's like BASIC. Syntactically, it's not at all like BASIC; it's a grandchild of Algol through-and-through.

    --
    All's true that is mistrusted
    1. Re:Since when can you play sounds with JavaScript? by Anonymous Coward · · Score: 0

      You are obviously confused. Being able to embed a Java Applet into a webpage by a casual user does not mean you are "writing an applet." In fact, writing a custom java applet which plays sounds and rotates images is far from trivial for most people. It is also pretty obvious you know nothing about Sun or Java. Sun doesn't market to individual home users, period. Sun markets to enterprise and professionals. They also market to OEMs who may in turn vend to end users. Java was not originally meant to be an end user programming language. Instead, it was developed as an embedded programming language for smart devices. So before you comment on Java, I suggest that you actually know how to program and use it.

  94. Numbering by Gonoff · · Score: 1

    Numbering made life much easier. And if it got untidy you could just get it to renumber. The first line became 50 (or was it 100?) and everything else after that came in increments of 10.

    It made debugging much easier though....

    ERROR XX ON LINE YY

    --
    I'll see your Constitution and raise you a Queen.
    1. Re:Numbering by Anonymous Coward · · Score: 0

      Yes, so much better to spend your time typing line numbers, than to look in the bottom of Emacs and find out instantly. After all, VB coders time is sooooo valuable... wouldn't want them to have a seizure from remaining cognitive for 10 whole seconds without a mindless task to perform. I'm not bitter. I'm sour!

  95. Troll? Moi? by AtariAmarok · · Score: 1
    "No, Dijkstra has it right; there are styles one should use and styles one should not. BASIC forces you to use the latter. "

    Only the most primitive BASICs don't (or didn't) have the tools for "structured programming".

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

    If it gets the job done well, "Bad habit" is just a subjective judgement call.

    --
    Don't blame Durga. I voted for Centauri.
    1. Re:Troll? Moi? by anethema · · Score: 3, Informative

      GOTO's make spaghetti code. It is very hard to trace through, especially if the code is uncommented. If you end up with a bug, you will have a very hard time trying to trace through your GOTO's to find it.

      Loops and functions keep things neet, organized and structured (assuming a half-competant programmer)

      This isnt a point of view thing. Some things are confusing and some arent, thats just the way it is.

      Try maintaining code full of goto's. Good luck.

      --


      It's easier to fight for one's principles than to live up to them.
    2. Re:Troll? Moi? by forgetmenot · · Score: 4, Insightful

      You don't maintain your own programs then, do you?

      I've had to maintain programs written by developers who, like you apparently, separated out the maintainability aspects from their concept of "well-written" code.

      Well written code does not mean written fast - it means the next guy down the line, after you've moved on and forgotten about it, can easily follow the logic and make changes with minimal effort. GOTO's almost never facilitate this. Please trust your peers on this - it's been debated often enough and long enough by those in the know that it's no longer a subject for reasonable debate. In fact, defending the use of GOTO usually shows one of two things:
      1) Inexperience -or-
      2) Old Age (meaning the behaviour is so ingrained one simply can't comprehend anything different).

      Of course, I'm assuming you have the option to not use GOTO. If the language you use has no control structors other than Jumps and Labels, then obviously you have no choice. But I would argue that even if that's the case, you're probably using an old language for one of two reasons:
      1) Not experienced with anything else -or-
      2) Too old and stubborn to move on to anything else (meaning the behviour is so ingrained that you probably sit alone in the corner pumping out Cobol not even aware that you were laid off months ago and replaced by the Janitor who took a crash course in Javascript). ;)

    3. Re:Troll? Moi? by JavaLord · · Score: 5, Interesting

      GOTO's make spaghetti code. It is very hard to trace through, especially if the code is uncommented.

      Ever tried to sift through someone's OOP program that is poorly documented and methods are badly named? It's just as bad. Ever seen a method that calls six others methods in different objects in it's body which are all overloaded 5 or 6 times? Bad/Sloppy programming spans all languages and isn't confined to a goto statement.

      How about poorly named method signatures? For example

      String getNumber(String x, int i, boolean q, vector a)

      I've seen crap like this before from programmers.

      Try maintaining code full of goto's. Good luck.

      No it's not the best thing in the world to do, but if it's well documented it's not as bad as you make it out to be. I started out in basic when I was 7, and I work now as a Java programmer. I would gladly take well commented code with GOTO's over poorly done OOP code.

    4. Re:Troll? Moi? by Carnildo · · Score: 1

      Or 3) Abusing a language that was never intended to have loops or branching in the first place. (InstallerVise scripting, in my case)

      --
      "They redundantly repeated themselves over and over again incessantly without end ad infinitum" -- ibid.
    5. Re:Troll? Moi? by John+Courtland · · Score: 1
      Of course, I'm assuming you have the option to not use GOTO. If the language you use has no control structors other than Jumps and Labels, then obviously you have no choice. But I would argue that even if that's the case, you're probably using an old language for one of two reasons:
      1) Not experienced with anything else -or-
      2) Too old and stubborn to move on to anything else (meaning the behviour is so ingrained that you probably sit alone in the corner pumping out Cobol not even aware that you were laid off months ago and replaced by the Janitor who took a crash course in Javascript). ;)
      3) They need speed. However, using Assembler is pretty much the only reason Jump statements should be in code. Actually, switch/case control blocks are a version of goto. They just look a million times better.
      --
      Slashdot is proof that Sturgeon's Law applies to mankind.
    6. Re:Troll? Moi? by JesseL · · Score: 1

      Since when was anyone forced to use goto's? Just because BASIC has a feature that may encourage bad habits, it doesn't mean the language is at fault if people abuse it. I've never seen a version of BASIC that left out for-next and while and made you kluge your loops together with goto's.

      And if you don't think what constitutes confusing is subjective, I suggest that you leave your cave and see just how different people are.

      --
      "Prefiero morir de pie que vivir siempre arrodillado!"
    7. Re:Troll? Moi? by Peaker · · Score: 1

      switch/case control blocks are implemented via goto, they are not "a version of goto" and do not have the disadvantages of using goto.

    8. Re:Troll? Moi? by Audacious · · Score: 1

      GOTOs don't make spaghetti code - people do. Remember TRACE ON/OFF? That helped to track down problems. But it was nothing compared to the leap everyone made when Turbo Pascal came along.

      But for its time, Basic, QBasic, Turbo Basic, PowerBasic, and the hundreds of other basics which have come after - all filled a need everyone had to not have to learn assembly language just to program a computer.

      (Not that I'm not partial to assembly language too. After all, I used to write Univac 1108 assembly language programs.)

      Remember that the Apple ][+ did not do multiplication or division. Just adding and subtracting. Applesoft gave you those abilities and a lot more.

      --
      Someone put a black hole in my pocket and now I'm broke. :-)
    9. Re:Troll? Moi? by zgornz · · Score: 1
      gorn@nixel $ grep -r goto /usr/src/linux-2.4.25/* | wc
      19637 63299 814502

      Yeah that's right, 20k goto's in linux code. But I agree with you, goto's are a pain, but they do have their place (Speed, thats why the kernel uses them)
    10. Re:Troll? Moi? by John+Courtland · · Score: 1

      Well, the only difference between the two is the fact that with a GOTO block, you have to write a bunch of 'if' statements. There really is no other functional difference. Those labels are jump targets, just like line numbers, and the break statement is also a goto. Goto in a controlled fashion isn't bad. Imagine if all the programming done with goto's was instead done with switch/case blocks. It would be just as bad.

      --
      Slashdot is proof that Sturgeon's Law applies to mankind.
    11. Re:Troll? Moi? by Peaker · · Score: 1

      switch/case is implemented via goto - which means that it can be expanded to use if/else's with goto's.

      It doesn't work the other way around! You cannot implement goto's using switch/cases.

      Using switch/case is NOT using goto's. It is like claiming that using C or Python is using ASM in a controlled fashion, its not.

      You cannot use switch/case's to implement goto's and so the statement "Imagine if all the programming done with goto's was instead done with switch/case blocks. It would be just as bad" is just silly.

    12. Re:Troll? Moi? by John+Courtland · · Score: 1

      You could do it. Anyhow, you seem to have some sort of elitist attitude and I'm tired of it. Go find someone else to annoy.

      --
      Slashdot is proof that Sturgeon's Law applies to mankind.
    13. Re:Troll? Moi? by Anonymous Coward · · Score: 0

      If you weren't a fucking idiot "software programmer" , you would know how a microprocessor really works. Maybe you have seen it in the form of

      goto
      jump
      jmp
      bra

      Etc.

      Quit repeating what your STUPID computer science idiot of a teacher told you. He didn't know what he was talking about.

    14. Re:Troll? Moi? by niktesla · · Score: 1
      If the language you use has no control structors other than Jumps and Labels, then obviously you have no choice. But I would argue that even if that's the case, you're probably using an old language for one of two reasons:

      That or you are using assembly language because it is more efficient in operation speed and size. That might not mean much to anyone developing on today's PC's, but if you're doing any embedded programming for microcontrollers, speed and size are very important. My senior design project is coded in PIC asm and takes less than 3Kb, whereas another group used PICbasic and have more than 23Kb of code to do a less coplex project. Maybe a good C compiler can match straight asm at this level, but it probably won't come cheap. Anyhow, in assembly GOTO's are very necessary.

      --
      I've discovered a remarkable proof, but this margin is too small to contain it...
    15. Re:Troll? Moi? by Anonymous Coward · · Score: 0

      goto actually isnt that bad at times... there have been occasions (PHP generally) where I have needed to skip a logic block... and ended up having to recode around 3 functions because I couldnt goto past an IF statement... :/

    16. Re:Troll? Moi? by gcalvin · · Score: 1

      TI-99 BASIC didn't have WHILE. It didn't even have IF/THEN, only IF/GOTO and IF/GOSUB. I'm pretty sure it lacked ELSE as well, so you had to do stuff like:

      10 PRINT "Enter your choice (1/2/3)":
      20 INPUT CHOICE
      30 IF CHOICE = 1 GOSUB 100
      40 IF CHOICE = 2 GOSUB 200
      50 IF CHOICE <> 3 GOTO 80
      60 GOSUB 300
      70 GOTO 10
      80 PRINT "Invalid response!"
      90 GOTO 10

      And many (most?) late '70s/early '80s BASIC dialects didn't support indenting, so code listings were a real pain to read.

      This was the time when magazines like COMPUTE! would publish code listings for "type-and-run" programs, often with a few hundred lines of POKE statements. (TI-99 BASIC didn't have POKE either, but that's another story.)

    17. Re:Troll? Moi? by kundor · · Score: 1

      GOTO's are really the equivalent of "ain't" in english.

      They're perfectly grammatically correct, but they were overused way too much, and so grammar teachers declared them unilaterally bad.

      As a result, they're not used at all even when they're appropriate (for instance, we use the format "Aren't I" instead of "Ain't I" even though "aren't i" is completely wrong!) Even those that are aware that the word has its appropriate use refrain from it, because use of the word now marks one as uneducated.

      (incidentally, ain't is properly the contraction of am not. the overuse for all the other forms of be led to an excessive backlash.)

    18. Re:Troll? Moi? by Anonymous Coward · · Score: 1, Insightful
      I worked on a piece of Java code from a Patterns fan.

      It was loaded with "Factories" and "Managers", with everything vaguely named (oh, a "TableManager"? Gee thanks, that makes it all clear) and 3-4 levels of derivation for everything, and it used introspection galore.

      And almost no comments at all. The ones that were there were vague enough so as to be useless.

      I ended up having to single step through the shit to even vaguely start to figure out what it was trying to do.

      Eventually I realized that the whole thing could have been written with 1/4 as many classes about probably 1/4 as much code as well.

      So, yeah, I hear ya brother. Why does everybody have to make simple problems so goddamned complicated these days?

    19. Re:Troll? Moi? by Ice_Balrog · · Score: 1

      While that may be true, I would much rather have badly documented OO programs than badly documented programs full of GOTOs. Just as I would rather have a well documented OO program than a well documented GOTO program.

      No programming language can make up for bad documentation, but that doesn't mean that all programming languages are equal.

      --
      #include "sig.h"
    20. Re:Troll? Moi? by Anonymous Coward · · Score: 0

      At some level all these lovely methods are still going to compile to JMP's which sounds like a euphimism for GOTO to me!

    21. Re:Troll? Moi? by sfe_software · · Score: 1

      GOTO's make spaghetti code. It is very hard to trace through, especially if the code is uncommented. If you end up with a bug, you will have a very hard time trying to trace through your GOTO's to find it.

      I disagree. While GOTOs are often abused, they do have their place. I use them in C, infrequently (maybe 2 total in my main C project).

      But the key is the uncommented bit: why does GOTO necessarily mean it's uncommented? The two GOTOs I use in my main project are well commented, and are only used in case of an audio card/driver failure. It's easy to follow the program flow, and obvious even if you don't read the comments (which in my project is often more than the code itself).

      There's nothing inherent about the GOTO feature that is bad -- rather, it's an easily abused feature. That doesn't mean there aren't good uses for it. I can think of good uses for GOTO in BASIC, C, and other languages. I can also think of many abuses of other features of hundreds of languages...

      --
      NGWave - Fast Sound Editor for Windows
    22. Re:Troll? Moi? by Anonymous Coward · · Score: 0

      You don't get out of college nowadays in the US with a comp sci degree without Assembler plus computer architecture. At least not any of the Good Comp Sci programs I've seen. I assure you I know assembler, and have a good concept of how a microprocessor works. Don't hate me because you don't have a job.

  96. those were the days by robin147 · · Score: 1
    ...when I learned how to learn, hacking the RBBS code and config files to make my BBS run the way I wanted it to...
    then there was
    1. "trade wars"
    2. and "lord"
      (legend of the red dragon)

    when you screwed up then, you just tracked down the problem and undid what you screwed up.
    Now you reformat & reinstall windoze
    on the good side, I don't see as much spaghetti as in those days... carbs and all that
    well runnin on has to stop it's almost happy hour time.

    where'd my training wheels go?
    --
    --robin
    ...Boycott Disney
  97. So simple that the janitor can use it... by zaunuz · · Score: 1

    Well, too bad perl was invented rougly 20 years later. Even i can use it, and i have dificulties managing HTML.

    --
    this is probably the most boring sig in the world
  98. BBC Micro by Anonymous Coward · · Score: 1, Interesting

    Thank the lord for those old BBC micro's. Surely we all remember using them in all those science experiments. Then there was the great:

    10 *FX 200,1
    20 COLOUR RND(255)
    30 PRINT "HA HA HA!";
    40 GOTO 10

    Gem to keep anyone from doing anything constructive for a while :)

  99. Hush! by Thyrsus · · Score: 1

    The language of Mordor! We do not speak it here!

  100. Yes! by StefanJ · · Score: 1

    One of the old home computer mags -- not Creative Computing, but something in that genre -- had a listing of a simple four-room text adventure game. It was mostly an exercise in picking up and dropping things, but the parser and display/action loop were easily adaptable.

    I adapted and expanded it to create "Haunted House," AKA "Radley Mansion." The player took the role of a kid who had hit a baseball into a second-story window of an abandoned (?) house.

    The goal was to get the ball back. You had to do quite a bit to reach the upstairs room where the ball ended up.

    You couldn't get killed, or even muck things up so bad you couldn't eventually win.

    I eventually re-wrote it in TurboBasic, and have started on an Inform version.

    Stefan

  101. Look at all these posts. by Anonymous Coward · · Score: 0, Flamebait

    It never ceases to amaze me what kids will latch on to. In this case Haiku. In English haiku is completely pointless if not ridiculous. It has no real symmetry, elegance or beauty as it does in Japanese. And yet, college kids seem to think that "it is the coolest, man". It must be due to the fact that they all suffer from Attention Deficit Disorder and short prose of Haiku is all they can handle in one sitting.

    Here's a clue kiddies, Haiku in English is dumb.

    Now I expect lots of posts supporting English Haiku and telling me that I am an idiot. But none will offer anything but the verbatim dronings of their professors, which they seem to feel are gods. Forgive my condescending chuckle.

    1. Re:Look at all these posts. by Anonymous Coward · · Score: 0

      Here's a clue kiddies, Haiku in English is dumb.

      The worst part about it is that people think anything in haiku form is automatically funny. As though there is some inherent hilarity to 5/7/5, and if you can just fit your message into that form, you're automatically funny.

      It's amazing the crap that passes for funny just because it's 5/7/5. The parent is a perfect example.

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

      ;)

    3. Re:Look at all these posts. by Bun · · Score: 1

      "Now I expect lots of posts supporting English Haiku and telling me that I am an idiot. But none will offer anything but the verbatim dronings of their professors, which they seem to feel are gods. Forgive my condescending chuckle."

      Or, in other words, you are closed-minded on the subject and refuse to listen to any and all arguments.

      Oh Anonymous Coward
      Hater of Enlish
      Haikus do not care for you

      --
      "Anyone that has ever gotten an idea based on any of my work and done something better with it-good for you."--J.Carmack
    4. Re:Look at all these posts. by bobthemonkey13 · · Score: 1
      It must be due to the fact that they all suffer from Attention Deficit Disorder and short prose of Haiku is all they can handle in one sitting.

      No, it's due to the fact that anything from Japan is automatically totally super awesome wicked fucking super awesome. Duh.

      Now if you'll excuse me, it's 6:00 AM... time to eat Pocky and rock out to J-Pop.

    5. Re:Look at all these posts. by Anonymous Coward · · Score: 0

      That was 7/5/7, not 5/7/5.

      You are yet another idiot who thinks any "short poem" is a haiku, and anything in 5/7/5 form is automatically funny.

      Too bad you're wrong.

    6. Re:Look at all these posts. by Anonymous Coward · · Score: 0

      Now I expect lots of posts supporting English Haiku and telling me that I am an idiot. But none will offer anything but the verbatim dronings of their professors, which they seem to feel are gods. Forgive my condescending chuckle.

      How 'bout fuck you
      I like english Haiku
      and don't care if you do

    7. Re:Look at all these posts. by Anonymous Coward · · Score: 0

      UPDATE next_haiku
      SET sql_beats = 2
      WHERE flamebait_disputes

      SELECT must_agree
      FROM basic_haiku_dumb_too
      WHERE sql NOT NULL

    8. Re:Look at all these posts. by Anne_Nonymous · · Score: 2, Insightful

      >> Haiku in English is dumb.

      Yes, but it has huge comedic potential.

    9. Re:Look at all these posts. by Joey7F · · Score: 1

      Then why not use limericks which are better for humor. In fact, a skillful limericist(?) writes arguably the finest form of poetry.

      --Joey

    10. Re:Look at all these posts. by Shimmer · · Score: 1

      I am a 37 year old man and I'm here to say that I like these Haikus. So there.

      --
      The most rabid believers in American Exceptionalism are the exact same people whose policies are destroying it.
    11. Re:Look at all these posts. by Anonymous Coward · · Score: 0

      LOL at this one too.

    12. Re:Look at all these posts. by Anonymous Coward · · Score: 0
      Yes, and this rock keeps tigers away because you don't see any around, do you?

      Perhaps you fit his argument too well and are trying to shift the focus away from it.

    13. Re:Look at all these posts. by screwballicus · · Score: 3, Interesting

      But none will offer anything but the verbatim dronings of their professors, which they seem to feel are gods. Forgive my condescending chuckle.

      I think you'll find that literary critical academics are well aware of the preferences of certain languages for certain poetic techniques.

      Hexameter (six stress verse) is considered wonderful in French early modern poetry, and almost always terrible in English early modern poetry (Sidney uses it, but his hexameter isn't given particularly great credit).

      Quantitative measure is considered to have worked wonderfully in classical Greek, but is accepted as essentially impossible in English (Coleridge semi-successfully attempted it in Christabel).

      A Petrarchan sonnet's composition in English is an exercise in frustration and a Shakespearean sonnet's structure in Italian uncomfortably abrupt.

    14. Re:Look at all these posts. by Bun · · Score: 1

      Darn. My first Haiku wasn't.

      I'll give it another try:

      You are a young man
      Filled with hatred and envy
      Of men with girlfriends

      --
      "Anyone that has ever gotten an idea based on any of my work and done something better with it-good for you."--J.Carmack
    15. Re:Look at all these posts. by UserGoogol · · Score: 1
      Just because it's fake
      Doesn't make it dumb per se.
      The High Koo is l33t
      (High Koo being an attempt to do some sort of reverse Engrish by using the most pathetically horrible romanization in the world.)

      I admit, it's barely anything like the original Japanese form of poetry, and there are so many better forms of poetry.

      But that doesn't make it bad per se. A little weak, and completely non-Japanese, but not bad.
      --
      "Never attribute to malice that which can be adequately explained by stupidity." -- Hanlon's Razor
    16. Re:Look at all these posts. by sfsp · · Score: 1

      "I sing now the tale of Achilles,
      Who gave the Acheans the willies.
      Help me render, O Muse,
      Of how Troy got the goose,
      And of battles which really were dillies."

      -Gordon R. Dickson and Poul Anderson

  102. Re:cool by Anonymous Coward · · Score: 0

    Needs a REM line. Sloppy programming.

  103. That was a great help file by rebelcool · · Score: 2, Interesting

    I oft referenced that ASCII table well into the late 90s :)

    I learned the majority of basic programming just by following the hyperlinks in the help file. Almost every function came with a useful example program.

    The whole help system in q/quickbasic was very well done. You could point and click on a function and bring up its help entry IIRC.

    --

    -

  104. 1964 by Anonymous Coward · · Score: 0

    Redmond, U.S.A. -- One year later

    ...and while he drinks his sixth whiskey, he
    suddenly has an idea and begins to type...

    10 REM Windows NT Version 0.1
    20 ON ERROR GOTO **STOP
    30 ...

  105. 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.
  106. Memories of First Programming by 4of12 · · Score: 2, Informative

    ...of typing in BASIC programs on a Teletype with a large roll (yes, just like bathroom towels) of yellow newsprint on a Data General Nova.

    And, to write and read my program - paper tape!

    In those days, having a machine do math for you, math that would otherwise be tedious crunching by hand, gave me a sense of wonder and power.

    --
    "Provided by the management for your protection."
  107. I thought it was ... by deconvolution · · Score: 1

    5 REM foo 10 PRINT "hello world" 20 END

  108. 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"

    1. Re:Maximum Program Length by Anonymous Coward · · Score: 0

      Hmm.. did you try using semicolons?.. that way you could have several commands per line..

  109. VAX-Basic ROCKS..... by james_in_denver · · Score: 0

    Vax Basic was great!, an excellent learning tool and pretty decent productivity as long as you avoided goto statements, if you stuck with For loops and gosubs it really isn't that much different than "C" coding... Well, okay Vax-Basic was great at the time. I guess I am more fond of VAX/VMS, a truly great OS. They had advanced I/O queueing (just now in the 2.6 Linux kernel), and per process I/O, memory, and CPU throttles. Shame that it was stripped down and used as the foundation for...GASP...Windows NT!!! Hmmm....I guess this dates me a little?

    1. Re:VAX-Basic ROCKS..... by Sj0 · · Score: 1

      While ex VAX coders were involved, I'm pretty sure the base of Windows NT is actually OS/2. Windows 2000 can even still run OS/2 console programs!

      --
      It's been a long time.
    2. Re:VAX-Basic ROCKS..... by Anonymous Coward · · Score: 0

      How much longer until MS phases the OS/2 subsystem out of Windows? I know I was disappointed to find out the Posix subsystem was not included in Windows XP. I'd guess Longhorn will do away with the OS/2 compatibility next.

  110. Re:Dijkstra said it best ...not by panurge · · Score: 5, Interesting
    Edsger Dijkstra is all too typical of the arrogant academics who gave rise to Shaw's comment "Those who can, do, those who can't, teach. He's like the academic fanboys who argue that PostgreSQL is a real RDBMS, MySQL can't really be used for anything serious.

    Don't believe it, kids. If your brain hasn't been ruined by age 7, you can unlearn any bad habits you pick up. His remark is of a stupidity level equal to "if you learn French at school, you won't be able to learn German."

    As a matter of fact, not only did I once inherit a program that someone had written - well - on a BBC micro that was a pleasure to maintain, I once myself had to write a quick and dirty assembler for an obscure microprocessor in HP Basic, having no other resources available in a crisis. Despite which I have never once had the urge to use labels in C.

    --
    Panurge has posted for the last time. Thanks for the positive moderations.
  111. Damn! by alazar · · Score: 2, Funny

    I miss line numbers and GOTO

    --
    True friends are hard to come by... I need more money. - Calvin
    1. Re:Damn! by Peyna · · Score: 1

      goto does still have its uses, mostly in error handling.

      --
      What?
  112. Ahhh memories.... by Zerbey · · Score: 1

    10MODE2
    20PRINT"My first experience with BASIC was on a"
    30PRINT"BBC B many many moons ago"
    40PRINT`"BBC BASIC was and is the best BASIC"
    50GOTO1000
    1000PRINT"So there"
    1010END

  113. Starting out with BASIC by swerk · · Score: 1

    First, there certainly _is_ "good" and "bad" code. An experienced programmer has certain tastes, sure, but some code is just downright bad, making it near impossible to maintain or worse, riddled with security flaws.

    I've seen plenty of folks start out with BASIC (I'm talking the classic stuff here, Applesoft or GW or some such) and go on to become very good C, C++ and Java programmers.

    _Visual_ BASIC, however, I would tend to say is a bad language to start out with. Folks who cut their teeth on VB (again this is just in my experience) do tend to have poor programming style. It's easy to spot VB-raised folks on a PHP forum, for example, and just shake your head at the backwards way they're trying to get things done.

    So I don't know if I agree Dijkstra about BASIC itself, but I know that when people "learn" programming in an inconsistant language or where there are assumed to be lots of libraries which become almost more of a focus than the language constructs themselves, they have a very hard time learning a different language and/or better design and style. I doubt it's "beyond hope of regeneration" though.

    1. Re:Starting out with BASIC by Satan's+Librarian · · Score: 1
      _Visual_ BASIC, however, I would tend to say is a bad language to start out with. Folks who cut their teeth on VB (again this is just in my experience) do tend to have poor programming style.

      Personally, I think it's just a matter of whether people actually get logic and flow-control or not. After that, you raise up the ranks mastering design and architecture techniques and by specializing in various platforms/problem domains. I don't think the starting language matters much for someone with a logical mind.

      However, VB and similar languages lower the bar for 'hello world' enough that people who just don't get logic can 'program'. Thus, you see things like someone comparing a value against each possibility from 0 to 255 individually just to unmap a bit field. The chances of the same person getting *anything* to assemble and link are minute.

      So I don't know if I agree Dijkstra about BASIC itself

      I didn't agree with him about a lot of things. Like those damned philosophers. If they can't be polite enough to just share and maybe give the guy to the left a knife for a bit, but they're too proper to just eat with their hands, they bloody well deserve to starve!

  114. Or.... by AtariAmarok · · Score: 2, Insightful
    "Now in programming languages the use of GOTO usually means that the programmer didn't really think about reasonable controlling structures and it tends to generate nondeterministic-for-practical-purposes behaviour"

    Or the programmer did think about it, and the use of the GOTO (or equivalent "jump over here!" coding tool) caused no problems in regards to these issues.

    --
    Don't blame Durga. I voted for Centauri.
  115. 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
    1. Re:Obligatory AYBABTU by base3 · · Score: 1

      All your BASIC are belong to us :).

      --
      One CPU cycle wasted on digital restrictions management is ONE TOO MANY.
    2. Re:Obligatory AYBABTU by elrick_the_brave · · Score: 1

      As Monty would say... Riiiight!

      5 REM AYBABTU NEVERENDING
      10 PRINT "In A.D. 1963"
      20 PRINT "Code was beginning."
      30 PRINT "Programmer: What happen ?"
      40 PRINT "User: Somebody set up us the code."
      50 PRINT "Operator: We get signal."
      60 PRINT "Programmer: What !"
      70 PRINT "Operator: Main screen turn on."
      80 PRINT "Programmer: It's You !!"
      90 PRINT "Cats: How are you gentlemen !!"
      100 PRINT "Cats: All your BASIC are belong to us."
      110 PRINT "Cats: You are on the way to infinite loop."
      120 PRINT "Programmer: What you say !!"
      130 PRINT "Cats: You have no chance to survive make your time."
      140 PRINT "Cats: HA HA HA HA ...."
      150 PRINT "Programmer: Take off every 'REM' !!"
      160 PRINT "Programmer: You know what you doing."
      170 PRINT "Programmer: Move 'GOSUB'."
      180 PRINT "Programmer: For great coding."
      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
    3. Re:Obligatory AYBABTU by base3 · · Score: 1
      Nice job! Please try this out on your favorite BASIC interpreter and enjoy!

      10 CLS
      20 W = 34
      30 K = 3.1415 / 180
      40 FOR I = 0 TO 360 STEP 5
      50 PRINT SPC(40 + SIN(I * K) * W); "BRAVO!"
      60 NEXT I
      70 GOTO 40
      --
      One CPU cycle wasted on digital restrictions management is ONE TOO MANY.
    4. Re:Obligatory AYBABTU by iamcf13 · · Score: 1

      I 'rewrote' it in M$ VC++ to see what the program does....

      double w, k;
      int i, z;
      CString jnk;

      w = 34.0;
      k = 3.1415 / 180.0;

      while (1)
      {
      for (i=0; i = 360; i += 5)
      {
      z = (40.0 + (sin ((double)i * k) * w));
      jnk = "";

      while (z)
      {
      jnk += " ";
      z--;
      }

      jnk += "BRAVO!";

      printf("%s\n",jnk);

      Sleep(1);
      }
      }

      Nice little trigonometry demo!

      PS: The lameness filter didn't like the 'original code' -- 'too much whitespace'....

  116. And lo...... by crivens · · Score: 3, Funny

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

  117. For a second there... by Lord+Kano · · Score: 1

    I was expecting to see someone quote Al Gore as saying that HE created BASIC.

    LK

    --
    "Hi. This is my friend, Jack Shit, and you don't know him." - Lord Kano
  118. Basic causes Violence by popdookey · · Score: 1

    The only fight I ever had was after I wrote

    10 PRINT "Carl is an idiot"
    20 GOTO 10

    Never was a Commodore Pet more incendiary.

    Needless to say, our 7th grade "fight" was as meaningless as the program.

    I loved BASIC. I can call myself a programmer because of it.

    --
    Success without humility is an indulgence in arrogance
  119. Should be "J-Lo" by Duhavid · · Score: 1

    Or is that "j-ello"

    As in "jello world".

    --
    emt 377 emt 4
  120. You mean this book? by modder · · Score: 1

    This book?

    I might have another link if that one doesn't work for you.

  121. REALbasic by Anonymous Coward · · Score: 2, Interesting
    And now, 40 years later, the easiest way to write apps for Linux (which, coincidentally, also run on Mac OS Classic, Mac OS X, and Windows) is a product called REALbasic.

    It's not your father's BASIC. It's a great RAD environment, with a language much more heavily influenced by Python than BASIC. You can write plugins in C/C++ to make the things that need to run super fast run super fast.

    My company uses this product to build products that generate several hundred thousand in revenue per year. Our tools budget is under thousand dollars per year, mostly spent on REALbasic.

  122. Ahhh, remember the old way by Anonymous Coward · · Score: 0

    you got software, I remember going to the library and renting 101 fun games for BASICA (I think that was the name of it) - you sat and typed 100's of lines of code just to plat tic-tac-toe

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

  124. BASIC turns forty... by JayJay.br · · Score: 3, Insightful

    ...yet most of its story got lost in write-errors on unreliable cassette tape recorders attached to thousands of ZX SPECTRUMs.

    Forgive me, it must be that brain damage everybody's talking about around here.

    And yes, my code sucks. Even in BASIC. And that was 15 years ago.

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

    Don't forget to PEEK before you POKE!

    1. Re:BASIC Sex Ed by nomel · · Score: 1

      th egood old days of peeking and poking. I used to go through all the lower memory addresses and find all the interesting ones. Such as the ones that made the floppy disk light turn on, make sounds, etc. So, I made a program that simulated the disk formatting. It was funny. God...i was a nerd in the 6th grade. :(

  126. The old days were better for beginners. by Theovon · · Score: 5, Insightful

    Computers died for me the day the stopped shipping them with built-in BASIC.

    Seriously, though. The computers of the 80's were great for learning programming on. Not that BASIC is a good teaching language, but it was accessible and simple.

    Modern computers have too many features that you want serious programmers to have access to (complicating languages), and modern languages have all sorts of safety, structure, and OO features that are great for serious programmers but also complicate things for beginners.

    Breaking into programming is much harder than it used to be.

    1. Re:The old days were better for beginners. by Peyna · · Score: 1

      Scripting languages for various programs are the beginner languages today.

      --
      What?
    2. Re:The old days were better for beginners. by Anonymous Coward · · Score: 0

      While True
      Echo "Most computers still ship with Basic"
      Loop

    3. Re:The old days were better for beginners. by dasmegabyte · · Score: 1
      Error: Line 3, Loop without Do
      Too bad they don't ship with manuals!

      Incidentally, what you're missing is Wend in place of Loop. Might want to add contect to the Echo command as well (sticking a WScript. in front of it is a good way)
      --
      Hey freaks: now you're ju
    4. Re:The old days were better for beginners. by Theovon · · Score: 1

      Name a scriping language that is as syntactically and semantically simple as BASIC for, say, an Atari 800.

    5. Re:The old days were better for beginners. by Geoffreyerffoeg · · Score: 1

      But they still do. Open Word, which may or may not have come with your computer, and if not which you probably have.

      View | Toolbars | Control Toolbox

      Enter design mode (little blue triangle icon). Draw out two textboxes, a button, and another textbox. Rightclick the button and do View Code. Type in TextBox3.Value = Str(Val(TextBox1.Value) + Val(TextBox2.Value)). Close VBA and exit design mode. Type in values and click the button and watch!

      Yes, I know you can do this with Excel, but the point was that BASIC as VBA is fairly common, and it's a bit more intuitive than =A1+A2 - especially for more involved code.

    6. Re:The old days were better for beginners. by Anonymous Coward · · Score: 0

      yeah, I learned how to program in BASIC in the 3rd grade. I couldn't imagine teaching a 3rd grader C/C++, java, perl... etc

    7. Re:The old days were better for beginners. by rabel · · Score: 1

      I agree, it was much more fun to just flip on the switch and have a "READY" prompt pop up, eager to do your programming bidding. Made you want to mess with it.

      Made my day, too, when my C=64 tape drive was in the shop (yeah, we fixed cassette tape drives back then). I wrote my own little terminal emulation program, complete with color C=64 ASCII graphics, and got it down to about 5 lines of BASIC code. Flip on the computer, type in my little terminal program, and viola! I was surfin' the BBS's.

    8. Re:The old days were better for beginners. by nEoN+nOoDlE · · Score: 1

      Breaking into programming is much harder than it used to be.

      I believe getting into programming is easier than it used to be. Back in the day, when computers were scarce and BASIC was on every computer, there were hardly any programming classes, and you had to take time out of your schedule to learn the language, and even if you did there was really nothing you could do with it... just a pointless pasttime. Now, you can download from lots and lots of free compilers, in 10 different languages for varying levels of users, there are hundreds of books for every level of computer user, and it's a distinguished career so you actually have something to look forward to if you really like it. It's never been easier to break into programming.

      --
      Don't trust a bull's horn, a doberman's tooth, a runaway horse or me.
    9. Re:The old days were better for beginners. by Anonymous Coward · · Score: 0

      Flip on the computer, type in my little terminal program, and viola! I was surfin' the BBS's.

      And the first web users had Cello! to surf the Internet. Now I see the connection..

    10. Re:The old days were better for beginners. by Theovon · · Score: 1

      What you describe looks like a very indirect and convoluted way of being able to write a program.

      There is nothing which comes with Windows that is touted as a stand-alone, simple BASIC interpreter.

      I'm not saying that's wrong, just that I miss it.

    11. Re:The old days were better for beginners. by Theovon · · Score: 1

      Training and computing may be more accessible, but programming is not.

      With my Atari 800XL came a VERY SMALL book on BASIC. There didn't need to be much there. Everything in that book was all I needed to be able to write simple programs that plotted pixels, did polynomial regression, etc. I didn't need any TRAINING, because it was all trivially simple.

      So, although you can easily go take a C programming class, it'll take you 10 times longer to learn to do anything in multitasking-computer C than in 8-bit computer BASIC. The C language is more complex than BASIC, and interacting with the environment is too.

      Here's how to plot a pixel in Atari BASIC:

      GRAPHICS 8
      COLOR 1
      PLOT 10,10

      Now try doing something like that in C under UNIX.

    12. Re:The old days were better for beginners. by datawar · · Score: 1

      PERL ;-)

    13. Re:The old days were better for beginners. by PetoskeyGuy · · Score: 1

      My HP Pavilion computer shipped with Python built in. It was in a hidden directory, but it's in the path.

    14. Re:The old days were better for beginners. by LiquidCoooled · · Score: 1

      I wholeheartedly agree.

      In the spectrum days, it was a simple decision.

      Put a tape in, and wait around for 5 minutes while whatever program loaded, or mess around making interesting patterns and procedures.

      Nowadays, I still use a scratchpad for my coding, but its just not the same.

      Even my amiga came with an entire book explaining AmigaBasic.

      --
      liqbase :: faster than paper
    15. Re:The old days were better for beginners. by RzUpAnmsCwrds · · Score: 1

      Sure there is.

      Make a text file. Change the extention to ".vbs". Insert VBScript. Double-Click on file.

      Try this:

      name=inputbox("What is your name?")
      msgbox "Hello, " & name & "!"

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

  128. Actually, I learned structured programing in basic by Billly+Gates · · Score: 1

    At first I ended up with a c in the highschool course and that really pissed me off! Why?

    For doing things like including the goto statement. I knew programing but not structored programing and thought I knew more then the teacher as a typical 17 year old.

    Anyway, I aced the final by learning "the proper" structured way in Basic.

    Its easy. There is a routine called sub/go sub.

    Sub is aka method in Java and Function in C/C++. The difference is you can not pass arguments(at least not that I was aware of, this was highschool). Being a highschool course we all used global variables so passing arguments were not needed. Shudder

    Anyway, by doing subroutines and using go sub, you can chnage line after line without causing bugs and still have it structured properly, just like calling functions in C. Each goto was marked 10% off on my final.

    I guess it was good that line numbers were eliminated in Visual Basic and later languages. I hated it at first being a dumb kid writing simple programs but see its value now. Would I have stopped using goto?

    If you force kids to learn programing by gettng rid of the goto and line numbers and instead subs and go subs, they will learn to write structured programs real quick.

    Infact its hard not to wrote unstructured programs in C/C++ later on. .... but, writing elegantly designed algorithms and code is a different matter. :-)

  129. Lameness Filter Fodder by dmomo · · Score: 1


    10 FOR I = 1 TO 3 STEP 1
    20 PRINT I;
    30 IF I = 1 THEN GOTO 100
    40 IF I = 2 THEN GOTO 120
    50 IF I = 3 THEN GOTO 140
    60 IF I = 4 THEN GOTO 70
    70 PRINT "Profit!!!"
    80 NEXT
    90 End
    100 PRINT ": In Soviet Russia the language uses the janitors"
    110 GOTO 200
    120 PRINT ": All your mainframe timeshares are belong to us"
    130 GOTO 200
    140 PRINT "???"; INPUT A
    150 IF A = "" THEN GOTO 200
    160 IF A "" THEN GOTO 170
    170 PRINT "RTFA"
    200 I = I + 1
    210 GOTO 20

  130. Put it a different way... by darkonc · · Score: 2, Interesting

    #!/usr/bin/perl
    # REM nam37 codes
    X10: print "In 1963 two Dartmouth College math professors had a radical ";
    X20: print "idea - create a computer language muscular enough to harness ";
    X30: print "the power of the period's computers, yet simple enough that even ";
    X40: print "the school's janitors could use it.\n";
    X50: end

    # (don't ask me why I did this...)

    --
    Sometimes boldness is in fashion. Sometimes only the brave will be bold.
    1. Re:Put it a different way... by aquishix · · Score: 1

      Where did that quote in your sig come from?

      --
      - I am a viral sig. Please copy me and help me spread. [strain #2] Thank you
    2. Re:Put it a different way... by darkonc · · Score: 1

      Not entirely sure... I came across it in a course called The Landmark Forum. They attributed it to Mark Twain, but he seems to have gotten it from anthropologist Margret Mead (I think that's the name). I'm not sure if it came from somewhere else before that.

      --
      Sometimes boldness is in fashion. Sometimes only the brave will be bold.
  131. I suggest "So simple, even Bush could use it" by Anonymous Coward · · Score: 0

    nuff said, props to the Janitorial staff out there. peace out...

  132. Does anyone know or remember ubasic? by thomasa · · Score: 1

    QUOTE

    UBASIC is a BASIC-like environment which is suitable for number theoretic investigations. Version 8 of UBASIC has the high precision real and complex arithmetic (up to 2600 digits) of previous versions, but adds exact rational arithmetic and arithmetic of polynomials with complex, rational, or modulo p coefficients, as well as string handling and limited list handling capabilities. In addition UBASIC has context-sensitive on-line documentation (read ubhelp.doc for information). The file ubhelp.xxx that this uses is ASCII and can be printed for hard copy documentation.

    UNQUOTE

    UBASIC is still useful.

  133. BASIC loops by rk · · Score: 1

    The version of BASIC I learned as a youg'un (TRS-80 Extended Color BASIC) had only FOR as loop constructs. Since there were no while or until loops, I remember simulating them with FOR:

    The until:

    10 FOR UN = 0 TO 1 STEP 0
    20 REM Whatever your program was supposed to do
    30 IF condition to terminate here UN = 1
    40 NEXT UN

    The while:

    10 FOR WH = 0 TO 1 STEP 0
    20 IF condition to terminate WH = 1: NEXT WH
    30 REM Code to run here
    40 NEXT WH

    Sick, ain't it?

    For the pedants: LET was optional in Trash 80 Color BASIC, but I'm sure I'm misremembering something else here.

  134. 10 PRINT "3-2-1 Contact Got Me Started with BASIC" by Sigh+Phi · · Score: 4, Interesting

    I was introduced to BASIC first on a friend's Apple IIe and subsequently on my own first computer, an original Macintosh.

    First programs included the standard:

    10 print "Enter your name: "
    20 input NAME$
    30 print NAME$ " is a doofus."
    40 goto 30

    About that time, I started getting 3-2-1 Contact Magazine, a science and nature periodical written for kids who had grown out of Sesame Street and The Electric Company. In the back of every issue was the "BASIC Training" feature, which had simple games and programs for a variety of platforms. The IBM versions were usually the only ones I could use; Apple IIe and Commodore 64 PEEK and POKE calls were meaningless in Mac MS-BASIC.

    But later, BASIC facilitated an (extremely sketchy) introduction to the Macintosh toolbox. MS-BASIC on the mac had built-in pseudo toolbox calls so that you could change fonts, draw graphics primitives and buttons. I ended up writing a grade tracking program that was a snare of interwoven GOTOs and GOSUBs.

    I breezed through two years of programming courses in high school and learned C in my own time. Looking back, I'm a little ticked off that my HS didn't offer "real" computer science with Pascal or C or any sort of AP treatment.

    Then I learned Perl. Now I do websites. I've forgotten most of BASIC. I have been told this is a good thing. But sometimes (actually, lately, more and more) I have to deal with VBScript and I see "LEFT" and "MID" and I think "what the hell is this crap?"

    Ah, memories.

  135. I did, for the Apple //e by sulli · · Score: 1

    I wasted many, many hours in eighth grade writing a semi-Zork-clone in Applesoft Basic using DOS 3.3. The user got to walk around town skewering various people with his glowing sword. Doubt that this would be much appreciated in a post-Columbine junior high school.

    --

    sulli
    RTFJ.
    1. Re:I did, for the Apple //e by AndroidCat · · Score: 1

      Yeah, these days they totally ban people from carrying glowing swords at school. :)

      --
      One line blog. I hear that they're called Twitters now.
  136. I feel sorry for all the BASIC bashers by exp(pi*sqrt(163)) · · Score: 4, Insightful

    A real programmer can extract useful work from anything from a pile of matchboxes to a state of the art cluster without bitching.

    --
    Doesn't it make you feel good to know that our freedoms are protected by politicans, lawyers and journalists.
    1. Re:I feel sorry for all the BASIC bashers by diamondsw · · Score: 2, Insightful

      However, if he has better alternatives (which the bashers are assuming is the case), then he is a fool for extracting work from a less efficient tool.

      --
      I don't know what kind of crack I was on, but I suspect it was decaf.
    2. Re:I feel sorry for all the BASIC bashers by exp(pi*sqrt(163)) · · Score: 2, Insightful

      Efficiency! Please! My first computer had a BASIC interpreter in 4K of ROM used only 1K of RAM. I think it's the BASIC programmers of the late seventies and early eighties who should be giving the lessons in efficiency.

      --
      Doesn't it make you feel good to know that our freedoms are protected by politicans, lawyers and journalists.
    3. Re:I feel sorry for all the BASIC bashers by stanmann · · Score: 1

      The best tool for the job is the one you have, The BASIC that came with ~ALL computers is equivalent to the swiss army knife that all boyscouts carry or the leatherman that all geeks now carry, its there and its handy.

      You can cut down a tree or skin a buck or repair a computer you wouldn't want to use it to deforest an area but to get that tree out of the way it just works.

      Ditto for BASIC. C, etc are like a toolbox or a garage, great and make you more powerful, but expensive and not always there.

      You are lost in the forest and night is faling do you A. Build a shelter and maybe some primative tools using your handy belt tool, or B. Bemoan the fact that you left your chainsaw, lighter and petrol at home.

      --
      Food not Bombs is a nice platitude but it breaks down when you notice that the Bombees are usually well fed
    4. Re:I feel sorry for all the BASIC bashers by diamondsw · · Score: 1

      There are more kinds of efficiency than program execution time or memory usage - productivity, for one. If using BASIC makes me less productive (including extra time to work out bugs, maintain code, etc) and I have a C/Java/whatever compiler handy that makes me more productive, then BASIC is less efficient for the task.

      --
      I don't know what kind of crack I was on, but I suspect it was decaf.
    5. Re:I feel sorry for all the BASIC bashers by exp(pi*sqrt(163)) · · Score: 1

      I fully understand what you mean by efficient. Look at the specs for the machines that used to run BASIC. Try developing an implementation of Java that runs on them. BASIC is an excellent use of the available resources and for many tasks is much more efficient than the alternatives - in many cases just one: writing in assembler. For most applications programming in BASIC is a much more efficient use of programmer time than assembler. The only other serious contender for these machines is probably FORTH. BASIC has the advantage that mathematical expressions in it bear a passing resemblance to those in conventional mathematical notation.

      --
      Doesn't it make you feel good to know that our freedoms are protected by politicans, lawyers and journalists.
  137. Computer lanugages like math? by amichalo · · Score: 1

    in 100 years, will students learn programming like they do mathematics? Start off with Basic (addition), then move to pascal (subtraction), Object Models (multiplication) and Databases (division) and then on to the by then "real" programming languages.

    Or will out beloved BASIC, FORTRAN, PASCAL, et al just be studies by the historians of computer science like somone might study Latin or a primative dialect?

    --
    I only came here to do two things; kick some ass, and drink some beer...looks like we're almost out of beer.
  138. Who cares what Edsger Dijkstra likes? by crucini · · Score: 1

    The earlier a kid starts programming, the better. It's not hard to learn new languages, styles and paradigms later. Basic makes it easy to get started.

    1. Re:Who cares what Edsger Dijkstra likes? by uberdave · · Score: 1

      But there are other languages like LOGO that are better teaching languages than BASIC.

    2. Re:Who cares what Edsger Dijkstra likes? by crucini · · Score: 1

      I completely disagree. I remember being a kid and learning BASIC. I thought Logo was a steaming pile of patronizing bullshit. It is too far from a real language.

      BASIC may be a joke to most folks here, but I wrote and played fun games in it.

      Maybe the difference is that I'm not talking about "teaching". BASIC is more of a learning language. The idea of anyone teaching how to program struck me as ridiculous when I was 10, and still seems unlikely. You have to walk this path alone.

  139. Re:EdsgerDijkstra?Does not like it-Take the MONO-R by Anonymous Coward · · Score: 0

    People that make statements about GOTOs have never coded assembly in their life.

  140. Sigh... by Theatetus · · Score: 1

    I see that saying anything about Java except "It is perfect for N-tier enterprise applications" gets you flamed on Slashdot. So be it.

    I reiterate my statement:
    IN ADDITION TO the many and varied business applications for Java, it was designed and marketed as a SIMPLE programming languages that would teach GOOD HABITS to BEGINNING programmers. This does not mean it's a toy language, or that it's not powerful. It simply means that one of the virtues of Java Sun pushed was that beginners could pick it up and learn it fairly easily.

    In fact, writing a custom java applet which plays sounds and rotates images is far from trivial for most people.

    No, it's quite challenging for a beginning programmer, but it's do-able and there are plenty of websites that show you how.

    --
    All's true that is mistrusted
    1. Re:Sigh... by Rick+BigNail · · Score: 1

      You don't have to argue with people who already close their mind.

  141. Coding by xmpcray · · Score: 1

    I remember firing up BASIC (or was it BASICA...or GWBASIC?) and starting by setting "Screen 2", which let you use the graphics components. Next was "Auto" for auto line numbering. "System" was to exit BASIC.

    BTW if you want to go back in time and work on GW-Basic, its available as a abandonware at this site xtcabandonware.com and GWBASIC is available here GWBASIC.

    Cheers

    --

    --
    I refuse to answer that question on the grounds that I don't know the answer.
  142. Good enough at the time by psetzer · · Score: 3, Insightful

    Basic wasn't meant to be the end-all be-all computer language. It was a toy language with a very specific purpose in mind, and if everyone remembered it as that, things would be fine. The creators of Basic wrote a book a few years back writing about the design of Basic, and why they made it the way it is. It was meant to be used with a teletype to allow programming while on a computer, allowing quicker debugging and testing than ever before. In order to allow it to be compiled quickly, it had extremely simple syntax. If we just left things at that, there never would have been any controversy.

    --
    "Anyone who attempts to generate random numbers by deterministic means is living in a state of sin." -- John von Neumann
  143. It is a poor musician who blames his instrument... by CarrionBird · · Score: 4, Insightful

    Nothing stopping you from using structure in BASIC but your own mind.

    --
    Free Mac Mini Yeah, it's
  144. May BASIC live forever... by Vexler · · Score: 1

    10 LET AGE=1 20 AGE = AGE+1 30 PRINT AGE 40 GOTO 20

    1. Re:May BASIC live forever... by TheoMurpse · · Score: 1

      Good God! according to the output, BASIC SKIPS THE AGE OF 1!!! TIIIIIIIME TRAAVEEEEEEEL!!!

  145. If not for BASIC... by FirstTimeCaller · · Score: 1

    Just think, if it weren't for BASIC and BillG / PaulA's early implemetation of it, Microsoft might not be where it is today. Oh well, I'm not going to hold that against it... I'll be sure to have a drink in BASIC's honor tonight.

    --
    Wanted: witty unique signature. Must be willing to relocate.
    1. Re:If Not for BASIC... by Anonymous Coward · · Score: 0

      I use basic from time to time to get very simple, repetitive tasks done. I thought I'd try the VBA once, but had to buy a book to figure out how to use it. Talk about convoluted.

      I've about given up entirely now. There doesn't seem to be anyway of quickly writing a program to access data stored in a file and outputting a result to another file. Or perform general operations on files without a "Learn (x) in 24 hours" where 24 hours is twenty four two to three hour lessions which may be done in just over an hour by someone already proficient in the language.

      I don't want buttons, or fields, or libraries, or variable definitions. I want to write a program in 15 minutes which performs a particular task on a particular predefined dataset when I say "run". Is it really that hard? Or has Windows forced everyone to make programs so pretty and interactive that there's no call for usefulness anymore?

      Of course, I'm not just railing against modern languages with special characters and parenthetical expressions...I hated FORTRAN (77 if you must know) too. If I want to print an answer, why not just allow PRINT A. Sometimes I just want the answer, and I don't want to HAVE fool with how it's formatted. Sometimes pretty output is also useful, but often it's just pretty.

  146. Comp Sci can help! by don.g · · Score: 1

    Comp Sci was what coverted me from someone who could write stuff in BASIC/Java/C/C++/assembly/Pascal to someone who could write software well. The prior experience gained from teaching myself programming (starting at age 8 :-) was invaluable; but so was that gained through taking all those CompSci papers.

    No, I'm not being paid to write the above :-)

    --
    Pretend that something especially witty is here. Thanks.
  147. BASIC was OK... by shadowcabbit · · Score: 1

    I started programming BASIC on an old VIC-20 when I was 6, far before I had any concept of how to design a program properly or even how to connect the VIC-20 to the TV. Needless to say, my exposure to BASIC did me a world of good.

    Hear me out, really.

    It's very easy for novice users to fall into the trap that "Oh, I'm still programming, so stuff in C should work like BASIC". When they find that it doesn't, novice users tend to give up. Real "wizards", as I've heard Dijkstra quoted in this discussion, will easily be able to say "Ah, so that's how C differs. OK, that makes this part harder, but that part and that other part much easier." Then, once they know how to code, teach them design.

    That being said, If I were in charge of a beginner's computing course, Perl would be taught first thing. Free, easy to write, and helps users learn good practices without gagging on less-than-stellar ones.

    Oh, and GOTO has its uses, but it's nothing that can't be handled much better with a conveniently placed "if" block.

    --
    "Why Subscribe?" Good question...
    1. Re:BASIC was OK... by dagarath · · Score: 1

      I would agree, if you limit the scope of perl available to the new student. Python or ruby might be better for that first class.

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

    1. Re:1K Adventure by legality · · Score: 0

      or... 10 PRINT "Press any key to continue." 20 INPUT A$ 30 GOTO 10 >RUN

    2. Re:1K Adventure by Anonymous Coward · · Score: 0

      i used to do randomize usr 1234 on a spectrum. A program like this

      10 print "program: latestgame"
      20 randomize usr 1234

      would make people think that a game was loading... the poor things would wait there for hours.

  149. In defence of BASIC by BlightThePower · · Score: 5, Insightful
    Yes, BASIC fosters bad programming habits. However, this isn't really the point. Let me explain why.

    1. When I and many other people started out with computers, BASIC was the only game in town. Yes, there was assembler and other languages, but its easy to forget these days that information was hard to come by pre-web and indeed, for children who don't have the disposable income for specialist magazine subscriptions. Libraries typically had a couple of computer books, but these would be non-specific description books (that no longer exist as genre really) explaining that a computer had ROM, RAM and you could hook it up to a printer and a VDU! etc. etc. They had hand-drawn "screenshots" of space invaders and pac-man. BASIC was easy enough that we could get started without being put off. On Slashdot its easy to be intellectually macho, but theres a lot to be said for a low learning curve that encouraged you ever onward.

    2. BASIC today. Well, its probably not for serious programmers. However, what is often forgotten here is that not everyone who programs is a professional programmer. Or wants to be. For very simple programs, GOTO is no sin. At least when the alternative is no program at all and, say, organising data in a text file by hand or "manually" in Excel or something. Bad habits are not a problem here, because one is never going to go on to have to write mission critical software in C or whatever. I know there are modern scripting languages that are perhaps just as easy to use, but you might be surprised how many people you might have thought have difficulty programming a VCR will break out QBASIC or VB when they need 20 line quicky knocking together and the programmers are "busy until further notice". Its easy to belittle this from a position of knowledge and authority, but relatively speaking these people are your friends in a landscape of PHBs that think programs just happen.

    So in conclusion, BASIC is often better than nothing. That might sound like feint praise, but like I say, for the non-specialist that can be quite a valuable thing. Computer programming for the masses. Mock it at your peril.

    --
    Plays violent online games as: Nerfherder76
    1. Re:In defence of BASIC by GigsVT · · Score: 1

      Bash is excellent for learning programming.

      And even Windows people can get it free with cygwin.

      --
      I've had enough abrasive sigs. Kittens are cute and fuzzy.
    2. Re:In defence of BASIC by Anonymous Coward · · Score: 0

      That might sound like feint praise

      No, it sounds like riposte praise.

    3. Re:In defence of BASIC by BlightThePower · · Score: 1

      "I didn't see that one coming". Hehe.

      --
      Plays violent online games as: Nerfherder76
    4. Re:In defence of BASIC by smallpaul · · Score: 1

      Fine, but you're doing no favour to your friends or neighbours if you still encourage them to learn BASIC when they could learn (e.g.) Python instead. Why shouldn't they use a language easier to use than Basic and also much more powerful and scalable with much better libraries.

    5. Re:In defence of BASIC by Anonymous Coward · · Score: 0

      "Today's BASIC" would be VB.NET, which is a much better BASIC than there's ever been...

      Functionally, it's not really even any different to C# or Python, but .NET is probably harder to learn than Python's library.

    6. Re:In defence of BASIC by Anonymous Coward · · Score: 0

      computer science BIAS.
      Basic is a Turing complete language, this means that you can write C compilers in basic. I'm tired of laguages being shunned because they aren't cryptic enough. Here is the irony of the situation. Basic is inferior because, "its not compiled", so I'm told by CS majors. hmm, amazing how we have come full circle here with JAVA and all the new glue langues that run on interpreters (or partly interpreted). If speed was your ultimate concern you would use assembly or some derivative. The real secret is that BASIC and its big dad FORTRAN don't obfuscate the code to keep your average person from understanding it. This was done for job security. It's the same problem with the Win32 api. It justifies some sort of superiority to use obfuscated code. Not to mention that there are new derivates of basic that 1) modular 2) allow inline assembly 3) are much faster then both java and C# If you don't believe me then check out www.purebasic.com

  150. KILL SANTA by MrBr0wN · · Score: 1

    I am only 21 years old I remember in 7th grade we had to learn basic in our compute class. We had to program a small cartoon. My first program was a cartoon that showed Santa on top of a roof and a meteor hitting him as he climbed into the chimney (SP) HAHAHA it was GRREEEAAATT!!!

  151. Java /BASIC by phyruxus · · Score: 1
    5. ???
    6. Profit!


    Please, restrict your comments on Google's IPO to that thread.

    8}

    --
    "A witty saying proves nothing." ~Voltaire
    "d'Oh!" ~Homer
  152. Re:It is a poor musician who blames his instrument by WWWWolf · · Score: 2, Insightful

    Remember, that was about old BASIC dialects, not the embraced-and-extended-for-the-love-of-god-and-good -of-the-mankind Microsoft dialects.

    Yeah, it's possible to do OO coding in Commodore 64 BASIC v2 if you do it right. *sigh*

    Still, writing structured programs would be very cool if BASIC interpreters of those days would have supported things like return values, local variables and subroutine arguments... (You can GOSUB 2390 all you want, just don't expect the language to pass data around.)

  153. back when i was a tike... by denlin · · Score: 1

    we didn't have fancy languages like python or c++ or even basic. we had assembly language and we entered code using punched cards & we liked it!

    --
    Yes, I have RTFA. Yes, I have a girlfriend. Yes, I'm new here. And no, I don't want a free iPod.
  154. easy fix by ShadeARG · · Score: 1

    OPTION BASE 0

  155. Re:5 REM Testing.. The Parable of the Languages... by Hollinger · · Score: 1

    Okay, this reminds me of the Parable of the Languages, a rather clever look at where programming has come from, and where the field is going to:

    If programming languages could speak, really speak, not just crunch bytes and stream bits, they would have much to say that is both wise and profound.

    After all, the original programmers were philosophers, and programming languages were philosopher tools...

    In Babble Meadow, in the twilight hours between day and night, when pesky noseeums float past on the breeze and birds rustle among leaves in preparation for bed, the programming languages would meet. And talk...


    Read on at http://weblog.burningbird.net/archives/2002/10/08/ the-parable-of-the-languages.

  156. goto by Theatetus · · Score: 1
    --($:/usr/src/linux-2.6.0)-- find . |xargs grep goto | wc -l

    You probably know this, but most of those are a performance hack for if's with expressions that are either very likely to be true or very likely to be false.

    On the other hand, the Win2K source code that leaked had very few goto's that I saw, but then again that wasn't the very low-level kind of stuff that Linux puts its goto's in.

    --
    All's true that is mistrusted
  157. If only you could by 2names · · Score: 1
    combine BASIC and a BATCH file...o0

    10 COMEFROM STROKIN
    :STROKIN

    ;)

    --
    "I'm just here to regulate funkiness."
  158. Re:EdsgerDijkstra?Does not like it-Take the MONO-R by JavaLord · · Score: 1

    People that make statements about GOTOs have never coded assembly in their life.

    and if you have never really coded in assembler in some form YOU ARENT A REAL PROGRAMMER. THIS MEANS YOU SKRIPT KIDDI! drop the javascript book and back away from the keyboard!

  159. MS Basic is free again. by nurb432 · · Score: 1

    While its not shipping with windows anylonger, a 'basic' compiler is again free.. If you want to download the *.net SDK..

    Not commenting on if you want to or its quality, just that it exists again...

    --
    ---- Booth was a patriot ----
  160. 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
  161. I'm a janitor! by njord · · Score: 3, Funny

    You insensitive clod!

  162. Java has it's roots in BASIC! by Random+Guru+42 · · Score: 1

    Wow, I never knew! I thought it's roots were in C++.

    IOWs, someone check the article author's brain for unused cells. There's certain to be many.

    --
    Christopher S. 'coldacid' Charabaruk -- coldacid.net
    1. Re:Java has it's roots in BASIC! by Anonymous Coward · · Score: 0

      yes java is very simliar to C++ in syntax except its more verbose, removes pointers, partially interpreted, slow, "safe".

  163. 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?
  164. RENUM by roelbj · · Score: 1

    In most BASIC interpretations, "RENUM" will renumber your lines, providing even, 10-digit spacing between them.

  165. Re:Did anyone try to write a Zork like game way ba by PhoenixFlare · · Score: 1

    Sorta.

    I had way too much free time one summer a few years ago, and started to write a dungeon-crawler game similar to the style of the MUD I frequent.

    I forget why I finally gave up, but got pretty far along...Had a combat system that did dice rolls for weapon damage, random monsters, and a menu system for buying equipment, etc. Amazing what you can do if you're really determined and bored :)

  166. QBasic by Professr3 · · Score: 2, Interesting

    If you're looking for a good version to play around with, check out QBasic 4.5 or 7.1 (off abandonware sites). It can use assembly libraries for graphics and stuff... I once wrote a windows clone using the DirectQB libraries. It can compile to .COM or .EXE too!

  167. Re:It is a poor musician who blames his instrument by Anonymous Coward · · Score: 0

    > Nothing stopping you from using structure in BASIC but your own mind.

    That and the lack of FUNCTION in early versions.

  168. Not true by Anonymous Coward · · Score: 0

    The funny thing is that I started out with Basic back in the old days (for me), now I write quite capably in Assembly.

  169. Memories by pickapeppa · · Score: 1

    Ah BASIC, the first computer language to make me cry and swear at my Commodore 64.

  170. The king of them all by NoMercy · · Score: 1

    BBC Computer 32K
    Acorn DFS
    BASIC
    >_

  171. Two things... by kdorff · · Score: 1

    First...

    Private Sub Form_Load()
    If (MsgBox("VB Is sweet?", vbYesNo) = vbYes) _
    Then
    MsgBox "Coooool"
    End If
    End Sub

    or on the C64 (sorry, I can't make the "special characters")...

    10 ? "Command shortcuts are fun"
    20 gO 10
    lI
    rU

  172. my fav program... by deander2 · · Score: 1


    10 a=1
    20 poke a,0
    30 a=a+1
    40 goto 20

    all sorts of fun follows. :)

    1. Re:my fav program... by Marxist+Hacker+42 · · Score: 0

      (warning- only works on a TI-99/4A with Terminal Emulator Cartridge and Speech Synthesizer):
      10 Open #1:"SPEECH",Output
      20 Input "What Do You Want Me to Say?":A$
      30 Print #1:A$
      40 Goto 10


      I don't know of a similar method on any modern system- except maybe by tapping into the Agent COM API in WSH on XP- but even then, like on the TI, you've got to make sure the speech library is installed first (the speech library on the TI was in the Terminal Emulator cartridge to allow old-style ASCII BBSs to be accessed by the blind).

      --
      SJW: a person who perceives an injustice, and while correcting it, commits a greater injustice.
  173. nibbles by presmike · · Score: 1

    lets start a nibbles tournament ;)

    --
    presmike
  174. 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
    1. Re:BASIC? That's too newfangled for me! by base3 · · Score: 1

      If you were really old school, you would have used Hollerith formats :).

      --
      One CPU cycle wasted on digital restrictions management is ONE TOO MANY.
    2. Re:BASIC? That's too newfangled for me! by Anonymous Coward · · Score: 0



      You forgot the JCL cards.

    3. Re:BASIC? That's too newfangled for me! by RexRuther · · Score: 1

      or how about this...

      IF (THOPT) 5650,1960,1840

      ...old school arithmetic if statments

      --
      -"The early bird catches the worm, but the late bird sleeps the most"
    4. Re:BASIC? That's too newfangled for me! by alecto · · Score: 1
      Forgot about that--which reminded me of computed GO TO:

      GO TO (10,20,30,30,50), I
    5. Re:BASIC? That's too newfangled for me! by Anonymous Coward · · Score: 0

      10101110101000101000111101000101011010010101010110 10111010100010100011110100010101101001010101011010 11101010001010001111010001010110100101010101101011 10101000101000111101000101011010010101010110101110 10100010100011110100010101101001010101011010111010 11010001010001111010001010110100101010101101011101 01000101000111101000101011010010101010110101110101 0001010001111010001010110100101010

      (Stupid lameness filter. It must be newfangled too. I said, when I was your age, we didn't have these fancy features to detect lameness algorithmically. Now go outside and cut me a switch.)

    6. Re:BASIC? That's too newfangled for me! by the_greywolf · · Score: 1

      MY EYES!

      --
      grey wolf
      LET FORTRAN DIE!
    7. Re:BASIC? That's too newfangled for me! by SpinyNorman · · Score: 0, Redundant

      Man, that's like some vague bad dream...

      WTF is that.. COBOL, FORTRAN??? Surely not PL/1.

      God help me.

    8. Re:BASIC? That's too newfangled for me! by Ben+Hutchings · · Score: 1

      Newbie. You should have used good old Hollerith strings.

      Seriously, though, I did start with Basic and not Fortran.

    9. Re:BASIC? That's too newfangled for me! by server_wench · · Score: 1

      Fortran was my first programming language too, in 1969 (yikes!) with punched cards. I mainly used it to crunch numerical data and it was quite useful as long as you had a mainframe or two available. I switched to using BASIC because it came with the minicomputer in the lab, my kid's Apple II, etc.

      I think a major strength of BASIC was that it was so ubiquitious that people could play around with it and had the luxury of making mistakes and learning from them. That is something that wasn't an option on mainframes.

  175. 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
    1. Re:My first BASIC project by Marxist+Hacker+42 · · Score: 0

      10 A=INT(RND(1)*26)+64
      20 PRINT CHR$(A);
      30 GOTO 10


      Very simple. But you've been corrupted by Hungarian Notation in the parent- variable types come AFTER the variable name in Applesoft Basic.

      --
      SJW: a person who perceives an injustice, and while correcting it, commits a greater injustice.
    2. Re:My first BASIC project by eril · · Score: 1

      When I was in the 3rd grade (~1980) they decided to teach us BASIC in the new computer lab at the elementary school. I was excited about showing off my skillz to the teacher and my fellow classmates; I was already familiar with BASIC since I had regulary been going to the mall and used the trs-80's on display at Radio Shack to try out the things I had learned in books. On occasion, I would go down to Video Concepts and use their Commodore 64, but I didn't like it because it wouldn't tell you about any sytax errors until you tried to run the program. The trs-80 would notify you of any syntax errors as soon as you completed a line.

      Unfortunately, and to my demise, this taught me poor programming habits (I relied on those damned line-by line syntax checks, causing me to be less careful). Sure enough, the third grade computer lab was comprised of Commodore 64's. "No problem," I remember thinking to myself, "I'll just be careful."

      The problem is, our first assignment was to type a program (~20 lines) from a sheet of paper to the computer. We weren't allowed to run it until the teacher came to grade us. It was a pass-fail assignment/test. If the program ran, you passed. Thanks to the sloppy habits I had developed on those fucking trs-80's I failed.

    3. Re:My first BASIC project by 68K · · Score: 1

      Heh. My brother did something similar on the ZX Spectrum. He typed 80 lines of CIRCLE statements to great a 'tunnel' effect, and was most dejected when I told him it could be done in three lines with a FOR..NEXT loop. :-)

  176. Worse that that! by RatBastard · · Score: 1

    They created an Evil Empire! *DUM DUM DUMDUM* For, it was BASIC that gave Microsoft its start in life. Without BASIC MS would never have been built and Uncle Bill would be monopolizing timeshare condominiums or something.

    --
    Boobies never hurt anyone. - Sherry Glaser.
  177. The best BASIC... by Alioth · · Score: 1

    The best BASIC in its time had to be BBC Microcomputer BASIC on the old Acorn BBC. It had useful features like procedures (think 'functions' or 'subroutines' in other languages) , so your code wouldn't be a whole heap of GOTO statements. It also had indirection operators for easy memory manipulation.

    The BBC also had a 'Programmer Upgrade Path' - a built in 6502 assembler, and probably the best documented 8-bit OS in its time.

  178. slap the author by spir0 · · Score: 1
    Many of those languages, including the Internet's Java, have their roots in BASIC.

    Internet's Java?

    I'd be interested in knowing more about this. I always thought that Java was derived/inspired by C++. or is Internet Java different to Sun Microsystems's Java?

    --
    The reason girls and Windows users don't understand UNIX is because all the documentation is in Man files.
  179. make fun of basic....but... by asciiRider · · Score: 1

    I kid you not...

    The last shop I worked for ran BASIS PRO/5 on a big rs/6000 - this was a 250 million dollar company. It ran their rental business. Business Basic running on AIX. Complete with
    Ready> prompt and line numbers. They still run it, put the system in production in 1998.
    Yes, you read it right. Ready prompt and line numbers, interpreted basic ran a 250 million dollar company -

    intepreted basic really let the vendor fix errors as they came up -

  180. Thanks, BASIC, for my monitor by CdBee · · Score: 1

    In 1990 I wrote software for realtime encoding and decoding of morse code using Amstrad CPC464 microcomputers, and hardware for connecting them (audio port to joystick port)

    Describing this 10 years later to a British computer mag gave me letter-of-the-month status, winning myself a Taxan 19-inch monitor

    So, thanks.

    --
    I have been a user for about 10 years. This ends Feb 2014. The site's been ruined. I'm off. Dice, FU
  181. who's editor-in-chief of PC World magazine? by riffenator · · Score: 1

    Harry McCracken, editor-in-chief of PC World magazine, laments BASIC's demise. "On some level I think it's sad that it went away," he said. "People went from being creators of software to consumers."

  182. 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!

    1. Re:My favorite basic program... by SharpFang · · Score: 1

      This was a very newbie shot.
      Intermediate user would poke rnd(9999),rnd(256).
      Advanced did poke rnd(65536),rnd(256)

      --
      45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B2
  183. Re:Actually, I learned structured programing in ba by aled · · Score: 1

    Easier to use a language that supports proper structured programming.

    --

    "I think this line is mostly filler"
  184. Kids and their fancy new-fangled Qbasic by lindsayt · · Score: 1
    I'd like to think that I had a small hand in starting that fad, with a little Qbasic RPG demo I released in 1997.

    Perhaps I'm wrong, but I don't think any fad involving basic could have been started as late as 1997. Qbasic, though not quite a footnote on basic, certainly is a late entry into the world of basic language variants, and by 1997 even Qbasic was pretty unbelievably old. Anybody worried about fitting basic into an ungodly huge 450KB (!!!) is pretty wasteful with space...

    I'm somewhat of a latecomer to basic myself: I taught myself basic at home on a Commodore VIC-20 and at school on a PET, until the school replaced them with Apple ][e machines, and then when I was in 8th grade, just-released Apple ][gs machines.

    You don't know memory limits until you discover that a Commodore VIC-20 had 3KB of user-available RAM!!! Even simple games like speedski barely fit. And of course the 22-column screen made typing programs a chore. The C64 with the 80-column card was a prize for sure - it had over 50K available to the user, and an 80-column display with 8 colors.

    One thing I always liked about basic though, was that all the different variants (Timex/sinclair, Commodore, Apple, HP, etc), despite a lack of any desire to follow any inherent standards, were close enough that with a little acquaintance and/or any of the monthly magazines full of programs and hints, it was possible to write a program for any of them. And the laborious man-hours of manually copying code from a magazine into a computer meant that I knew how to properly type by my seventh birthday.

    Anyway, you can keep your Qbasic games of 1997, by which time there were all sorts of really *good* games being developed for real hardware using real languages. If I'm going to play basic games, I'll take speed ski, snake race, avenger, and the like.

    --
    I did not design this game/I did not name the stakes/I just happen to like apples/And I am not afraid of snakes-AniD
    1. Re:Kids and their fancy new-fangled Qbasic by Anonymous Coward · · Score: 0

      3k? Why didn't you just buy a new 256MB Memory card? They couldn't have been that expensive back then.

    2. Re:Kids and their fancy new-fangled Qbasic by Sj0 · · Score: 1

      Fit a large scale VGA RPG with a real storyline, Pixel*Pixel scrolling(without hardware assistance), thousands of tiles(with animations), a battle system with ten to one-hundred spells and indepedant graphics for each into 3k, or even 50k.

      Trust me, give a modern QB'er an old VIC-20 or C64, and the specs to do something with it, and you'll be suprised at what pops up, in terms of what such computers are capable of. In QB, however, you've got one of the slowest compilers out there with a standard library to match, and 450k of RAM to try to match dedicated hardware units like the Super Nintendo(generally speaking, SNES quality is the goal of QB developers. While 3d, end even high quality 3d graphics are possible today, the amount of work to get such a project completed is far to great for the one or two person development teams of QB to consider)

      To be honest though, I think I'm wasting my breath. QB games have been developed that are absolutely on par with the "really *good* games being developed for real hardware using real languages", but I have a feeling you'd probably be the type to take the absolute cutting edge, million dollars to develop 3d game and try to compare it to a "0 dollars budget, developed on a dead language on a 486" indie game.

      I'll be right here, enjoying myself immensely regardless.

      --
      It's been a long time.
    3. Re:Kids and their fancy new-fangled Qbasic by lindsayt · · Score: 1

      Don't jump to conclusions about what I'd be interested in. I see your point and I respect that. To be honest, the most cutting-edge games I ever play are Quake 3 and MotoRacer 2, and my favorite modern game is Civ 3. I still play on my old Nintendo (I've spent more money maintaining it than on all post-1998 games I've ever bought), and if I still had my Vic-20 I'd play Avenger, Speed Ski and the like.

      I was just doing the "When I was a kid" kind of thing - since the original poster was making the Qbasic environment of 1998 sound archaic, I was pointing out that it's downright feature-rich compared to what we used to have. It's kind of obnoxious and silly, a bit like old people who talk about how they used to get a nickel a week and were satisfied, ignoring the fact that there's a thing called inflation (or in this case, Moore's Law).

      More power to you, I'm sure everything you're saying is true. There's nothing wrong with Qbasic if that's your gig. I respect that. If I were to start writing games in BASIC again, I'd personally do it on the old platforms that were designed for it; but if you like QBasic, great.

      I hate the massive commercialization of our lives, and the thing I really liked about the state of personal computing in the late 70s and early 80s was that it was so grassroots, where kids and parents sat at home together, with or without any inherent knowledge of computers, typing in lines of basic into their computers to get a game. They were directly involved with the creative experience, even if they didn't really understand what they were putting in. People could modify games easily, tailoring them for better or worse to their tastes.

      This movement and this grassroots connection to computers largely dried up as the brands slowly failed and the wide diversity of simple machines disappeared. Qbasic is certainly the closest thing we have to that now and it's nice to see continued work in that direction. There I go reminiscing again...

      --
      I did not design this game/I did not name the stakes/I just happen to like apples/And I am not afraid of snakes-AniD
  185. I guess I won't get any work done today... by NuclearDog · · Score: 1

    Damn it! Now that you've reminded me of basic I had to install a basic interpreter and now I'm going to sit and relearn basic. So much for getting some work done today!

    --
    This statement is forty-five characters long.
    1. Re:I guess I won't get any work done today... by Anonymous Coward · · Score: 0

      ... and you'll be surprised and cry foul when your job is exported to India.

      Hi ho, hi ho, it's off to troll we go...

    2. Re:I guess I won't get any work done today... by Anonymous Coward · · Score: 0

      I'd be glad if some person in India would keep my servers running well :)

      I just host some websites for people, all I had to do was a bit of maintenance and install another HD in one of the servers.

  186. More reminders of my old TI-99/4A... by Anonymous Coward · · Score: 0

    BASIC...

    TI-99/4A.. learning BASIC.. good times...

    Been a long day today, but nice to have a minil vacation, remembering the good ole days...

    have a nice day ya'll

  187. Re:Did anyone try to write a Zork like game way ba by Patrik_AKA_RedX · · Score: 1

    One of my first real programs in Qbasic was a text adventure. And since at that time all I knew about programming I had learn from the help-function, you can imagine I wouldn't like having that code showing up again.

  188. Mwhaha by mfh · · Score: 1

    > It was something like that. It basically wrote 0's to the memory until the PC shit itself and crashed.

    I remember when I only had 16k to play with on my TI 99/4A. I saved all summer to get the expansion box and the extra 16k cardie. If I had invested that money, I would rich today! But I'm a poor jobless bastard....

    --
    The dangers of knowledge trigger emotional distress in human beings.
  189. Qbasic by Deanasc · · Score: 1

    I love that bastard child of Basic that MS hides in the windows folder. I love throwing banannas at monkeys.

    --
    I've hit Karma 50 and gotten a Score:5, Troll... I win!
  190. Learn to count! by joel.neely · · Score: 4, Informative

    The program's source is the haiku, not its output.

    1. Re:Learn to count! by Rimbo · · Score: 1

      He wasn't talking about the program.

  191. Arithmetic goto's by johnjaydk · · Score: 2, Interesting
    You don't know what debugging is until you've tried debugging a program with arithmetic goto's:

    50 goto x*100+1000

    And of course x is a float not an integer. Ahh those were the days...

    This technique of course requires very carefull line numbering of different parts of the code but it's wicked fast and defies any attempt at reverse engineering.

    --
    TCAP-Abort
  192. Re:Dijkstra said it best ...not by NevDull · · Score: 1

    MySQL *shouldn't* be used for anything serious.

    There should be a hippocratic oath for data integrity 'first do no harm'.

    MySQL mangles data in various ways.

    Horrible flaming death by returning errors is preferrable to data mangling.

    http://sql-info.de/mysql/gotchas.html

    Read it. Be enlightened.

  193. Kagi by mccoma · · Score: 1

    well, you can write your activation code generator in BASIC-80 if you are using Kagi for your software sales.

  194. Blasted DOS by Anonymous Coward · · Score: 0

    Microsoft(R) Windows 98
    (C)Copyright Microsoft Corp 1981-1999.

    C:\WINDOWS\Desktop>mbasic
    Bad command or file name

    -- DAMN! Where'd it go!?!

    1. Re:Blasted DOS by Nicolas+MONNET · · Score: 1

      nico@paris nico $ basic
      -bash: basic: command not found
      nico@paris nico $ mbasic
      -bash: mbasic: command not found
      nico@paris nico $ uname
      Linux
      nico@paris nico $

  195. I always thought it was the other way around by Atario · · Score: 1

    Whenever I watch something dubbed from Japanese into English, it seems like the voice-over actors have to talk a hundred miles an hour to get their lines into the allotted time. So I've always assumed Japanese has a much higher information-to-syllables ratio. And it made me want to see a Japanese-to-Spanish dub...they'd have to talk twice as fast as that.

    --
    "A great democracy must be progressive or it will soon cease to be a great democracy." --Theodore Roosevelt
  196. Sloppy. Just sloppy. by RatBastard · · Score: 1

    You should replace 30 - 60 with:
    30 ON I GOTO 100, 120, 140, 70

    And then there is the matter of range checking...
    (Damn, I'm a nerd.)

    --
    Boobies never hurt anyone. - Sherry Glaser.
  197. Bah. Scheme is better for haikus. by BitwizeGHC · · Score: 2

    (define (cube-of (x))
    (* x (* x (* x 1))))

    (+ (cube-of 2) 9)

    Evaluate that to get the number of syllables in a haiku. ^_^

    --
    N4st0r, trixx0r h0bb1tz0rz! Th3y st0l3 0ur pr3c10uzz!
    1. Re:Bah. Scheme is better for haikus. by Haeleth · · Score: 1
      (define (cube-of (x))
      (* x (* x (* x 1))))
      (+ (cube-of 2) 9)
      Evaluate that to get the number of syllables in a haiku. ^_^


      So? You can write one of those in any language, if you choose which symbols to pronounce arbitrarily and mess with the maths enough.

      In ML we can use the exact same algorithm:
      let cube x =
      x * x * x * 1
      in cube 2 + 9
      In C we use a different process but the same principle (forgive the indent style, none of the standard ones fit on three lines):
      int haiku_length (void)
      { return (2 * 2 * 2
      + 10 - 1); }
      Pascal?
      function H; begin
      Result := 5
      + 9 + 1; end;
    2. Re:Bah. Scheme is better for haikus. by Haeleth · · Score: 1

      Bleh, fubar'd the maths in the C and Pascal versions. I know how many syllables there are in a haiku, honest...

      (Spotted it immediately, now I just have to wait for /. to let me post...)

    3. Re:Bah. Scheme is better for haikus. by sxtxixtxcxh · · Score: 1

      what about whitespace:



      --
      for a minute there, i lost myself...
  198. Best headline ever by Magickcat · · Score: 0

    10 REM The trs-80 will return
    20 PRINT "BEST HEADLINE EVER";
    30 GOTO 10

    --

    Si tacuisses philosophus mansisses. If you had kept quiet, you would have remained a philosopher.

  199. Oops. by BitwizeGHC · · Score: 1

    Should be:

    (define (cube-of x)
    (* x (* x (* x 1))))
    (+ (cube-of 2) 9)

    --
    N4st0r, trixx0r h0bb1tz0rz! Th3y st0l3 0ur pr3c10uzz!
  200. Re:Dijkstra said it best ...not by GlassHeart · · Score: 2, Insightful
    Edsger Dijkstra is all too typical of the arrogant academics who gave rise to Shaw's comment "Those who can, do, those who can't, teach."

    I disagree. Dijkstra is credited with numerous important fundamental algorithms, so he most certain "can". This isn't to say that he isn't arrogant, or that there aren't arrogant professors who "can't". This is to say there are those who are arrogant, and "can".

    I have no problems at all with you criticizing various things he said or stood for. Just because he is smart enough to discover algorithms doesn't mean that he is beyond reproach. However, to say he "can't" I'm tempted to ask what you have done for computer science.

  201. Re:Did anyone try to write a Zork like game way ba by Anonymous Coward · · Score: 0

    You know, come to think of it, I did once, way back when. I wrote it on my HP 86A in HPBASIC (for those of you worndering, this was is back in early 80's). I called it "Von Harth's Castle" (I believe the name was inspired by a favorite boardgame of mine at the time called "Valkenburg's Castle"). If memory serves it was three levels and roughly 30 "rooms" or so. I remember spending quite a lot of time writing the command parser so that the player could type regular english sentences.

    Von Harth's Castle was my masterpiece at the time :). It was much better than my previous game, "Pizza Boy", which was not only much simpler, but had a disturbingly pornographic title.

    I think I still have that computer around here somewhere and it might actually work. I wonder how much luck I'll have reading a 20 year old floppy...

  202. Basic is 40? by nwguru_2000 · · Score: 1

    hmm, i see a problem, 2004-1963!=40. Something is wrong with this picture...

    1. Re:Basic is 40? by cdn-programmer · · Score: 1

      ya - you can't do arithmetic! Idjot. This is BASIC right?

  203. Budding Programmers by pinkstuff · · Score: 1

    I remember learning to program with Basic at the age of 10, which eventually lead me to a career as a Java developer. Given the complexities of programming languages now, I wonder how many kids/future programmers have the know how to write even simple programs. I know Java would have been way to overwhelming for me at that age!

  204. some 1337 c0|)3 4 jo0 by dotgod · · Score: 1

    10 OUT &h64,&hfe

  205. VBScript is so capable.. by Anonymous Coward · · Score: 0

    it's used millions of times a day to destroy windows users' data.

  206. Bad coding habits by freeze128 · · Score: 1

    You can blame basic all you want for bad coding habits, and you would be foolish to do so.

    Structurally, the flow control of basic (GOTOs and GOSUBS) is a LOT closer to x86 assembly language than any OO language. It's just the way the CPU was made.

    If the CPU developers throw away 40 years of chip design, and make an Object Oriented assembly language, then you can spout off about methods and functions being beter than GOTOs and GOSUBS.

  207. Ah, the good old days by curtlewis · · Score: 1

    I got introduced to BASIC by a teletype in my 7th grade math class in the mid 70s. Our teacher did a week on probability and statistics and we capped off that phase by playing blackjack on the computer which was hooked up to the HP2000C/F mainframe at the local Junior College via a leased line (I'm guessing 300 baud).

    At the tender age of 12, I was completely enthralled with the technology. I asked the teacher if he had any books on programming, but all he had were the HP BASIC syntax manuals. I happily borrowed those and memorized the lion's share of the commands and started coding. BASIC was so straightforward that you need only program in a logical manner and you were churning out working code in no time.

    I spent many hours at the computer lab in that local Junior College, churning through reams of paper at the disdain of the scuffy bearded sysadmins. I wrote simple games, I wrote complex games.

    The game de jeur at the time was Star Trek, where you traversed your ASCII Enterprise through a matrix of sectors and saved the galaxy from the evil Klingons. I managed to snag the source code to it and despite all my BASIC coding for the last few years, most of how they coded it made no sense to me. Curious as to what the difference would be, I dove into writing my own version of Star Trek, a nearly identical work alike. The code was about 1/4 the number of lines, although it wasn't quite as fast. Still, I was pretty proud of the achievement as it was by far the largest program I'd ever written.

    Those early days of BASIC slinging taught me alot about logic flow and how programs operate and pass data. Much of what I learned way back when still applies to my daily work. I don't sling code anymore, I turned away from that path 20 years ago. These days I do QA work and I work with Engineers and code all the time.

    If BASIC hadn't provided those opportunities for me way back then, I wouldnt' be doing what I do now (which in some cases might be a good thing) and I sure as hell wouldn't know NEAR as much about computing as I do now, be it programming logic, networking or any related technology.

    Sure, people laugh at BASIC now days. It's practically just a scripting language compared to modern languages. From it's very name it was never meant to be the king, but, at least for me, it served a very important foundational role in my technical development.

    I look back upon the spilled paper tape hole bin days with a nostalgic fondness and smile.

  208. Hah! by moosesocks · · Score: 1

    Hah! Basic. Real men use a real programming language

    (yes, this is a joke)

    --
    -- If you try to fail and succeed, which have you done? - Uli's moose
  209. BASIC? NEVER! by Anonymous Coward · · Score: 0

    #include

    void main(void)
    {
    printf("I shall never surrender!");
    } //Muhahaha!

    1. Re:BASIC? NEVER! by SharpFang · · Score: 1

      warning: return type of `main' is not `int'

      --
      45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B2
  210. Re:Dijkstra said it best ...not by Anonymous Coward · · Score: 0

    Or maybe he was making a joke? Oops .. I forgot ... a sense of humour is not allowed when pontificating about a language.

  211. TrueBasic is the most current generation by Anonymous Coward · · Score: 1, Interesting

    Those who blast BASIC in its incarnations should check out what the boys at Dartmouth did to the language. TrueBasic is a very rendition that handles graphics, matix math and even OOP with good programming practices. I have used it for image analysis work and its pretty powerful

    http://www.truebasic.com

  212. Before we dismiss BASIC as a simple language by alphakappa · · Score: 5, Insightful

    That is its biggest strength.

    I remember how I got into programming in school - we had these BBC computers which could run BASIC. The language was simple enough for me to understand and intuitive enough for me to actually like programming. (Before that I had seen an aunt learn COBOL and the very look of the language frightened me)

    Sure, BASIC is not as advanced as C, BASIC uses GOTO statements, BASIC (not QBASIC though) uses archaic line numbers (but still not as archaic as the Fortran 77 tradition of having to write everything after 7 spaces), but BASIC is the best tool to introduce an enthusiastic person to the world of programming. See this example: In BASIC you would show the person:
    10 PRINT "Hello World"
    20 END

    Bingo, the person magically sees his first program work. Try the same thing with C:
    #include
    int main(){
    printf("Hello World\n");
    return 0;
    }

    See how much more you have to explain? Ever tried to explain stdio.h and int main to someone? :-) Once you introduce a kid to the concepts of do loops, for loops and if..then statements, it is so much easier to learn a complicated language like C. It's a pity you don't have QBASIC shipping with Windows machines any more. Vbscripting is not at the same intuitive level.

    --
    "When the only tool you own is a hammer, every problem begins to resemble a nail." - Abraham Maslow (1908-1970)
    1. Re:Before we dismiss BASIC as a simple language by shaitand · · Score: 1

      I don't know, I personally think perl might be a better learning tool. Especially since it's much more efficient and powerful. You can go into very advanced programs without ever having to move to another language. Besides it does the hello world thing in fewer lines:

      print "hello world";

      Even simpler ;)

    2. Re:Before we dismiss BASIC as a simple language by alphakappa · · Score: 1

      oops, the got eaten up by slashdot :-)

      As another post has mentioned, Perl might really be a good option for a beginner too. Of course, the jokes about ugly unreadable code and beginners will follow :-)

      --
      "When the only tool you own is a hammer, every problem begins to resemble a nail." - Abraham Maslow (1908-1970)
    3. Re:Before we dismiss BASIC as a simple language by Repton · · Score: 3, Insightful

      Yeah, my uni teaches Java to first years. Java is a nice language (and the uni programmers put together a library to hide most of the exception handling) ... but your first program looks like this:

      public static void main(String[] args) {
      System.out.println("Hello world!");
      }

      We were basically taught to type "public static void main string args" as an invocation that we would (hopefully) come to understand more in later weeks...

      --
      Repton.
      They say that only an experienced wizard can do the tengu shuffle.
    4. Re:Before we dismiss BASIC as a simple language by ThisIsFred · · Score: 1

      It's all about using the appropriate tool for the task at hand.

      How about:

      echo Hello World!

      --
      Fred

      "A fool and his freedom are soon parted"
      -RMS
    5. Re:Before we dismiss BASIC as a simple language by Anonymous Coward · · Score: 0

      Don't return from main. exit. :P

    6. Re:Before we dismiss BASIC as a simple language by newhoggy · · Score: 1
      10 PRINT "Hello World"
      20 END

      What's wrong with?:

      echo "Hello World"

    7. Re:Before we dismiss BASIC as a simple language by smallpaul · · Score: 1

      Here's what "Hello World" looks like in Python: print "Hello world" Fewer noise characters than BASIC. Simpler.

    8. Re:Before we dismiss BASIC as a simple language by Anonymous Coward · · Score: 0
      Ugh! Just create a vim macro and be done with it.
      :imap ,, public static void main(String[] args
    9. Re:Before we dismiss BASIC as a simple language by smallpaul · · Score: 1

      In Python: print "hello world" Simpler still.

    10. Re:Before we dismiss BASIC as a simple language by TheGrayArea · · Score: 1

      An interesting note about line numbers: you can use them in Visual Basic and it works.

      --

      This space for rent.
    11. Re:Before we dismiss BASIC as a simple language by stanmann · · Score: 1

      You should start programming in basic and not move into invocations and squirrels until you graduate to Assembler.

      --
      Food not Bombs is a nice platitude but it breaks down when you notice that the Bombees are usually well fed
  213. BASIC a bad beginning. by Anonymous Coward · · Score: 0

    Am I the only one who felt that BASIC was the worst thing for teaching programming? That set me back quite a bit as a kid with the idiocy of line numbers and GOTO.

    1. Re:BASIC a bad beginning. by SharpFang · · Score: 1

      And the same thing set me quite a bit ahead when I started programming assembly language for microcontrollers. No if(){...}. No else(). No for(). Just GOTO (jmp), GOSUB (call), and conditional jumps IF A0 GOTO 2 (jnz). Yeah, Atari Basic allowed no "THEN" if the instruction was GOTO.

      --
      45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B2
  214. Never forget what BASIC stands for... by Rick+Genter · · Score: 2, Informative

    Beginner's

    All-purpose

    Symbolic

    Instruction

    Code

    Note the emphasis on Beginner's.

    Served me quite well in high school...<sigh/>

    --
    Don't underestimate the power of The Source
  215. Re:Dijkstra said it best ...not by diamondsw · · Score: 1

    Nevermind things like Dijkstra's algorithm, but I digress.

    Your example is a very good one. However, German and French are very closely related, whereas BASIC and other high-level languages are not. What I propose instead is to look at how difficult it is for native English speakers to speak Russian or Japanese fluently. Unless you had exposure to them early on in your language development or are a natural linguist, they are going to be extremely difficult and take years just to reach basic proficiency.

    Computer languages are similar. Basic encourages lack of planning, arbitrary code flows with no special layout, skanky hacks (only exceeded by C-style pointer arithmetic), and horrible scoping and variable naming. You have to first unlearn these bad habits before you can really appreciate the good habits of C and higher languages, not to mention the huge philisophical difference between statement, procedural, and object-oriented languages.

    I hate to say it, but if you are seriously defending BASIC, you are (as another post said) either ignorant of computer science and any concepts of software engineering or are extraordinarily set in your ways.

    --
    I don't know what kind of crack I was on, but I suspect it was decaf.
  216. Brings back memories: BASIC and Prince of Persia! by boy_afraid · · Score: 1

    Ahhhh, the good old days. It brings back memories or BASIC programming and playing the original Prince of Perisa in DOS on an IBM machine.

  217. the lowest, most degrading work known to man by Anonymous Coward · · Score: 0

    30 PRINT "the power of the period's computers, yet simple enough that even"
    40 PRINT "the school's janitors could use it."

    Ah, geez. I'm standing right here, sir.

    - Willy

  218. Am I underqualified? by ari_j · · Score: 1

    I don't understand the story - does this mean I'm not cut out for janitorial work?

  219. Sign the petition to make BASIC free! by Anonymous Coward · · Score: 1, Interesting

    I'm sure many of you remember messing around with QBASIC, the free version of QuickBASIC that was distributed with MS-DOS.

    There's currently a petition running online to get Microsoft to release all their BASIC compilers as freeware. Please help support the hobbyists by signing the petition! :)

    http://www.petitiononline.com/qbasicp/

  220. Office Max, Casio Basic Calc $5 by hiroshi912681 · · Score: 3, Interesting
    last week, Office Max had a sale on these Casio graphing calculators (usually about $80) for $5. I picked up one, naturally. I should've picked up more. You never know when you'll run into some problem that BASIC could easily solve. Unfortunately, I haven't figured out how to convert minutes to hours:minutes format with it... for the program I'm working on.

    When I vacationed in Canada a few years ago, I took my TI-83 to convert currency and measurements for me. But, I found an even bigger need during the trip... converting CDN$ per litre of "petrol" to USD per gallon of gas. Things made a lot more sense at the pump.

    1. Re:Office Max, Casio Basic Calc $5 by Anonymous Coward · · Score: 0

      You can divide whatever variable minutes is stored in by 60 and drop the remainder. It's been awhile since I did any kind of programming, especially with basic, but I would assume there is an equivalent to the int() command in C. Then you just modulus it by sixty to get the minutes. So if you have 139 minutes, you divide by 60 which gives you 2 and 19/60. Use equiv. of int(), now you have 2. Then you just mod the number by 60, which gives you 19. 2:19 minutes.

      Hope this helps.

    2. Re:Office Max, Casio Basic Calc $5 by hiroshi912681 · · Score: 1

      that's the problem, can't find the equivalent =(

    3. Re:Office Max, Casio Basic Calc $5 by WebMasterJoe · · Score: 1
      Unfortunately, I haven't figured out how to convert minutes to hours:minutes format with it...
      Quick and dirty, but it will get the job done (assume m=number of minutes):
      i=0
      n=m
      while (n > 60) {
      i++
      n -= 60
      }
      print i
      print ":"
      if (n < 10) { print "0" }
      print n
      I haven't used a TI programmable calculator in 8 years or so, but if you can convert my pseudo-syntax to the correct syntax, that will display it for you. Considering the processing limitations of these calculators, I'd recommend leaving the value in minutes and calling this proc when you need to display it...
      --
      I really hate signatures, but go to my website.
  221. BASIC served me well ... by muck1969 · · Score: 1

    I've still got my QBASIC 4.5 ... I think the last time I used it was in '96 to crank out a custom text-parsing executable for a 386 to plow through 2mb file.

    Ahhhhh .. good times, good times ...

    --
    m.mmm..myyy ... sssissxxxtthh bbboottle offf mmmmmoouunnnttain ddeeewww.. in thhe pppassst ffffif
  222. Re:Dijkstra said it best ...not by MythMoth · · Score: 2, Insightful

    Dijkstra was in a good position to be arrogant.

    He "did" as well as taught - you might like to read up on him a bit before putting your foot in your mouth.

    And, incidentally, good teachers are worth a thousand "arrogant" programmers who think they know better.

    D.

    --
    --- These are not words: wierd, genious, rediculous
  223. Unfortunately... by cr0sh · · Score: 2, Insightful
    ...you can only write your code on Windows and Mac, then cross-compile to Linux - there isn't a native Linux/X REALbasic environment available (yet - and I haven't seen any movement in that direction, either).

    I believe the lack of a good version of the BASIC language is what is holding back Linux in a small manner. Microsoft, by making it easy to customise their regular applications (via VBScript) and write new applications (via VB), allowed companies and individuals to quickly roll out software for both profit and fun. Until Linux has this ability, we will continue to be a second-level player in many circles.

    Fortunately, we do have a couple of languages that allow (after a sort) RAD software development - Perl, Python, and Tcl/Tk are all excellent languages for today's business application development. However, they lack the GUI IDE that has made VB what it is - the ability to rapidly slap together a form and some code behind controls, compile and run with a single click - and BAM! - an instant GUI application! Furthermore, none of these languages (ok, the exception would likely be Python) are as easy to learn as BASIC, and Python only wins out because it looks and feels a lot like BASIC in many respects.

    I just don't understand the hatred people have of BASIC - it's a language syntax, people! I have often wondered how hard it would be to make a simplified version of BASIC that could be easily parsed/converted by Perl to C, then compiled with gcc (basically, it would be C, but with a lot of BASIC "look" to it). GOTO's were banished a long, long time ago. BASIC could easily be object-oriented - it's just a syntax.

    Something makes me think people dislike BASIC because of the idea that it would make them less of programmers by using it (f'd up pyschology or something, I think) or knowing it. All it would do is make them faster programmers - as long as it compiles down to native, why not make the syntax of the language as simple as possible, provided it gets the job done. BASIC can do this!

    Finally, there are some "good" BASIC's out there for Linux - one is XBasic, the other is Blassic. XBasic is a form of BASIC that looks and acts like a cross between VB, C and QBasic - fairly fast, compiles to native, and open-source (GPL, I believe) to boot!

    Blassic is what could be called "classic BASIC" - fairly easy to port stuff from GWBASIC and some QBasic over to it. It is done pretty well (though the documentation could use some work/updating - I put out an update a long time ago while playing with it) - it is interpreted, but it runs very fast on today's systems, plus it has some extra features old BASICs didn't. Search for both of these with Google - I think you will be surprised at what is out there!

    --
    Reason is the Path to God - Anon
  224. If Not for BASIC... by reallocate · · Score: 2, Insightful

    ...the PC revolution would have been a lot less revolutionary, if it happened at all.

    The simple, limited, but comprehensible BASIC found in all those Apples, Commodores, Ataris, TI's, etc., showed people that even they could control a computer.

    BASIC is about putting ordinary people in charge of their computers, not corporations...or crusading free software elitists whose idea of "ordinary people" are 1982 MIT graduates.

    --
    -- Slashdot: When Public Access TV Says "No"
  225. Syntax Error by mnmn · · Score: 1

    I had an XT, which gave me a ROM BASIC error when you put in the wrong floppy disk, and people told me theres a BASIC interpreter in there somewhere in the BIOS.

    Did anyone ever get into the ROM BASIC?

    Much later there was the venerable GWBASIC on MSDOS 3.0 floppies. Gotta love those random colors, siren sounds and the predictibility!

    Now you build a simple println type visual basic program, it takes its while on a Pentium3 1GHz, and gives you the BSOD.

    --
    "Give orange me give eat orange me eat orange give me eat orange give me you." -Nim Chimpsky
    1. Re:Syntax Error by innocent_white_lamb · · Score: 1

      I had an XT, which gave me a ROM BASIC error when you put in the wrong floppy disk, and people told me theres a BASIC interpreter in there somewhere in the BIOS.

      Only on gen-yoo-wine IBM PC's. Clones didn't have ROM BASIC, but they still had the error message for "compatibility reasons".

      Did anyone ever get into the ROM BASIC?

      As I recall, IBM PC's came with ROM BASIC in ROM (naturally), and BASICA on floppy disk. BASICA had more features than ROM BASIC, hence "BASIC-Advanced".

      --
      If you're a zombie and you know it, bite your friend!
  226. GNU Basic by R.+M.+Stallman · · Score: 2, Informative

    I would like to draw Slashdot readers' attention to the GNU/Liberty Basic Compiler Collection as a free alternative to proprietary implementations.

    --
    You can read more about the GNU project at http://www.gnu.org/.
  227. Re:It is a poor musician who blames his instrument by anti-trojan · · Score: 1

    Did you know that Commodore 64 BASIC V2 was based on a dialect written by Microsoft.

  228. Re:Do you have SPACE WARP on TRS-80 I/II/III? by Chalupa · · Score: 1

    There was a game called Space Warp for the TRS-80 model I, II and III's in the early '80's.

    Dude, that game ruled.

    If it's out there, let me know where I could possibly get it.

    Chalupa

  229. That's nice, but by Anonymous Coward · · Score: 0

    40 years hence is a good time to kill it, burn it, and scatter the ashes to the four winds.

  230. 'tard by Anonymous Coward · · Score: 0

    #include <stdio.h>

    int main() {
    for (;;) {
    puts("ajs318 is a tard.");
    }
    return 0;
    }

    1. Re:'tard by Rysc · · Score: 1

      #include

      int main(void) {
      for (;;) {
      fputs(stdout,"My code is more flexible!\n");
      }
      return 0;
      }

      --
      I want my Cowboyneal
  231. There's no place like 127.0.0.1 by Kosher+Beef+Jerky · · Score: 0, Redundant

    10 PRINT Home 20 PRINT Sweet 30 GOTO 10

  232. Re:Lost in Translation by xtermin8 · · Score: 0

    Have you seen the Movie? Bill Murry does a commercial in Japan. The Japanese director give a long impassioned speech in Japanese with a lot of gesturing. A Japanese woman translates for Bill, "Please turn to the left." Its classic.

  233. Re:Dijkstra said it best ...not by Anonymous Coward · · Score: 0

    No one said anything about BASIC being an acceptable language, idiot. Only that exposure to it is not irreparably harmful.

  234. My First Language by MacBorg · · Score: 0

    ... was TrueBASIC. Wait, you meant real languages? PRINT "Rodent"

  235. 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.
    1. Re:Stupid computer trick... by CaptainTux · · Score: 1
      I used to do something similar:

      10 for x = 1 to 255
      20 sound 1, x
      30 next x

      I'm not sure about the syntax of line 20 anymore but it basically played an annoying beep that escalated in pitch until it wasn't really even audible anymore. I can't count the number of times I've pissed people off with that. LOL

      --
      Anthony Papillion
      Advanced Data Concepts, Inc.
      "Quality Custom Software and IT Services"
    2. Re:Stupid computer trick... by Nos9 · · Score: 1

      And I thought I was a dork for having an ancient Apple IIC compute Pi for about a month once (The were ancient computers abandoned downstairs in my High School, Noone even looked at the things so me and a friend decided to see how much of Pi it would be able to compute... now if only we had a printer hooked up to that baby ;) )

      On a scary note: I know of at least one large corporation that has a POS system programmed in QBasic to this day...

    3. Re:Stupid computer trick... by Nos9 · · Score: 1

      On that note the company would be Gamestop... Since they no longer see fit to employ me I am nolonger bound to not mention who they are, being unemployeed somehow makes me unafraid of them firing me.

  236. Windows NT, CMD + QBASIC by os2fan · · Score: 5, Interesting
    All versions of OS/2 and Windows NT/2K/XP ships with a copy of qbasic 1.0, while DOS 6, and windoze ME/9x ship with qbasic 1.1.

    All of these can be started as an editor, eg QBASIC / EDCOM

    On the other hand, only vers 1.1 can read the dos help file HELP.HLP.

    Amusingly, Windows understands what a QHELP file is, that if you click on a quickbasic help file, it says 'this is a DOS help file', whereas any other help file (eg 4dos.hlp), it says "unknown format".

    In any case, basic shipped with msdos, because in older times, computers had a rom-basic in their bios.

    GWBASIC is a standalone emulator for graphical workstations (ie workstations that replaced the rom-basic with video memory).

    BASIC in its raw form continues to affect the way that COMMAND.COM and CMD.EXE work. For example, if one does a test, and it is false, the rest of the line is skipped. In the sample below, we see two statements, separated by an &. If one makes the if statement, one gets neither command, while if the statement is true, both work.

    if "1"=="1" echo 1 & echo 2
    One can implement a die style command by this, or by replacing echo with set, pass a parameter to a subroutine.
    if (condition) echo something & goto :end
    In any case, it's dodgy.
    --
    OS/2 - because choice is a terrible thing to waste.
  237. How creepy by digitalgimpus · · Score: 1

    I'm only 20 years old.

    But the first time I ever learned to program anything was an original IBM PC (dual floppy drives and a monocrome display), using BASIC

    If I wanted to run serious software is was DOS 2.x.

    If I wanted something more modern (and eating up all the available memory), we had 3.x.

    And now, I'm still a student, but using PHP, mySQL, XUL, JS, C++, and many other acronyms.

  238. So, they are the guilty ones! by daem0n1x · · Score: 2, Insightful

    Because of those bastards, now I'm being forced to program in VB (sigh)!

  239. Imagine a world without MS BASIC by Anonymous Coward · · Score: 0

    No, Bill didn't create it. Sadly, they created something simple enough that Bill could implement it. We've all been suffering from that decision for a long time.

  240. Not the tape recorder's fault ... by x3ro · · Score: 1

    ... someone jogged the power cable! (Again!)

    Ahh the nostalgia ...

    --
    [ UNSIGNED NOT NULL ]
  241. Re:Do you have SPACE WARP on TRS-80 I/II/III? by AKAImBatman · · Score: 1

    What do I look like, your mother? Use Google!

    Here is the ROM:

    http://www.trs-80.com/trs80-3m.htm

    Here is the emulator:

    http://www.trs-80.com/trs80-e.htm

  242. From Futurama by schiefaw · · Score: 1

    10 HOME
    20 SWEET
    30 GOTO 10

    --
    Angleyne: You can't bend that girder - it's unbendable! Bender: Well I don't know anything about lifting, so that ju
    1. Re:From Futurama by dextremethorpheus · · Score: 1

      Also from futurama, there's an episode where bender goes to a robot church. Behind the altar is displayed something like:

      10 SIN
      20 GOTO HELL

  243. I am a janitor, you insensitive clod! by Anonymous Coward · · Score: 0

    Damn you Sludge Vohaul!

    Roger Wilco

  244. Oh yeah?!?! by ChiChiCuervo · · Score: 1

    Well my /. ID is four digits!!!

    Nyah!

  245. ?SN ERROR by TheGratefulNet · · Score: 1

    what?
    how?
    sorry.

    --

    --
    "It is now safe to switch off your computer."
    1. Re:?SN ERROR by SharpFang · · Score: 1

      What did the ?SN error come from? I remember it on Meritum...

      --
      45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B2
    2. Re:?SN ERROR by TheGratefulNet · · Score: 1

      TRS-80, level *two* basic.

      (syntax error)

      --

      --
      "It is now safe to switch off your computer."
  246. Emily Dickinson by Anonymous Coward · · Score: 0

    I had no time to hate, because
    by Emily Dickinson

    I had no time to hate, because
    The grave would hinder me,
    And life was not so ample I
    Could finish enmity.

    Nor had I time to love, but since
    Some industry must be,
    The little toil of love, I thought,
    Was large enough for me.

  247. 1001 Things by arunkv · · Score: 2, Interesting

    When I was playing around with BASIC a long time ago, besides the details GWBASIC manuals from Microsoft, the other book that I really enjoyed was 1001 Things To Do With Your IBM PC. That book described so many things that could be done with BASIC. Best of all, it was not a listing of complete programs but rather tools and program snippets combined with ideas for building cool programs.

  248. Re:Dijkstra said it best ...not by William+G.+Davis · · Score: 1

    Yeah, and if you read up on him, you'll find out that he made his contributions to the field in the 60's and 70's, and then shunned computers for the remainder of his life (he wouldn't let the University of Texas put one in his office, for example, and he never used email).

    Dijkstra was a mathematician, not a programmer. His whole concept of "structured" programming was not designed to foster readability or stability in software, it was to make software "provable" like some sort of mathematical equation.

    Dijkstra was brilliant, yes, but why on earth should people take as gospel what he or anyone else who hasn't written a practical, production-level piece of software in their entire lives have to say about good programming style?

    I really wish people would quote someone like Steve McConnell or Andrew Hunt the next time someone talks about software design, instead of some eccentric mathematician who loved pen and paper and despised the keyboard and mouse.

  249. Re:Did anyone try to write a Zork like game way ba by Sj0 · · Score: 1

    So......

    If it was a C interpeter instead of a BASIC interpeter, would you be saying the exact same thing? Probably moreso. :P

    --
    It's been a long time.
  250. Re:Dijkstra said it best ...not by Sj0 · · Score: 1

    Who in the what now?

    I'd say defaming BASIC as you are, that you are either ignorant of modern BASIC dialects or are extraordinarily stubborn about Cs superiority to all things ever...

    --
    It's been a long time.
  251. 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". :-/

  252. Re:10 PRINT "3-2-1 Contact Got Me Started with BAS by smallpaul · · Score: 1
    Then I learned Perl. Now I do websites. I've forgotten most of BASIC. I have been told this is a good thing. But sometimes (actually, lately, more and more) I have to deal with VBScript and I see "LEFT" and "MID" and I think "what the hell is this crap?"

    Don't you think that when you look at your Perl code?

    Sorry...cheap shot...couldn't resist.

  253. Just not true by walterbyrd · · Score: 2, Informative

    Compiled BASIC, with functions, procedures, case structures, record types, local variables, etc. has been around about 25 years.

    You can write a program in MS-BASIC that's as well structured as any other language.

    If done correctly, BASIC is a remarkably readable language. And just about any BASIC created in the last 20 years has the features of FORTRAN and COBOL.

  254. Re:Dijkstra said it best ...not by spruce · · Score: 1

    Well if the guy says you can't learn proper programming if you've learned basic, then he's categorically wrong on that point.

  255. Re:Dijkstra said it best ...not by spruce · · Score: 1

    I'd seriously defend VB.NET if you really wanted me to.

  256. Equivocate on this one by BlightThePower · · Score: 1
    I agree with you. But many people find BASIC easiest to start with. Now before you jump up and down and stress the superiority of Python (I agree anyway), I'd like you to bear something in mind. The most widely encountered programming language is not C. Its certainly not Python. Its VBA. Easily forgotten, because the average Slashdot reading professional/CS Major/SysAdmin does not tend to waste their time going on MS Excel courses. But a hell of a lot of people do.

    What I want to say is, by all means encourage "better" languages. But be damn careful you don't discourage the use of Basic if someone is happy with it. Exposure through macro programming could be the shakey foundation of confidence being built on. You could be killing the whole deal. That would be my definition of doing someone "no favours". Python is perhaps more desirable, but as I say, BASIC is better than nothing.

    --
    Plays violent online games as: Nerfherder76
  257. Re:Dijkstra said it best ...not by Anonymous Coward · · Score: 0

    French and Germane are closely related?
    WHAT!

    You must have meant English and German are closely related... Phonetically speaking at least! Many roots are common to both of these languages.

    French sure doesn't sound like English or German...
    True: German and French give genders to most objects , as opposed to English for which only neutral exists, but that's about where the similarities end.

    As for English vs French, English sure did borrow lot of word from French, transformed them and are now given back to French in another form.

    Think about barbecue as an example: it's an old French word which (literally) meant: "from the beard through to the ass" (barbe au cul), referring to the stick on which the animal (be it a pig, or whatever else) was impaled for cooking. English people couldn't pronounce it properly so they changed it to the spelling that is known today: barbecue.

    There's about as many similarities between French and German as there are between Ada and C: both of them are languages but their syntax, culture and philosophy differ... Greatly in both cases!

  258. Obligatory Futrama Reference by Lelon · · Score: 1

    10 print "Home"
    20 print "Sweet"
    30 goto 10

  259. Re:EdsgerDijkstra?Does not like it-Take the MONO-R by nitekrow · · Score: 1

    MOV AX, 0B800h
    MOV DS, AX
    MOV [52h], 'A'
    MOV [54h], 'S'
    MOV [56h], 'M'
    MOV [5Ah], 'R'
    MOV [5Ch], 'o'
    MOV [5Eh], 'c'
    MOV [60h], 'k'
    MOV [62h], 's'
    MOV [64h], '!'
    INT 20h

  260. Your C-sig is also not ANSI compliant by Ryan+Mallon · · Score: 1
    main should never, ever, even in signatures, return void. You also failed to include stdio.h, and you will most probably run out of stack space at some stage seeing as main is recursive and all. A more "l33t" signature would be:
    #include <stdio.h>
    int main() {
    printf("Jorkapp is a \"Programmer\"");
    return 0;
    }
    1. Re:Your C-sig is also not ANSI compliant by fatphil · · Score: 1

      Wrong. On non-hosted environments, it's perfectly valid for main to return void. Of course, 99.9% of people work with hosted environments, but those of us who code kernels for mobile phones _don't have an OS to return to_ on leaving main (and we don't ever even want to leave main), and therefore void main has been perfectly standard. Notice in the standard that they always says things like "[in|to] the hosted environment", which of course only applies to hosted environents.

      Of course, pedantically, almost anything, including BASIC, FORTRAN, and Pascal, is standards-conforming C. That's because the standard's definition of conforming programs is almost entirely meaningless.

      See numerous threads on comp.lang.c(.moderated) on the topic.

      FP.

      --
      Also FatPhil on SoylentNews, id 863
    2. Re:Your C-sig is also not ANSI compliant by BlackHawk-666 · · Score: 1
      But now you're returning an int indicating success without checking for errors on your printf. Tsk tsk, this will not do either.

      #include <stdio.h>
      int main() {
      return printf("Jorkapp is a \"Programmer\"");
      }

      --
      All those moments will be lost in time, like tears in rain.
    3. Re:Your C-sig is also not ANSI compliant by Anonymous Coward · · Score: 0
      You're all bloody wrong. On a hosted enviroment the only two possible portable values main() can return are EXIT_FAILURE or EXIT_SUCCESS

      #include <stdio.h>
      #include <stdlib.h>

      int main( int argc, char **argc )
      {
      return printf("You all suck\n") ? EXIT_FAILURE : EXIT_SUCCESS;
      }
  261. Ahhh Basic by CanadianCrackPot · · Score: 0

    I remember doing my first simple math calculating programs in basic. Then getting more serious in high school realizing I could use the language to help "check" my math work (I'm serious I only used it for checking....).

    Then came an attempt to recreate a pac-man like game. Very ugly code but it worked to an extent.

    Even today for very quick logic testing or Windoze scripting BASIC still holds a place dear to my heart/head being the first language I learned.

    Also to those who despise GOTO with a passion I was one of the few people in my Assembly language class capable of understanding an unconditional jump when it came time for the branch commands (and I proceeded to run circles around those poor pathetic fools).

    --
    Good programmers drink beer to relieve job stress.
    Great programmers drink hard liquor and work best hungover.
  262. BASIC Post 1999 by Anonymous Coward · · Score: 0

    I used to sit in a cubicle programming in BASIC and now I'm a janitor you insensitive clod!

  263. Too l33t for BASIC by Cruxus · · Score: 1

    I wish I could write some humorous BASIC code like the rest of you, but I was just too l33t for BASIC: I skipped right up to C++.

    #include <iostream>
    using namespace std; // Invokes the Unprotected Sex Library

    int main()
    {
    cout << "Hello, world!" << endl
    << "I\'m programming in C++, so that means I\'m l33ter" << endl
    << than you BASIC programmers out there!"
    << endl;
    return 0;
    }
    --
    On vit, on code et puis on meurt.
    1. Re:Too l33t for BASIC by Anonymous Coward · · Score: 0
      #include <iostream>
      #include <fstream>
      #include <string>
      #include <vector>
      using namespace std;

      class BASICProgrammer {
      public:
      BASICProgrammer() {}
      ~BASICProgrammer() {}

      protected:
      vector<string> java;
      };

      class CPlusPlusProgrammer : public BASICProgrammer {
      public:
      CPlusPlusProgrammer();
      ~CPlusPlusProgrammer();
      };

      CPlusPlusProgrammer ::CPlusPlusProgrammer() {
      java.push_back("public class JavaProgrammer {");
      java.push_back(" public static void main(String[] args) {");
      java.push_back(" System.out.println(\"This may come as a surprise to you.\");");
      java.push_back(" System.out.println(\"Many people who started with BASIC\");");
      java.push_back(" System.out.println(\"can write in almost any language.\");");
      java.push_back(" }\n}");
      }

      CPlusPlusProgrammer::~CPlusPlusProg rammer() {
      string file = "JavaProgrammer.java";
      ofstream out(file.data(), ios::noreplace);
      if (!out.is_open())
      system("java JavaProgrammer");
      else {
      for (int i = 0; i < java.size(); i++)
      out << java[i] << endl;
      system("javac JavaProgrammer.java");
      system("java JavaProgrammer");
      }
      }

      int main() {
      CPlusPlusProgrammer dude;
      return 0;
      }

      // psyphen
  264. Re:10 PRINT "3-2-1 Contact Got Me Started with BAS by Sigh+Phi · · Score: 1

    BASIC's text munging sux compared to Perl's, that's all I was saying.

  265. School Janitors by Anonymous Coward · · Score: 0

    I'm a school janitor, I read slashdot, I can program better than you can, and my wife is hot too.

  266. Python, Pascal, PHP, etc. - BASIC's not forgotten. by JoeCommodore · · Score: 1

    tThese and many of other modern "real" languages are very BASICish the syntax is generally the same. The main difference is the change in program structure over the years and more advanced features.

    --
    "Enjoy what you're doing! If it becomes drudgery, you're doing it wrong!" - Jim Butterfield
  267. Lets all sing! by Anonymous Coward · · Score: 0

    10 for a=1 to 2 do
    20 print "Happy Birthday To Me!"
    30 next a
    40 print "Happy Birthday Beginners All Purpose Instruction Language"
    50 print "Happy Birthday To Me!"
    60 end

  268. Re:It is a poor musician who blames his instrument by Anonymous Coward · · Score: 0

    From those very days, try BBC BASIC:

    LOCAL variable
    DEF PROCedure(formal_parameters)
    DEF FNctn(formal_parameters)
    ENDPROC
    FNctn(actual_pa rameters)
    PROCedure(actual_parameters)

  269. Basic should be banned! by Anonymous Coward · · Score: 0

    All variants of Basic should be banned. It just isn't code.

  270. Anyone who modded this overrated... by foreverdisillusioned · · Score: 1

    ...clearly doesn't know a thing about the Japanese language. :-p

  271. Muscular Indeed by PingPongBoy · · Score: 1

    Technique for programming in Basic: simulate Turing machine

    --
    Know your pads. One time pad: good for cryptography. Two timing pad: where to take your mistress.
  272. 16 years ago. by roman_mir · · Score: 1

    When I was 11-12, I learned to program in BASIC after reading an adventure book my grandma bought for me. I did not have a computer, so I wrote the games in a textbook (later retyped themn on a DVK (that was ripped of some British machine by the USSR).) The book was great, it started me coding, in it I had to solve short problems in order to continue the story (the story in itself was a very large algorythm.) Without solving the problems I could not continue the story but the story was interesting enough for me to want to continue reading it, so I learned to solve the problems on paper.

    BASIC is great because you do not need a computer to feel confident that you have gotten the program right, especially for a novice. I guess Assembly would have worked the same way, but it is more cryptic, so I am glad I learned it later.

  273. The BASIC of our age by kris · · Score: 2, Interesting

    The is the 21st century. The BASIC of our age is PHP.

    Many people are making their first ventures into the world of programming by renaming a .html file to .php and carefully inserting their first PHP tag into it. "Hello, world" often is or for many.

    Any not just young people - buy webspace, get PHP is the standard now over here, and why not try it, if it is so simple.

    Rasmus, Zeev and Andy, they really deserve much good karma for creating the language that made web programming accessible to so many.

  274. Compiler warning by ultrabot · · Score: 1

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

    Some compilers give a warning for not having a conditional expression as the clause. for (;;) never does.

    --
    Save your wrists today - switch to Dvorak
  275. Re:Actually, I learned structured programing in ba by Billly+Gates · · Score: 1

    It does support structured programing.

    Read my comment.

    However I admit using a goto to a line number is tempting. BUt I can also use goto's in C.

  276. Re:10 PRINT "3-2-1 Contact Got Me Started with BAS by karnat10 · · Score: 1

    But later, BASIC facilitated an (extremely sketchy) introduction to the Macintosh toolbox. MS-BASIC on the mac had built-in pseudo toolbox calls so that you could change fonts, draw graphics primitives and buttons.

    Did you know M$-QuickBASIC? I made my first Mac applications on it. Years later (after going through the hassle of coding scrollbars from scratch with C and the Mac Toolbox's Control Manager) I looked at that code again and found it very efficient. You could handle a lot of UI elements with only a few calls.

    Having got to know pointers (and so-called handles) in Pascal and C, I realized I had been using them in QuickBASIC without even remotely understanding the concept behind it. It was just "a variable containing an image" or whatever.

    Pointers started with a percent sign, handles with an ampersand.

    I wonder whether you could implement a Java Virtual Machine in BASIC? Probably yes. Would it be efficient? Probably no.

  277. You can get BASIC on the PS2 by slark · · Score: 1

    PS2s in PAL regions come with a demo disk that has, in addition to the playable and rollong demos, a port of YABASIC (Yet Another BASIC). Apparently this was because of a tax dodge in the UK, where computers are taxed at a lower rate than games consoles, but in order to classify the PS2 as a computer SCEE had to include a programming language with it.

  278. Re:Dijkstra said it best ...not by panurge · · Score: 1
    I didn't say Shaw was right, I was making a comment about arrogant academics and how they are perceived by non-academics.

    Dijkstra reminds me of my thermodynamics teacher, who used to make remarks like "you can't understand thermodynamics unless you begin with astrophysics." He was a Nobel prizewinner, but he was also a {censored because he's still alive and might conceivably read this}.

    --
    Panurge has posted for the last time. Thanks for the positive moderations.
  279. Re:It is a poor musician who blames his instrument by WWWWolf · · Score: 1

    Yeah, I knew. I recently heard Commodore wasn't very kind to companies it got tech from... they apparently had some moves that even Microsoft thinks are too evil to do =) (One story was that they purposefully didn't pay their bills, which lead to companies going bankrupt and Commodore then bought them cheap.)

    Of course, it's pretty lucky Microsoft isn't getting credit for the BASIC interpreter. I mean, those BASICs at the time that proudly displayed "(c) Microsoft" were really cool (think of Spectravideo or MSX). Commodore BASIC was crap in comparison.

    Until the late 1990s, I was under the impression Microsoft was doing good BASIC interpreters until I heard Commodore BASIC was of their doing =)

  280. Re:Python, Pascal, PHP, etc. - BASIC's not forgott by pe1chl · · Score: 1

    When you think that is true, you really have not seen any of the original BASIC.

    Sure, many derivatives of the language has been created and some of them resemble the languages you name, but the original BASIC structure and syntax was very different.

  281. Re:Dijkstra said it best ...not by luisdom · · Score: 1

    I regard Dijkstra's comment more as a fun phrase about something that is "basically" true: basic programmers are harder to teach in modern methodologies, they develop bad habits that have to be overcome. It's not that they are literally mentally crippled, but it takes longer for them to program "the correct way".
    The problem is that Dijkstra was one of the fathers of computing. Remember the algorithm after his name? Just a fun phrase and it becomes a quotation.

  282. Re:It is a poor musician who blames his instrument by uohcicds · · Score: 1

    But C64 BASIC was a Microsoft BASIC. Just not a very good one, that's all.

    --
    It's not you: I'm just this horrifically socially awkward with everybody.
  283. The Beatles of programming languages by Tirs · · Score: 1

    The Beatles meant a revolution to popular music in their time. Even when they disappeared long ago, their influences are still present in today music, and their records are still widely sold.

    Before modding me off-topic: do you catch the meaning?

    BTW: I still use, maintain and improve a Quick-BASIC 4.5 program I wrote nine years ago. The reason? Portability: each machine I work with has an MS-DOS emulator! Talk about "write once, run everywhere!" Oh, and it's faster than Java, too :-P

    --
    Strength, balance, courage and reason. If you know what's this about, contact me!
  284. What BASIC taught me by theonetruekeebler · · Score: 1
    I did my first "big" programming on an Atari 400 crammed out to 48K. The Atari BASIC only stored the first (I think) two characters of variable names; the rest was just wasted space. So when I was coding along, I would keep a table on a sheet of paper with all my variable declarations on it, along with some notes on the decimal representation of certain machine instructions (input as DATA instructions for the joystick driver). The main program got lines 1--9999 and subroutines started on 1K lines, again, kept in a table. Atari BASIC had nice renumbering, where you could renumber only certain sections of the code.

    REM statements were nice and terse, or nonexistant, again to save memory.

    All that notwithstanding, the very worst thing about BASIC was global variables. Even at the age of twelve, I knew that there was something wrong with being able to scribble any variable from anywhere in the program. So I learned to use the variables S0--S9 for "S"ubroutines and A0--A9 for "A"nywhere, "G" variables for graphics, that sort of thing.

    So here's what I learned: When I was first exposed to a "real" language (at 18 or so), I was thrilled to have local variables, and "named subroutines" (as I thought of functions at the time). No longer could one part of a program smash another part (at least, not until I started using C). No longer would I have to keep a big table of variable names and line numbers to keep my program organized. No longer would I have to renumber everytime I inserted a line of code. No longer would I have to keep careful track which variable was unused at a given moment---if I couldn't use it, it wasn't in scope.

    Oh, what a happy boy I was. I learned how to be pathalogically organized in my code. I learned, well, the BASICs. Nothing like a few years on a Schwinn Pixie to make a boy appreciate a new five speed---I learned the basics of riding, but now I could really fly. Structured programming (and later, OOP) rocked. And a few years ago when I had to do some assembly language programming for a project, the careful habits I picked up in BASIC served me well. So that's what I learned from BASIC: to appreciate the power and organizational abilities of a real language. I still hate C++, but that's another story.

    --
    This is not my sandwich.
    1. Re:What BASIC taught me by theonetruekeebler · · Score: 1
      Oh---BASIC did teach me some bad habits that took a while to unlearn. For a few years, I was still:
      • Was stingy with the comments,
      • Kept variable names unnecessarily short,
      • Didn't trust the computer to get it right for me (not letting the compiler do its job),
      • Assumed I was in an incredibly cramped environment,
      • Assumed I had the whole damned machine to myself (busy-waits, things like that),
      • Wanted to PEEK and POKE,
      • Assumed that code that was easy for the computer to deal with was more important than code that was easy for a programmer to deal with,
      • Optimized the crap out of everything.

      Books like Code Complete and Writing Solid Codee really helped me along in this respect, but for a while, before I started trusting the computer to do some of the work, things were pretty ugly.

      --
      This is not my sandwich.
  285. Short Ninnle Program by Anonymous Coward · · Score: 0

    10 FOR I = 1 TO 8
    20 PRINT "NINNLE";
    30 NEXT I
    40 PRINT "BATMAN!!"
    50 END

  286. ENTER Magazine by UsonianAutomatic · · Score: 1

    That 'BASIC Training' section was the last, sad remnant of a standalone CTW magazine called 'ENTER', which was sort of like a 'Wired for Kids' publication with a much larger programming section than the 3-2-1 Contact 'BASIC Training'. Lots of great computer-related articles, and each month they would publish cool programs submitted by other kids. I always wished I was l337 enough to get one of my BASIC masterpieces in there.

    I still remember how sad/betrayed I felt when I read that last issue of ENTER, in which they announced that they were going to cram the entire magazine into about 3 pages of 3-2-1 Contact. ::sigh:: I still have all of my copies of ENTER kicking around somewhere (Remember the one with Sting on the cover, when Dune was coming out in the theater?), but there seems to be a surprising dearth of ENTER fan pages online.

  287. But in Perl... by gosand · · Score: 1
    In perl it would probably look like:

    @#(*&>>@#*()& At least that is what perl looks like to me.

    --

    My beliefs do not require that you agree with them.

    1. Re:But in Perl... by Anonymous Coward · · Score: 0

      sorry to disappoint you.

      while(1){ print "Jorkapp is a Programmer" }

      Of course we COULD do this the )*&^*)!@^$)!^ way. There is always more than one way to do it!

  288. COMPLETELY OT by stanmann · · Score: 1

    How did that work out for you, I've heard them(Landmark Forum) reviled as a cult and acclaimed as the next best thing since seven habits.

    --
    Food not Bombs is a nice platitude but it breaks down when you notice that the Bombees are usually well fed
    1. Re:COMPLETELY OT by darkonc · · Score: 1
      I'd be inclined to go with the later (although I was extremely sceptical when I went in -- I was actually going on the presumption that they were a cult (due to a key misunderstanding on my part), I was trying to get enough information to get my mom 'out'. Needless to say, I've changed my mind -- bigtime.
      That was more than 10 years ago. I still think it's great, and would encourage people to take it (at the very least, go to an intro session. They're 3 hours, free, and most people get value out of them...
      One of cousin kept going to the intro sessions but he never signed up. One time I invited him to another intro session, and he was "yeah... I think it's time to go to another one". I was like "hunh??". Turns out he was getting enough value out of the intro sessions, that he didn't see the need to actually sign up. I suggested that, if he was getting that much out of 3 hours, how much would he get out of the whole weekend?

      On the sunday of the course, he was like: "How come you didn't make me sign up sooner?"

      The vast majority of people who actually take (and complete) the course find it very worthwhile. About the worst review I'v gotten was "It's the best thing I've ever done in my life, but I'm not going to do it again". Since the crux of the course is in the last few hours, people who leave in the middle, may be a bit wierded out about the purpose of the whole thing.
      Bottom line, I'd say 'do it'. If you haven't been to an intro, at least go to one, then decide for yourself. If you have any more questions, I'm thinking a private email might be a bit better (( bcgreen.com!spamuel , if you understand the old usenet email protocol )), but either location's fine with me.

      --
      Sometimes boldness is in fashion. Sometimes only the brave will be bold.
    2. Re:COMPLETELY OT by darkonc · · Score: 1

      Even better yet, I've posted my previous reply as a journal entry so we can take this conversation out of the public thread.

      --
      Sometimes boldness is in fashion. Sometimes only the brave will be bold.
  289. Programming by non-programmers by Hognoxious · · Score: 0
    ... an unprecedented system that would give their entire school - from the faculty to the food service staff - simultaneous access to a computer.
    Didn't some old bat invent a programming language with the intention that even managers and accountants could program.
    Now that was a good idea, wasn't it?
    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  290. my first lesson to any student. by LifesABeach · · Score: 0

    "using the 'print', 'let', 'if/then', 'goto', and 'input' statements you can create ANY program."

    for me, this is the difference between software engineering and anything else.

    1. Re:my first lesson to any student. by Anonymous Coward · · Score: 0

      Phew, I beat you. 'usr' and 'adr'.
      10 a=usr(adr("608^T FG*^@#)p}$M@&)()@!HBF#(!!*_$Y!_*$*(H!$))*^&BF)!#&Y $*)!"))
      Yeah, Atari Basic allowed to enter a printable character for each of 256 values. It looked much more interesting with "inverse video", pieces of frames, lines, balls, hearts, clubs, arrows and all that stuff.

  291. I remember! Lianne was a fun game... by PigeonGB · · Score: 1

    This is Gianfranco from GBGames. I haven't actually updated my website in a long time, but I reviewed Lianne at one point.

    If you check out http://www.hulla-balloo.com/vplanet and http://www.qbasicnews.com you can see that there is still plenty of active development in QB.

    Ah, the good ol' days...

    --
    I have 3656.9 Bogomips. How many Bogomips do you have?
  292. Re:Dijkstra said it best ...not by fnc · · Score: 1

    Dijkstra is in the category of people that can DO and TEACH. He created the first Operating System using multiprogramming techniques called THE and its architecture based in layers was copied by every other OS since then (like UNIX). The article that presented it also introduced semaphores. P.S. in "How do we tell truths that might hurt?" (http://www.cs.virginia.edu/~evans/cs655/readings/ ewd498.html), BASIC doesnt seens to receives worse treatment than PL/I, COBOL or APL.

  293. Let me try being stupid. by Rick+BigNail · · Score: 1


    while (notdoneA) {
    while (notdoneB} {
    ...
    while (notdoneZ) {
    ...
    }}}...