by userbinator · 4y ago · 0 comments
It might be easier to learn, but it's harder than ever to actually do something useful with those "toy" environments. Back then, the "mainstream" computer magazines were full of source code listings, often even in Asm, for utilities that did various useful things. They created binaries in the <1k size range, with a lot of them being below 100 bytes. There was a continuum from "computer illiterate" to "master developer", with "average user" and "power user" sitting somewhere between. Now you have to fight your way through layers of "security" to even start to do something useful, and on some platforms, it's nearly impossible.
IMHO corporate interests are to blame for this gradual closing-off, because they don't want users to discover that some things they profit from are in fact extremely easy to do. There's been a bunch of articles here and elsewhere about the "war on general-purpose computing" which really started being noticeable in the late 2000s/early 2010s.
I have to laugh at these conspiracy theories.
The real reason is the operating systems no longer come with a BASIC prompt. This is true for Windows, OSX, and that corporate Linux product.
If every operating system, including phones, came with an icon that opened to a BASIC prompt, I bet you'd see an explosion of programming competence especially among young people.
I’ve never used BASIC, but is it really so much more approachable/productive than python? With python’s batteries included philosophy, I’d expect it to be pretty quick for beginners. The only sticking point I can think of is GUIs
Productive? Not really sure about this. But obviously Python has a nice standard library and package manager which help you install 3rd party libs easily. Not idea which modern BASIC environment which provides that. If you want to handle various networking, GUI, database etc stuffs then probably Python is easier.
While you technically can write a Python program in Microsoft's terrible terminal window, such a program is a very distant second class citizen in the Windows ecosystem. This adds to the friction the poster above is referring to.
> 10 print "Bow before the Mighty Walter, scum!"
> 20 goto 10
> run $ python
>>> while True:
... print("Help, I'm trapped in a loop!")
There's a little bit more punctuation (>>> and ... don't count) but you don't have to fuss with line numbers.These days, when someone I know is interested in learning some computer programming, I tell them to get a copy of Introduction to Computer Science Using Python by Dierbach. My own intro programming books are horribly outdated at this point, but I happen to have a copy of Dierbach's book, and I think it is pretty nice. You start up by firing up the Python REPL on your computer, and from there it talks about how computers work.
IMO, this is an easier way to start computer programming than we ever had with BASIC. The barrier to entry is as low as it ever was, the languages are a lot nicer and you can definitely get real work done with Python, and over the years we've gotten more textbooks & better textbooks.
Honestly, the real friction here is that you have to open up a terminal window and type "python". Or if you are interested in JavaScript, you have to press Ctrl+Shift+I or some other combo to bring up a REPL in whatever browser window is already open. It's not friction, it's just a little obfuscation--give someone a computer and they probably won't discover Python or JavaScript just by playing around with it, but if you give someone an Apple II, they're going to run head-first into BASIC.
Well, there are certainly a lot of closed platforms. But arguably it started a long time ago with games consoles.
It's hard to define 'useful,' but I'd argue that you can make useful things in Scratch. My first language was Scratch, which I learned 14 or so years ago. Although I only stuck with it for a couple years before moving onto Python (then Scheme, then C, then OCaml), Scratch was very formative in my development as a programmer, and there are a ton of 'useful' things you can do within Scratch itself.
I grew out of Scratch after writing a 3d rendering engine for a platformer, and a neural network that played a racing game (NEAT). Both of things are fun, and I'd argue to some extent, useful, if not only to others who are learning. It was at this point that I was recommended a book on Python and, well, the rest is history.
I realize that, for some tasks, like systems programming, Scratch would be absolutely counterproductive. (though I recently recall seeing a post about writing a Linux kernel module using the language.) Nevertheless, that doesn't mean that you can't do useful things using the language. Having later developed games in C from scratch (ha!), just trying to replicate a fairly basic Scratch program with sounds and sprites and movement requires a good working knowledge of how to type, C and its compiler, SDL and related libraries, memory management, maybe how to embed Lua for scripting, etc.
None of these things are hard, per se, and I do agree that you have to jump through a number of layers of "security" to do modern development work on most platforms, but one has to admit that the environment that Scratch provides is powerful enough to create useful things, that require a non-trivial amount of work to replicate elsewhere.
- The old "toy" environments like BASIC, back then, were not very powerful.
- The kind of thing that you would get from a 1k binary is something that nowadays you get for free with the OS. The bar for "useful" is much higher.
- There are still tons of people in the range between "computer illiterate" and "master programmer" who are doing interesting things by writing code. It's not a jump from, say, Scratch to JavaScript. You have Excel, R, Julia, Matlab, SQL, etc. There have been tons of other environments over the years like FileMaker, MS Access, Flash, Director, etc. Some of these are still around, others have evolved and been replaced. It's also relatively easy to make a basic website with Django or Rails, or write a plugin for Drupal or Wordpress, because you have some need.
It's easy to respond and say something like, "Flash is dead." Yes, there's no direct replacement for Flash, but in general, new tools are appearing at a much faster rate than old tools are disappearing. Even though there's no direct replacement for Flash, there are a bunch of approximate replacements that may serve your needs.
> Now you have to fight your way through layers of "security" to even start to do something useful, and on some platforms, it's nearly impossible.
I would love to see a walkthrough where you go headfirst into one of these layers of security that's causing you problems.
My guess is that you are working with a preconception that a "useful" something-or-other is an executable script or program. My claim is that something useful might be a Jupyter notebook, a Wordpress plugin, or a SQL query.
I'll also say this--I've met plenty of high school students who seem to be just fine making games using something like Unity, Godot, RPG Maker, Game Maker Studio, etc. As far as I can tell, the #1 hardest part of this whole process is connecting people with the right tools and resources. The problem is not that those tools and resources don't exist or have gotten worse. They've gotten a lot better! They just don't ship with your computer any more, so there's a process of discovery, which has a big impact.