Category talk:Programming language:BASIC

From LiteratePrograms
Jump to: navigation, search

[edit] Name

The code in this category seems to be for the QBASIC dialect, which is different from traditional BASIC in that it doesn't require line numbers. Maybe these should be in Category:Programming Language:QBASIC and named like this: "Article name (QBASIC)". If I click on a link mentioning BASIC, I expect lots of line numbers and gotos... Ahy1 01:59, 13 August 2006 (PDT)

Well, BASIC has moved on a bit since the 1960s. Line numbers and GOTOs haven't been necessary for a while but if you really want them I could add them. QBASIC accepts them quite happily. I could even replace the DO/LOOPs and IF/ENDIFs with GOTOs and the SELECT CASEs with ON x GOTOs, if there's enough demand, <grin>.
The reason that I used the QBASIC dialect is that it's the one that I'm most familiar with and can be compiled by the FreeBASIC compiler. It's also highly compatible with later dialects such as VB, VBscript, etcetera. I suppose that from a compatibility point of view it might be better to avoid a relatively modern BASIC and go for some prehistoric version but the majority of present-day working programmers using BASIC are far more likely to be using a dialect similar to QBASIC than one similar to GW-BASIC or C64 BASIC. -- Derek Ross | Talk 10:09, 13 August 2006 (PDT)
Maybe I am just stuck in the stone age (not the 60s but early 80s). It isn't a big deal, but it just looks to me like two different languages. Maybe we should have Category:Programming language:QBASIC and Category:Programming language:Classic BASIC as sub-categories under Category:Programming language:BASIC. That is how it is done in Category:Programming language:Shell script, where there are sub-categories for bash, csh and the "stone age" bourne shell.
I didn't mean to suggest adding line numbers to your code. The code looks nice as it is, and adding line numbers, gotos etc. would probably make a mess out of it. Ahy1 10:34, 13 August 2006 (PDT)
Fair enough. I'll make a couple of sub-categories as you suggest. However if you don't mind I'll name them Category:Programming language:Modern BASIC and Category:Programming language:Classic BASIC since, although the code is QBASIC, it is very similar to other modern ANSI-like BASICs such as TrueBASIC, PowerBASIC, Visual BASIC and so on. -- Derek Ross | Talk 12:00, 13 August 2006 (PDT)
"Modern BASIC" looks like a good name. Ahy1 12:16, 13 August 2006 (PDT)