5 ms·
Soapbox time! Basic has a bad rep almost everywhere in the industry because it is interpreted (yes there are compiled variants), case-insensitive, optional bra
by bjourne 13y ago
Soapbox time!
Basic has a bad rep almost everywhere in the industry because it is interpreted (yes there are compiled variants), case-insensitive, optional brackets and doesn't lend itself to structured programming very well. But ask any talented developer in his 30-40:s (yes we were almost all men!) how he got started? Basic! QBasic, Commodore Basic, Amiga Basic (and Amos) etc.
Here is how you put a white pixel on the center of the screen in qbasic:
SCREEN 13h
PUTPIXEL 160, 100, 15
That's how easy it was and what got me hooked and I still remember it by heart over 20 years later. I feel sorry for the kids starting out today with Java, C# even Python and Ruby requires more knowledge to get stuff done than what qbasic did. And you have to know about them and their packages, while qbasic came with everything you needed preinstalled with the computer. Computer programming is unquestionably much less beginner friendly today than it was two decades ago.
And no, Javascript isn't the answer.
- dragonbonheur 13y agoDoes QBASIC really have a putpixel command or the pset and preset ones? You're right about everything else.
- bjourne 13y agoNope I goofed. It should be PSET not PUTPIXEL. And SCREEN 13 or SCREEN 10h, not SCREEN 13h.
- higherpurpose 13y agoWhat's your opinion on Scratch or similar kid-friendly languages?
- dragonbonheur 13y agoNo full screen - full resolution applications. As if MIT never thought beyond 320x200.
- higherpurpose 13y agoOk, but I didn't mean Scratch per se, rather the style of Scratch, and if it's useful for learning. MIT has taken over Google's App Inventor for example, and there are others like that. http://appinventor.mit.edu/explore/ http://appinventor.mit.edu/explore/
- orbifold 13y agoThey take kid friendly too far. I was maybe 6-7 when I first encountered QBasic. The key thing was that the documentation could be accessed from the editor. It was comprehensive enough, with plenty of examples, that I could write simple silly graphical and midi audio programs with ease, in addition to text based adventures. I think the closest spiritual successor would be Python. I still remember it as one of the most user friendly environments by far.
- aswanson 13y agoIm of that age, and basic was a bane to my early development. It gives a simplistic, underwhelming view of computing to early users; I walked away from my c64 after going through all the examples wondering why grownups were making such a big deal about a weak, simple tool.
- jballanc 13y agoAgree completely... I think _why said it best with his "Little Coder's Predicament": http://viewsourcecode.org/why/hacking/theLittleCodersPredicament.html http://viewsourcecode.org/why/hacking/theLittleCodersPredica...
- scarecrowbob 13y agoI'm a developer (probably not talented, but whatever :D ) in my 30s-40s and yup, Commodore basic, Logo, then qbasic and others... can you elaborate on why Javascript is not the "answer"? I know that you don't generally have access to the whole machine like we do with something like Commodore basic, but at the same time it has a very low barrier to doing stuff and has a console in most browsers... at least to me it seems like a reasonable comparison.
- bjourne 13y agoIm not a tutor so I don't know. But I wager that Javascript's event-based execution model is very cryptic in comparisons with Basic's simple "do this, then that, then something more." And you need to use lambda functions, need to place semi-colons in the right places etc. And to even put a pixel on the screen (vertically centered!) you need to know a fair bit of both js, css and html. And that's just the language. QBasic was available pre-installed on all pc:s, came with syntax highlighting, context sensitive editing, and a very good help system. If you pressed F1 on any Basic command it would show you complete help for it along with a full example. The good examples was important because I was using QBasic before I was good at English.
- segmondy 13y agoI started with BASIC, I hated it, It was slow as shit. I wanted to make real graphics video games. 1 month into BASIC and I realized it wasn't the solution. I immediately started searching for alternatives, I found pascal and C. I choose C. I feel envious of kids starting out with Python today, they don't require any more knowledge, they can get more done than we ever could back then. They have endless amounts of libraries. Languages they are more stable than say C and faster than BASIC. They have it really really good. When I found BASIC I was in 11th grade. Now if we are trying to teach programming to 5th graders. Perhaps I will agree with you.
- agentultra 13y agoAmiga 500. I really enjoyed PEEK/POKE and the whole experience in general. There hasn't been anything in my life quite like BASIC since. A friend of mine has been volunteering to teach kids using Javascript. He doesn't have much good to say about it. I think the control constructs and syntax were the hardest part iirc. 10 PRINT "HELLO" 20 GOTO 10 Is conceptually easier to understand than: for(;;) { console.log("HELLO"); } Actually don't type that into your Firefox if that's what you use. It'll just crash. I'm not even sure what Javascript does for looping but I'm sure it's weird. Things have improved since then but the experience of programming has become something programmers do. There was a paucity of software back then and from my rose-tinted, 20-20 hindsight I think I only started programming when I was a kid because that was what you did with a computer. There wasn't a distinction or any special software to install. It's hard to explain.
- zem 13y agothat's something i think about a lot, and would love to find a good solution for. pasting in a post i made to the pyret list once, on the difference between the BASIC model and the current event-loop-based GUI canvas: From an imperative programming point of view, it does "leak" the fact that the universe is running at toplevel and pulling updates from your program, rather than sitting there passively and being written to. I was thinking of things more in terms of where a canvas lies on gui/output stream split - an imperative program can simply emit text, audio, network packets, etc, and trust that there is a universe out there to act on them, and of course if you have a gui you know that there are reactive components with two-way interactions that you have to monitor in some sort of event loop. But despite being conceptually one-way, a graphics canvas needs to run in an update loop more akin to a gui than to an output stream. I miss the days of single-application computing where the running application could say "print 'hello world'" and hello world would appear at the text cursor, or "line 0, 0, 100, 100" and a line would appear on the display in an entirely analogous manner. It made graphics something you just did, rather than having to structure your program around. On the positive side, the big bang model works out a lot better for games, sprite-based stuff, and anything that wants live objects on a vector canvas. The microcomputer model was nice in its day but I guess it doesn't really reflect the way computers work any more :)
- fit2rule 13y ago>>And no, Javascript isn't the answer. You're right! Lua is the answer. And so is LuaJIT! :)
- the_watcher 13y agoIsn't a big reason why so many people your age got started with BASIC that there were relatively widely available devices and programs that you could program in BASIC on? I first saw BASIC used on a graphing calculator, and it was something you could mess with in class when bored. Now that laptops are reasonably ubiquitous, it will be interesting to see how early those who would have started with BASIC get into higher level languages.