Why Johnny Can't Code
GoCanes writes "Salon has an article named 'Why Johnny Can't Code,' an interesting examination of the dearth of line programming languages available today. At first I wanted to read this and say aha, here's a simple line oriented language that's available through open source, but after reading the article I couldn't find any. And being an old fart, I remember the days spent with edlin and basic."
Please provide a URL that does not require signing up to crap.
``At first I wanted to read this and say aha, here's a simple line oriented language''
Why line-oriented?
Please correct me if I got my facts wrong.
There's a very easy solution to this. Install a classic machine emulator on your PC. Something like a C64 emulator would work fine.
GreyPoopon
--
Why is it I can write insightful comments but can't come up with a clever signature?
Check out this interesting blog by Peter Cooper, where he suggests a Ruby environment fors kids:
Taking Ruby to the kids
Mark Kretschmann - Amarok Developer, KDE Member
When I was in college, we started off learning different assemblers (PC and Mainframe), then we moved to C and C++. The same college, now starts teaching kids some RAD languages, Java, C# and whatnot. IMO, new students no longer learn the basis of the computer, how the CPU works, how compilers work and how interpreted code works.
One of my most memorable classes was the C++ class when the teacher started off by teaching how compilers actually compile your code. Directly from this you could easy see what code to write and what not to write. Those classes have been replaced by Java, where you don't even worry about resource leaks. Hey, garbage collector takes care of it!
To make good programmers, one has to understand the basis of it. Compilers, C and Assembler. If all they learn today, well mostly OOP stuff, they won't learn the basis well. And they will end up writing bloated code left and right.
"you wanna play with computers? program them first sonny."
... if you're handing them a new Dell box with a Cable modem and a XBOX360 or something.
Kids are fundamentally spoiled nowadays. They got a high speed computer, high speed net, digital cable, cell phones, spending money, etc.
When I was a kid [and damn I was a kid of the 80s/90s] I sure as hell didn't have half of that. My computer was a XT up until I was 11 or so then it was a 386/25 we scraped together from spare parts. We didn't have net access only local BBS stuff so for the most part we had to INVENT our own fun. That is, code stuff up, mess around with the box, etc.
If you want your kids to have similar adventures to what you had as a kid just don't spoil them rotten. Why on earth would your kid at age 10 want to sit through and learn themselves BASIC or C or Pascal or
You can save money and your children themselves if you just learn to say "No."
That and your kids will appreciate earning money later on in life so they CAN buy themselves toys and shit. Teach them the value of work [or at least looking like working...]
Tom
Someday, I'll have a real sig.
Games.
I didn't get hooked because I wanted to hack computers. I got hooked on old games (like Colossal Caves). When I finished all the games, I decided to write one, and learned BASIC. Today, you never finish the games. They just get better and better. There's no way I would have spent all that time hacking if the games available today were around back then.
Beer is proof that God loves us, and wants us to be happy.
I don't think it's because the barrier to entry is too high, rather the barrier to do something cool is in the stratosphere. Think about it - back in the 80's when you first started playing around with code creating your own version of pong was pretty dam cool. Actually even getting the machine to draw a few boxes on the screen in different colours was cool. True there was a learning curve and it was quite steep if you'd never coded before, but it wasn't that far from bottom to top.
Nowdays cool is Half-Life 2 type graphics. And I suppose the nearest to drawing a few boxes on the screen is coding DirectX/OpenGL shaders to do cool things on a few objects. The learning curve is still as steep, but think of all the stuff you need to know before getting something interesting done - it's a much longer way from bottom to top and you consequently need more determination to get there.
I think you'll now find many of the kids who would have previously cut code now working on mods for games. Maybe that will sprout creativity in a way that the article suggests, but it is difficult to see what.
None of the language you listed is as easy as the old BASIC, which you could access directly from the command line on most computers.
Nowadays most languages requires downloads (java, php), installation procedures (java, php, visual basic), having to learn development tools as well as the language itself (visual basic), a compiler (C, visual basic, java) and whatnots...
Those that don't require complex set-ups require the knowledge of another language to work properly (vbscript, javascript require HTML/CSS knowledge).
Other even need a server set-up properly before you can use them (PHP, ASP).
Even something like Python needs additional package set-up. Python documentation is also not the easiest to find (beginner books and easy tutorials are rare).
Not just kids - article writers too.
"Dearth of line programming languages" my arse. Last I looked, almost every programming language is composed of lines of source code that you can write in a plain ascii editor. What the author is complaining about (without understanding it) is CODING IDEs replacing typing in your complete file as plain source code.
c, c++, java, perl, python, php, pascal, javascript, whatever - you can write all your source the old way - line-by-line, and most of us do. Heck, even Delphi, one of the better IDEs, doesn't require the IDE environment if you really want to go the type-in-all-the-source route. Last I looked, both c/c++ and java were available for free for all the major platforms.
In other words, the original article itself was a "nothing to see here" filler by someone who needed to write *something* before deadline. Sheesh!
This is due to industry pressure, companies don't want to hire people who understand the compilers, they want people who know C++, C, Java, SQL, PHP... so colleges to keep their job placement numbers have decided to modify curiculums to match... so very sad, I wish i had learned about compiler design and cool stuff like that in college...
How about scripting? It isn't as powerful as the current popular languages, but perhaps nearly as powerful as BASIC. You can certainly get a hell of a lot done that way, and it's trivially easy to get started. Anything you can type on the command-line, you can put into a simple text file, and run it.
.cmd files run everywhere, which include many of the features BAT files lack...
DOS batch files are pretty limited, but there have always been DOS programs to help extend them, and now that Windows is all NT-based,
Once you're pretty advanced with such shell scripting, it's not a hard transition to interpreted programming languages like PERL, and then to compiled languages.
I have a feeling the lack of kids programming has more to do with the fact that it's "unwashed masses" time, with the advanced still programming, but being hidden by the larger numbers of point-and-click users.
Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
If you're suggesting that programming is no longer as difficult as it was, then this would rather imply, a) programming viable applications is easier now than it was, or b) people are far more intelligent than they were. Neither explanation seems very likely. As far as I can see, programming is still a craft that very few people are capable of doing with any competance.
However, if you are suggesting that it has lost some of its 'elite' image, then perhaps you are right.
Devil's advocate time: Remember Computer science isnt about the plumbing; its about abstraction, algorithms and problem solving ability. Modern platforms allow modeling and thinking at a much higher level - instead of focussing on low-level arcana.
For example, lets take the author's wishlist - creating Pong. I'd wager that the game can be written in a lot more expressive manner in any higher-level language, compared to basic. Poking different screen locations arent a lot of fun; gorilla.bas gets old very soon. Kids like instant gratification(adults too!)- higher level languages are ideal for this.
One very useful tool when learning to program, at least for me, was an intergrated debugger. The ability to step through the code line by line, looking the values of variables at each stage and see how the code branches is a great for internalizing the logic of how a language or algorithm works, and learn to run through the code in your head just like a debugger.
He did mention other languages like Python or C++, and discards them. I'm not sure why exactly, but apparently he doesn't think they are any good for beginners (I think he is mostly just nostalgic for his programming days in which he used BASIC).
I would actually say there are plenty of kids who learn programming these days. Yes, they are doing it using more modern languages that have not been rendered obsolete, but that doesn't mean they are not learning valuable skills.
And I call bullshit on his assertion that learning BASIC is the CS equivalent to a med student learning chemistry. Those basic fundemental skills are learned when the student takes a computer engineering course (which I believe most universities require) and learns how logic gates work and writes programs in assembly. Those are the fundemental building blocks of our modern computers. Learning BASIC is closer to a med student learning outdated theories on medicine. Interesting from the historical perspective, but not essential for their education.
Lets please institute a rule and stop posting articles from Salon. Whenever someone does, the article is nothing but elitist bullshit with a lot of ads.
Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
I totally and completely disagree. The issue is one of pedagogy--which language can kids learn at an early age? I was coding 1000 line programs in BASIC at age 8, and I wasn't alone in that. BASIC is an easy language to learn. Is it limited? Definitely. Would I prefer today to code in BASIC instead of the Perl, Matlab, and Fortran that I now use? No. But the author's point is about _learning_ to code. Perl isn't terribly easy to 'learn' nor are c or c++ or java, at least not to an 8yo.
I wonder if this CS is a branch of mathematics approach also puts people off. Personally I think there is much less mathematics going on at the programming level than college lecturers like to think. It is like the old saw that a dog that catches a ball is solving a 2nd order differential equation in real time. No its not, it is catching a ball. Similarly a program is more a logical story than some mathematical adventure.
It may gall college profs who are still trying to foist formal methods on people but setting a high mathematical barrier to entry on CS courses and having a high maths content is a bad thing.
As an example I have a first in Microelectronics from a British University (a course which had a large syllabus covering 'C' and machine language) but only just scraped the 'C' grade needed in mathematics as an entrance to this course despite having 'A's in Electronics and Computing. I doubt I have used any maths much beyond British 'O' level standard since and certainly the maths knowledge required as entry to a degree level CS course is too wide and deep. It is all geared up to people going onto research rather than the real world. You don't need to be an expert in set theory to write the level of SQL required by most applications.
This is just a natural evolution. The same situation exists in hardware design. Very few young people can whip up a useful circuit with resistors, capacitors, and transistors. At my company we have 1 or 2 "dinosaurs" who invariably get called upon to solve problems in the hardware when it gets down to this level. Everyone is amazed when they throw together a quick little circuit with a breadboard and a few hand-soldered components. The simple fact is, more people don't learn to do this low-level type of work because there is not as much need for it anymore. But, and here is the rub, there will always be someneed. We'll always have to have a few folks around who understand the fundamentals. One could imagine as things continue to evolve, that these "low level specialists" could become quite expensive.
The more you regulate a company, the worse its products become.
Unfortunately, without understanding the basics, all your higher level abstractions get you is unmaintainable abstractions. Understanding the base concepts is necessary to know when to abstract at higher levels, because then you'll understand what that higher level abstraction does for you.
Does this mean you need to know about peeks and pokes? In today's world, I no longer think so (and there's that huge collective sigh of relief from students everywhere). But you should definitely understand how your language handles memory, even if you're coding in a language with GC capabilities. It keeps you from churning memory and slowing down your app to a crawl.
The cesspool just got a check and balance.
I think the truth is simpler than this. I think there are roughly the same number of new programmers born now, per capita, as were born 20 years ago. It's just that 20 years ago, only the programming types would have had a computer.
Before they did anything else they were writing programs. Simple ones that started the game. Next they were playing with loops:
And er,
However, there's plenty of time in your 4 years of college to learn Assembly, C,C++,Java, and a plethora of other languages. If you're talking about those 1 year career colleges, well, then that's another story completely. You can't learn how to program in a year, no matter how intensive the program is. I've known quite a few people who went to those one year career oriented schools, and they couldn't program their way out of a paper bag. The simple thing is, is that you need a large basis to really understand how to program.
Anthropic principle: We see the universe the way it is because if it were different we would not be here to see it.
Do kids today that are interested in soccer not think it's fun because they can't bend it like Beckham the first time they kick the ball? Do people who like woodworking stop because they can't build a perfectly constructed table and chairs, and instead can only build a crappy bird house? I don't think that's really the problem here. Sure there's going to be some kids who are discouraged because they can't program Doom 3 the first time they sit down and code. But those probably aren't the kids who would end up having a career in computers anyway.
Anthropic principle: We see the universe the way it is because if it were different we would not be here to see it.
Pleeeeeaaase... that's still the mantra I was hearing when I was 13 and happily beginning to code (in 1985). Why would 'we' be prevented from the right to code if 'we', litterature oriented people, despise mathematics ? There is still SO much to do with only 4 operations ! Granted, I won't dwelve into image processing, signal analysis or those fields where a strong math background is required. But I have a thing for databases, and in the 90's I was making nice applications to manage library catalogues. In Clipper, no less.
Well I'm not a programmer, save some hobbyist gadgets when I need them now, but I still can code some ASM, Basic, and C. When I feel the need, I'm not afraid to alter some parts of a GTK+/C program to better suit my aim. And I've never felt the urge to become a mathematician.
I think the mathematical mindset requirement is in fact more a deterrent for wannabe young programmers ; nobody knows how much good and creative ideas it cost the world to leave so much brilliant people at the door. Professionaly, I struggle everyday with mathematicaly clean softwares, written by certified engineers, softwares that are blatantly unfit to the mindset of my lawyer job. I have millions of ideas to improve the workflow I'm forced to follow, but when I bring them on the table, I'm sneered at because "I can't possibly understand computers". Stupid assh*les, I've had 3 time more computers in my life than them. But I need to eat, so I back off and go back to my paid work.
It's not really different than before when I was a teen. We had one of the first computer lab in school, but the management of it was trusted by our mathematics and physics teachers. Access to the lab was granted as a reward for good science pupils, no need to say I've never seen those computers closer than 10 meters away. That's because I strongly felt frustrated at the time that I pressured my parents into buying me a Tangerine Oric 1.
-- prof.dr.Edsger W.Dijkstra
IMHO Dijkstra is right and you are wrong. BASIC is a horrible language for learning to code and it is the wrong language to learn to code. It is not designed as a learning language. It takes the worst out of FORTRAN and mutilates it even further.
There are languages that are designed for that purpose and allow people to learn to code without mutilating their brain beyond recognition. I learned to code rather late (at the age of 14) and I had the opportunity to chose between Pascal, GraphFort, ASM (6502 and x86), Logo and BASIC. I learned them in exactly this order and used BASIC only in the rare occasions when the school forced us to work with it on 6502 based Apple ][ clones that could not do anything better. Even in that case I had a list of procedures which simulate recursion (and a few other suspects from "adult" languages) memorised so I could code in the horrid presudolanguage puke.
The problem with "Johnny can't code" is elsewhere. Johny does not have the stimulus to code. At all. In most households he is introduced at an early age to the computer as a toy and treats it as a toy while growing up. He does not look at it as a toolkit to assemble something usefull. He has no incentive to write anything in the first place and is getting less and less incentive as the personal computing continues to devolve to joe sub-average level. If you want Jonnie to code his parents have to provide him with a challenge which can be satisfied only by coding it. We grew up with it, trying to write a few "adult" programs which we (the adults) clearly know to be beyond Jonnie's patience and skill have not killed anyone. If Jonnie's parents have not bothered to provide him with such challenges and the tools to work on them (books on a real programming language), they should not bitch that he has no chance to become a programmer.
Baker's Law: Misery no longer loves company. Nowadays it insists on it
http://www.sigsegv.cx/
Don't forget Javascript. Javascript is the new BASIC.
Back in the day we'd write BASIC, then graduate to C/C++ for the "proper" coding.
These days kids learn HTML, then Javascript to make the HTML do interesting things. Then they pick up PHP or Java (or VB if they're unlucky) and from there Perl, Ruby, Python, whatever.
The most popular "beginners" language is always the most powerful one with the lowest barrier to entry. Anything that you can pick up quickly and do cool stuff with provides the essential satisfaction feedback that keeps you progressing and getting better.
HTML provides the "oooh, pretties" before you even learn do any actual programming, and Javascript introduces you to loops/conditionals and even OOP if you want. PHP/VB then add in database integration and stricter efficiency requirements (not to mention often the added complication of stateless programming), and by the time you can program competently in them you're well on the way to becoming a full-fledged Developer.
I have a great hope for dashboard widgets - it's exactly the kind of low-barrier-to-entry, high-return-on-time-invested platform that makes it interesting to learners, and because it's Javascript it's even starting them off on the kind of language that's the most useful to learn[1].
[1] Not to knock VB, but if you learn BASIC or VB you can basically program in... BASIC or VB. Learn Javascript and you've got a leg-up on the syntax of C, C++, Java, Perl, PHP, Ruby, etc, etc, etc, etc, etc.
Everything in moderation, including moderation itself
You managed to get David Brin's point terribly, horribly wrong. It's not that BASIC provided a good basis for future programming, but that BASIC awoke a desire to learn more programming. It was good for non-programers to grasp the concepts behind programming.
I think the best candidate for a BASIC replacement was HyperCard, but alas, that too is a dead project. It was cool, and its scripting language - HyperTalk - was revolutionary in that it was geared to resemble "natural English". Sure, it was limited in many ways, but the original Myst was made with HyperCard, and those of us that fiddled with it were ready when the Web hit prime time, already armed with the concepts of event-oriented design. HyperTalk scripts were easy to read, so easy that commenting became scarcer.
I can't find a worthy successor to HyperCard, though. IMHO Apple should release it under some open source agreement, so that it can be ported
>How do you explain to a ten-year-old that the BASIC exercise from the math book is
>essentially identical to the internal processes of a video game, a web server, or
>the embedded micro-processor that drives your microwave oven?
the same way you would've done it back in 1982: "when you write a program, you tell the computer what to do. these are simple programs; games are complex programs. but they are both programs."
believe it or not, professional games back then were amazing and awe-inspiring to people like me who were just learning how to make a computer do *anything*. while i was puzzling out BASIC's GOSUB and C64 assembly, i was also playing stuff like Zork, Zaxxon and Ultima III. yes, those games seem primitive today, but they were far beyond what your typical programmer could accomplish with BASIC. i knew they were programs, and that they were probably beyond my skill to create at the time (even now, too). it didn't take long to figure out that BASIC gave me control of the computer, and that making a game like Jumpman was just like writing any other program, but bigger, better planned, and probably in a langauge like Assembly. but that didn't stop me, or confuse me, it made me want to learn more.
i think the loss of easily-accessible and very simple programming tools is a tragedy. yes, you can install Python or whatever (just like i could've installed C on my C64). but that's still too big, IMO. computers should come with *simple* scripting languages built-in (no, bash, ksh, etc. are not simple). the goal should be to teach people that programming gives you control of the computer - even if it's an illusion because it's really an interpreted language running in a sandbox in a user process on a multi-process computer. that's the big leap - don't give them Python because it's "more powerful than BASIC" - power isn't the problem - an easy way to get comfortable with basic programming concepts (sequential execution, variables, input, output, etc) is more important than power.
I have discovered a truly remarkable proof which this margin is too small to contain.
Most of it misses the point. As do most of the replys to this article. Many here say, that there is Python, Perl, Ruby. You can even find 1001 flavours of BASIC. So what? What to do with it? When I was young, there were dozends of weekly or monthly journals, which contained game code. Sometimes I took me hours to hack it in. But I had the code. Even more, many magazines explained the code line by line. I was able to change things and see the results immediately. When I had no joystick, I was able to change the game to use keyboard inputs. This was interesting, this was fun. I really doubt I would have invested even half the time I used to hack in those listings, to learn a programming language when all I had where books, which started to explain how to print 'Hello world' on the screen. I think this is the real problem today. There are no materials to interest todays kids. When I go in a bookshop I see dozends of books, which fine if you are an adult who wants or has to learn. When I browse magazines I see game tests, hardware tests, rarely a small project, which is little more interesting than 'Hello world'.
Does anyone today know a magazine like ANTIC for the Atari? Twenty years ago there were dozends. Today? None.
So install whatever programming language you want on you childrens computer. It won't change anything.
the barrier to do something cool is in the stratosphere
I was thinking that, myself, but I'm actually convinced otherwise. The barrier is quite high, if by "something cool" you mean games and graphics.
However, there's still an obscenely huge amount of useful, interesting things which can be accomplished by small amounts of little scripts... All these internet-based APIs out there (Google, Flickr, etc) provide a low barrier of entry for some degree of "cool".
I think the real problem is a lack of motivation. In the good old days, you hacked on computers because, quite frankly, there probably wasn't that much else to do. Now, computers do (WAG) 99% of what the average kid expects/wants/needs.
c.
Log in or piss off.
In most households he is introduced at an early age to the computer as a toy and treats it as a toy while growing up. He does not look at it as a toolkit to assemble something usefull. He has no incentive to write anything in the first place and is getting less and less incentive as the personal computing continues to devolve to joe sub-average level.
You could have said exactly that 24 years ago when I got my first computer (a 16K ZX Spectrum). All most people did with those things was play games; the closest they got to programming was typing LOAD "" and hitting enter.
It was only really those of us that not only did that, but also typed in program listings (in BASIC) from magazines that went on to experiment with writing code ourselves. My parents didn't provide me with programing resources (although from memory, the Spectrum came with a BASIC manual), or particularly encourage me to experiment, I did it all off my own back. Of course, being me, they didn't *need* to encourage me; at times, it was all they could do to stop me taking things apart to see how they worked...
It's official. Most of you are morons.
Parent is dead on in so many ways. Programming is all process (teh P in CPU). Our societal demand for convenience and instant gratification has many victims, but one of the saddest is the general level of intuitiveness among kids & teenagers. Accomplishing something requires steps (an algorithm, if you will). If you generally have accomplished everything by pushing a single button, your ability to analyze a problem -- viz., break it down into steps -- languishes.
Later in life (in the unlikely event you actually get a job coding) you become one of those guys that just throws hardware and buzzwords at everything
My turnips listen for the soft cry of your love
Of course you could just point and click in an IDE and have a 250M app that provides you with a windowed environment and voila the same functionality but with theme music and a spinning globe in the background. You'll still need the same 30 lines of logic.
Sorry I had to ...
When I were a lad we had to buy Spectrum magazine and type in pages of uninteligable register commands, then we'd run the program and we'd discover we mistyped a garachter on the first page and then you'd go to bed and try again tomorrow, but you tell that to young people today, and they won't believe you!
"Linux is for noobs"-The new MS fud strategy
Python is easy enough to learn. Easier than BASIC, and much more powerful to boot.
... print 'sex'
...
python
Python 2.4.3 (#2, Apr 27 2006, 14:43:58)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print "Hello, World"
Hello, World
>>> 4 + 4
8
>>> while True:
sex
sex
sex
sex
sex
[and so on]
Then, when this gets frustrating, teach the rugrat how to save the program in a file, and run it that way.
I've been reading over the many, many letters that this article generated at Salon, and I'm blown away by the sheer number of people who claim that BASIC programs are somehow interacting with the computer on a lower level than C++, that BASIC somehow underpins the whole object-oriented system. Can someone explain what they're talking about?
You want the truthiness? You can't handle the truthiness!
The GP was remarking not just on the lack of languages, but the simple fact that right out of the box on day one straight in front of you was a BASIC command prompt.
You could load a game or write a program.
Nowadays you have to choose before bootup (consoles) or go out of your way and find the language.
liqbase
perl -we 'print "Big Tits" until 1==0'
Perl seems to fit the bill, since it can be as simple as you want and doesn't even have the type issues Basic has.
Object oriented perl is a wonderful was to learn objects. Wait don't scream. I said "learn". I'd been object oriented programming for years in Java and other languages. But I truly did not understand how all the pieces worked till I wrote perl objects. In perl it's like one of those "visible man" models. You learn how inheritance works. You learn how binding of an instance to a class works. You understand closures for the first time. You understand how the namespaces are kept separate and how instance memory is allocated. It's not just some voodoo that simply works, like in JAVA. Moreover all of the voodoo is not out of reach but right there for you to mess with. An instance can change it's own inheritance if you want it to. An instance can create a new method and write it into it's own namespace if it wants to. An instance can trap calls to it's own methods and redirect them or intercept calls to methods that don't exist and respond to them.
Those features are not unique to perl (for example pyhton implements objects identically to perl). The difference is that All of that object management occurs in perl itself and is not hidden behind syntactic sugar (like python and java). You quickly appreciate what dereferencing costs, etc...
The other thing that is nice about perl for learning is all of those prefixes like $ @, and so forth. They may make perl look like cursing but they force you to think about what a variable is. When I index out an array, I get what? an array? no I get a scalar, so $X[2] is how I index @X. You can look at someones perl program and if it's written well tell what every word is. You cannot look at a bare name in python or java and tell if it's a method, an array, a hash, a scalar or reference. Perl you can. (Oh and by the way let me explode a perl/pyhton myth. python has more special markup characters in use than perl, the main difference is that in python they are suffixes instead of prefixes and are overloaded with multiple meanings--try counting how many modifiers there are some time (e.g. () , [] ** and so on))
Now once you learn perl objects. Well it's time to put down the perl and back away slowly. Python, java are much better languages for writing re-usable, easily read, complex object oriented programs. Perl is still a much more powerful language than either. But it's powerful for efficiently creating compact or single use programs quickly. Not for well designed complex systems.
Some drink at the fountain of knowledge. Others just gargle.
Okay, what part of x86 assembly coding does not mutilate your brain beyond recognition? :)
While I'm at a loss to explain Brin's obsession with BASIC, I think that you and Brin are saying the same thing. There isn't much exposure to the inner workings of the computer by default. If you have Linux, the kid might have a chance, but what comes with Windows by default? cmd.exe? Yech. More important, even on Linux, there is no need to touch the command line in order to do all the fun, eye-popping things that computers are already trained to do. You could become quite adept at manipulating your computer without learning anything about how the computer operates.
Nor do most kids have an adult on hand to guide them, or even get them started. If a kid tells his parents, "I want to learn to program," they might go out and buy him a computer, then scour all over the Start Menu for the programming program. Teachers generally aren't any better when it comes to knowing how to get a kid on the path to 1337-ness.
I'm trying to think what a simple programming curriculum for grade schoolers would look like. What programming language would I use? What concepts would I try to teach, and how would I make them comprehensible to the rugrats? I think I'd start with Python, teaching them to use it as a calculator, then teaching them to output, then teaching them to get input and use it as output, then basic program flow. Objects would be a whole big ball of wax that I might not want to start them on straight off...
You want the truthiness? You can't handle the truthiness!
IMHO Dijkstra is right and you are wrong.
Hmm, i started on a Timex Sinclair 1000. Ithought for a while i was cool, i had the best alpha geek story around me. Then I moved a couple rows over, and of th3 7 other guys around me, 3 other guys had also started with Timex Sinclair 1000s. Not only did that thing run BASIC, but on a machine so limited it didn't even have a tokenizer, you had to enter your program in a weird pre-tokenized form with BASIC keywords single keys on a keyboard when you were in the right mode. Somehow we were able to get past the mental mutilation and move on to other thngs. I mostly program in C, Shell, and Perl, with some code lying around in C++. The other guys around me program Perl and SQL mostly (i feel sorry for the SQL).
Most of us MS basic in a variety of forms, on the cheap 650x processor based machines of the 80s (Commodore 64, Apple ][, Atari 800), the age this article is talking about.
Dijkstra's quote is a fun thing to banter around when you want to stop debate on BASIC, but in my experience is very wrong. Getting your head around how a computer works, there is a CPU coordinating things, what a memory address is how a parser works, getting exposed to these things early and cheaply and fun is the most important. The language has importance yes, but the jump from being a passive user to someone who wishes to control the internals of the machine and able to make an internal model of how it works is a much larger jump than going from BASIC to say, C.
This is bogus. There are many languages that are "easy to learn and give you a response quickly".
For example, Python is a very good language for teaching the basics of programming, and it's really simple to learn. Javascript also works.
The old BASIC that he probably remembers (e.g., what ran on Apple IIs, etc.) was actually pretty nasty; functions didn't have parameters, loops were primitive, you couldn't create your own datatypes. You had to UNLEARN a lot of stuff. Yes, modern BASICs are better, but they're now competing with many other also-good languages.
- David A. Wheeler (see my Secure Programming HOWTO)
Well, according to TFA how would you "make a dot change its position on a screen, propelled by math and logic, and only by math and logic" in python?
For kids, simple graphics are far more persuasive than watching text scroll down. If your answer for doing this in python is longer than 1 line or involves compiling packages, you've lost. Basic commands I remember were as simple as "gr", "hgr", "hgr2", "screen" and you were ready to go.
I'm a software engineer. I love writing code, but I'm afraid I'm not seeing the problem here.
I look at it like this: being a programmer is to computer literacy what being an expert mechanic is to the ability to drive a car. We don't need a society where everybody knows how to write software, just like we don't need a society where everybody knows how to rebuild a carburator.
Of course, I think it sucks that Windows doesn't ship with a C++ compiler (or whatever, language is not the issue). The anyone willing to do a little tinkering can have the tools they need to write some code quickly, and for free, on the internet. They just need a little encouragement and mentoring.
Johnny can't play chess. Johnny can't appreciate Fellini films. Whatever. If Johnny's not into those things, then he can pursue something else. The whole "Johnny Can't Code" thing is just nonsense. So what? As long as a kid learns to effectively use a computer, which in todays society means being able to navigate an OS, use a word processor, and run a browser and email client, they're going to be fine. For those of us who enjoy it, there are great and promising careers out there, but don't try to push it off onto everybody else.
The "scripting" languages that serve as entry-level tools for today's aspiring programmers -- like Perl and Python -- don't make this experience accessible to students in the same way. BASIC was close enough to the algorithm that you could actually follow the reasoning of the machine as it made choices and followed logical pathways.
What the author describes here in the article is just the specific 'sweet-spot' that existed for him and many others 20 years ago, but it wasn't necessary. I'm sure 20 years ago people were complaining that learning this code was not right - you needed to know the actual machine code, or the layout of the processor internally, what registers mean, etc. There are always levels of abstraction, but attaching such and important meaning to "the way I learned things" when there really isn't one is kind of meaningless, I think.
"Yes, I think he overstated the case against BASIC (although I believe BASIC was much worse when he wrote that than by the time Commodore came along), but he's probably one of the top ten or so computer science figures of all time, along with John Bachus, John McCarthy, Tony Hoare, John Von Neuman, Alan Turing and a few others."
I know who he is. But if some guy tells me that the sky is normally a lovely shade of salmon, I don't care if he has a list of credits a mile long. When he says that, he's being an idiot. At least at that point in time.
I'm a pretty smart guy. My IQ is comfortably nestled around 140. But occasionally I, too, am an idiot.
It's even tricky to change it by doing "file-save as..." unless you know what you are doing, most likely you will end up with hello.vbs.txt
So it's not as straightforward as you make out. In fact they have made it deliberately difficult to do what you describe. They seem to want to preserve some sort of idea of the intrinsic nature of different types of files for users.
Given that it's one of the standard ways to create a new file of the type you want, it's exactly what they should have done if they wanted average people to program. It's precicely lack of availability that's the problem. You could hunt using the standard windows interface and never discover that there was a way to do what you describe (trivial though it is).
Not without a jump/goto.
What do you think a procedure call is, if not a Gosub? What do you think an if statement is, if not a JNE or JEQ?
SJW: a person who perceives an injustice, and while correcting it, commits a greater injustice.
Division of labor is good. If everybody has to be fully self-sufficient, that greatly reduces the opportunity to focus on a particular area and make advancements that everyone can benefit from.
if there were a catastrophic event that destroyed most of society, very few people would have enough knowledge to rebuild what we currently have.
True and unavoidable. Unless we go back to the caves, so "rebuilding" would be easier.
Therefore, I believe that we as a society are getting dumber because we need to know less
Collectively we know far more than we did in the past, and thus the percentage of that knowledge that any one individual can have is less.
because modern medicine can keep nearly anyone alive long enough to reproduce, I'd say that evolution of the human species has stopped
Give biotech a few decades.
How to solve most of our problems: 1.Lots of nuclear plants. 2.Cure aging.
This is mentioned in the article in parent's post:
http://pine.fm/LearnToProgram/
I'm going to give this to my niece when she's a bit older.