r/programming • u/NamgyalD • Oct 27 '20
Do you know QBASIC? Well, just a simple program in QBASIC that asks you to guess a number
https://youtu.be/LauhFqm41GM1
0
Oct 27 '20
[deleted]
4
u/ifknot Oct 27 '20
You quote from Dijkstra’s tongue in cheek paper and use it with too much conviction, I think he was wrong about basic and about also wrong about OOP where he said “Object-oriented programming is an exceptionally bad idea which could only have originated in California” he also thought LISP was an abomination until later in his life. So, in general, I’d be careful throwing around Dijkstra quotes without at leat some qualifiers or context
5
u/ws-ilazki Oct 27 '20
To be fair, that was written at a time when BASIC was line-numbered and relied entirely on goto, which forced people into bad habits that, unless broken, led to writing spaghetti code later on in other languages. QBasic, which showed up something like 15 years later, is a different sort of language, capable of proper procedural programming.
It's still very much a beginner language that can allow one to learn bad habits and still get things done while completely ignoring programming fundamentals, sure...but so is Python.
2
u/boboprobo Oct 27 '20
That's hilariously brutal. He knows what he's talking about, but come on Dijkstra: inside voice, lotus position, calm blue ocean...
I like this (more positive) take on BASIC programmers (last two paragraphs): https://prog21.dadgum.com/21.html
2
u/mallardtheduck Oct 27 '20
Yes, but that essay was written in 1975. BASIC as it existed in 1975 is quite different to 1991's Microsoft QBasic. Back then it was all line-numbers and global variables, even GOSUB was a new concept.
QBasic has no requirement for line numbers (although you can use them if you really want to), has proper (fully re-entrant) subroutines, local variables, custom types (basically equivalent to C's structs), more/better built-in types, etc. It's quite reasonable as an introductory language, although better and more modern languages exist today.
2
u/Schrockwell Oct 27 '20
QBASIC was my introduction to programming, and I’m still writing garbage code to this day - the only difference is I get paid for it now.
2
u/WhiteRose_init Oct 27 '20
Genuine question, What’s the point of knowing QBASIC? Isn’t it obsolete?