Letters posted here are associated with the following Salon Premium Member:

Detroit's Black Helicopter

Published Letters: 1
Editor's Choice: 1

Wednesday, September 13, 2006 11:59 PM
Original article: Why Johnny can't code

BASIC *is* part of Windows -- it's called VBScript!

I can't say I agree that modern systems don't come with BASIC. Windows machines (the vast majority of machines for home users) since Windows 2000 have all come with the modern version of BASIC, VBScript. If you don't believe me, just create a vbscript file and run it:

1. Launch cmd.exe from the start menu (start / run)

2. execute notepad.exe from the cmd

3. In notepad, type the following BASIC code:

for i=0 to 10

wscript.echo i

next

4. Save the file through save as, name it something like forloop.vbs

5. In the cmd, type

cscript forloop.vbs

Result: the BASIC code (actually vbscript, but very similar) will print out the same results a 1980's BASIC programmer would expect -- all the integers from 0 to 10 inclusive will be displayed.

I agree that the friendly environment of qbasic that used to exist in win9x / nt4 is gone, but the halcyon days of TRS-80's recalled by the article did not include such a supportive environment either.

Otherwise, the status quo is much better than before. Consider:

1. Vbscript supports not just the command line, but can be used from within a web browser to do much more interesting things such as accessing more complex controls / graphics / web sites.

2. Vbscript supports object-oriented features -- good for teaching people more productive ways to create useful software.

3. The docs for vbscript far surpass what was available for old BASICs -- that's because the entire Internet is at your disposal, starting with www.msdn.microsoft.com and continuing on to countless reference / informational sites. Vbscript is used in web pages as well, so someone can get sample code from working live web sites.

4. Once you learn vbscript, you can learn jscript, a somewhat better language that is a good stepping stone to "real" languages like C++, C#, Java.

Is there a reason the article omits this? Does the article assume some substantial difference between the old BASICs and the much more powerful VBScript and its related languages?

In my opinion the presence of vbscript and other scripting languages in the default installation of the most popular operating system invalidates the premise of the article, but maybe I'm missing something. :)

And btw, I didn't mention the fact that the powerful standard Unix shell is installed on all versions of Mac OS X for the remainder of folks who use a Mac at home.

Most Active Letters Threads

468

The crazy, irrational beliefs of Muslims

Tom Friedman explains the real problem: stupid Muslims think the U.S. is about war and aggression.
426

A key British official reminds us of the forgotten anthrax attack

A vast array of establishment and expert sources do not believe this episode was really resolved.
210

Is Obama's civil liberties record understandable?

Was it unreasonable to expect him to adhere to his commitments regarding the Constitution?
150

The face of rotted Washington

Evan Bayh demands more debt-financed war - fought by others - while boasting that he's a stern "deficit hawk."
111

How dare you criticize wasteful defense spending!

So you think it's only terrorist-appeasing lefties who are down on Pentagon profligacy? Think again

View all »

Letters Help

Currently in Salon