Slashdot Mirror


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."

10 of 686 comments (clear)

  1. Kids today...... :-) by BWJones · · Score: 4, Interesting

    I have been thinking it is due to a few reasons. First off, it seems that math education is sorely lacking in many college students. We are waaaay off the mark here with lots of remedial work being necessary for entering college students and this is having a major effect on peoples ability to develop algorithms. The next major reason is lack of communication skills and writing skills. When I was a grade school kid learning BASIC, we had it drilled into our heads that we had to comment our code and explain exactly what it is that we were planning. This was done to help us learn how to think through a problem, but also to get us to help communicate what it is that we were trying to do with our code. Finally, it seems that many students have gotten lazy and are simply looking for an easy way out and not wanting to code line by line.

    --
    Visit Jonesblog and say hello.
  2. Desktop Applets by RAMMS+EIN · · Score: 5, Interesting

    I submitted the same story, and also made the following comment elsewhere:

    It is worth noting that Microsoft ships Visual Basic for Applications
    with most of their software (at least they did when last I checked), and
    OS X and many Linux distros ship Python.

    Having said that, I agree that the world has changed and getting started
    with programming isn't as natural as it used to be. Part of the reason
    for that is that our expectations have changed, but languages haven't
    really caught up. Nowadays, we expect programs to present us with fancy
    GUI widgets. If all a program does is print some text to the terminal
    and read some input from it, we don't feel we've written a real program.
    However, in the majority of programming language, creating these fancy
    GUI widgets is much more difficult than doing terminal I/O. Thus, either
    the rewards are less, or the barrier to entry is higher.

    On the other hand, there is HTML, which makes it very easy to create
    user interfaces, but the user interfaces are somewhat limited and adding
    in program logic can be very tedious.

    Fortunately, software vendors are not sitting still. Konfabulator, Apple
    Dashboard, gDesklets, Oprera Widgets, KDE's Dashboard, and Mozilla's XUL
    (which is supported natively in Mozilla browsers, in Opera and MSIE
    through plugins, while native support is being added to Konqueror and
    Safari) are all ways to make it easy to create visually appealing
    programs and add functionality to them. They are all based around the
    concept of creating the user interface in XML, then using a scripting
    language to implement the behavior. Indeed, this makes creating GUI
    software easy enough that beginning computer users can do it.

    I think these widgets are the future, especially once they will be
    treated like full applications that live on the same desktop (last time
    I checked, Apple Dashboard actually was a separate desktop from the one
    that contains the "real" programs).

    --
    Please correct me if I got my facts wrong.
  3. Re:Kids today...... :-) by BWJones · · Score: 4, Interesting

    So, just in case some of our students read this (its always weird when your students say "I saw your comment on Slashdot yesterday"), I should have mentioned that there are exceptions to the rule (obviously) like the developers who are developing some of our image processing code right now here at the Univ. of Utah Scientific Computing Institute and our collaborators at the UCSB Center for Bio-Image Informatics. These folks are doing amazing things as is the neuroscience grad student in our lab who routinely amazes me with his ability to code. But these folks are in these graduate programs and environments because they are interested in solving innovative and new problems and they enjoy a challenge. The vast majority of students who are learning to code are not interested in asking questions or doing hard things. Interestingly, a large number of students it seems coming into CS programs at the undergraduate level want to program games, but have no idea how much math and algorithm development goes on when one is crafting new material. It's easy to use someone else's engine or physics models, but coming up with your own is harder and requires some talent and dedication to learning your craft.

    --
    Visit Jonesblog and say hello.
  4. Python?! by smithwis · · Score: 5, Interesting

    Am I missing something here? Why doesn't python count? It's easy, has a nice "line enter mode", embraces many advance programming concepts from various programming paradigms(OP, Functional, Procedural, etc). And has a bunch of nice Graphical hooks for the eventual game programming your little one will end up doing.

    Disregarding Python, what's wrong with Emac's elisp or a nice session with tcsh. You'd be hard pressed to find a computer that you couldn't run one of these languages on and I've just barely scratched the surface of possibilities

    No I'd have to say that today's children are given an even richer programing environment to grow with than we were.

    --Steve

  5. Oh, please.... by John+Murdoch · · Score: 5, Interesting

    From TFA:

    Am I being overly dramatic?

    Yes.
    The writer of TFA is whining that computers no longer ship with a BASIC interpreter. That's been true since Microsoft shipped Windows 95--and at the time (which, er, was 1995) a number of columnists (including me) noted the loss, and wondered what impact it would have.

    Eleven years later....
    The earth still continues to revolve around the sun, and kids are still learning to write code. They're not learning to write code by typing in exercises from a math book--they're learning to write code to develop macros in Excel (or OpenOffice Calc); they're learning to write JavaScript to enable custom functionality in Adobe Acrobat files; they're learning to write HTML.

    Not to get all pedagogical on you, or anything...
    But this may be a circumstance where the Education Establishment is doing something right. Typing code into GW-BASIC produces...what? Typically, an output value. Read these input values, produce that output value. That's a CRT-based emulation of a deck of punch cards--and while I believe I benefited enormously from learning to code on punch cards, very very few people in the programming world agree with me. Think about what the newbie programmer's early coding experiences are like:

    • Open DOS window
    • Launch interpreter
    • Persuade interpreter to load your file
    • Start the program
    • Enter two or three input values
    • See the resulting output value

    That experience--being able to compile and run a program in something like real time, was HUGE--in 1974. Nowadays it is so outdated that I'd bet most kids would not see any correlation between that and a computer program that they are familiar with. 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?

    By contrast, a web page is a terrific introduction. Open a simple web page with "View Source", modify the text, and display the new page--it has changed. Iterate several times--add paragraphs, change colors, play with fonts--and the kid gets it. Playing with a text editor (which, incidentally, still does come for free) the student can go a long, long way in HTML. Depending upon his or her interests the student can pursue graphic design, animation, AJAX programming--all sorts of stuff. Key point: the difference between a "Hello World" HTML page and EBay is only a matter of degree--and that is immediately obvious to the student. Making the mental link between an ancient BASIC program and--for instance--a Windows application developed in Visual Basic.Net is not obvious at all.

    A case in point...
    I have three daughters. Growing up in a house with more computers than people--and a T1 connection to the Internet--they have had more exposure to computers than most kids. The oldest two are in college, and both had summer jobs this year at the electronics company where I work. Daughter #1 worked in customer service role--spending a lot of time with Excel spreadsheets. Somebody asked if she could program--she replied that her dad was a programmer, but she didn't really know how to. As she said this, she was writing Visual Basic macro scripts to automate a lot of manual key-entry for the customer service staff. What she was doing was very similar to the old-fashioned "get input, produce output" coding that punch card decks and BASIC programs performed. But the IDE (in this case, Microsoft Visual Basic for Applications) and the paradigm (a GUI) made it extremely easy to understand and do. So easy, in fact, that she didn't really equate it with programming.

    In other words,
    Don't mourn for GW-BASIC. Spend time with your kids writing HTML, JavaScript, and Excel macros.

  6. Re:Kids today...... :-) by BWJones · · Score: 4, Interesting

    You should know that the University of Utah has a long history of academic excellence in computer science. People like John Warnock (founder of Adobe), David Evans and Ivan Sutherland (founders of Evans and Sutherland), Robert Barton (principal architect of all Burroughs computers), Tom Stockham (created digital recording among many other things), Alan Kay (GUI guy at Xerox PARC, developed Smalltalk and is a fellow at Apple), Chuck Seitz (pioneer in asynchronous circuits), Ronald Resch (pioneer in computer art), Alan Ashton (founder of WordPerfect), Tony Hearn (developed the oldest algebraic math package, REDUCE), Duane Call (designer of the FPS-120 supercomputer and vector calculation specialist), Henri Gouraud (developed the Gouraud shading methods so important for all your games), Elliott Organick (Founder of SIGSCE and author of many FORTRAN and CS textbooks), Buit Tuong-Phong (invented the Phong shading method), Ed Catmull (computer animation pioneer and co founder of Pixar), Jim Clark (founder of Silicon Graphics, Netscape and Heatheon/WebMD), Henry Fuchs (founder of Pixel Planes and researchers in high performance graphics software), Martin Newell (object rendering and founder of Ashlar and co developed the Painter's algorithm for surface rendering), Frank Crow (famous for his anti-aliasing methods for edge smooting), Martin Griss (developed Portable Standard LISP), Suhas Patil (founder of CIRRUS Logic), James Blinn (Invented the first method for representing surface textures in graphical images. Scientist at JPL, where he worked on computer animation of the Voyager fly-bys), Jim Kajiya (Developed the frame buffer concept for storing and displaying single-raster images), Robert Johnson (Invented the magnetic ink printing technology used on virtually every check we write), Brian Barsky (Developed beta splines and methods to link computer graphics, geometric modeling, vision science, and optometry) and so on and so one are all graduates of our program.

    --
    Visit Jonesblog and say hello.
  7. Comment removed by account_deleted · · Score: 4, Interesting

    Comment removed based on user account deletion

  8. Re:Kids today...... :-) by hey! · · Score: 5, Interesting

    first off, it seems that math education is sorely lacking in many college students. ... The next major reason is lack of communication skills and writing skills.

    There's a story about Abraham Lincoln when he was a cogressman. He received a questionnaire sent to new congressman in which they were supposed to give background information about themselves. When he came to the question which asked for a description of his education he filled in a single word: "deficient".

    In fact, Lincoln felt the deficiency of his education so keenly he began an independent study of Euclid's Elements, with the intent of sharpening his thinking. Reportedly he mastered the material through book 6, which means everything relating to plane geometry, but not number theory or solid geometry. I'd argue that Lincoln's formidable intellectual accumen, whether it stemmed from his study of Euclid or from his native faculties, is often missed in the sentimental haze that surrounds the man.

    The point of these anecdotes is this. There are certain areas of knowledge where thoughtful persons would have to label their education "deficient", any accomplishments they may have in them notwithstanding, because they are bottomless sources of utility. You just named two of them: mathematics and communication.

    The need for remedial classes at the university level doesn't come from a degeneration of the educational system. It comes from a social and economic change which makes a bachelor's degree a minimal requirement for decent employment. Fifty years ago, there were two kinds of people who went to college. The socially elite, for whom a "Gentleman D" was perfectly acceptable. Arguably the societies they joined and contacts they made were the most important reasons to go. And the intellectually elite. The middle class, non intellecutally elite student got a job, often in a factory, which maintained him in the middle class and did not require a degree.

    The growing need to have a university degree in the last half of the twentieth century led to the perennial concern of declining college board admission test scores, from which it was concluded that primary and secondary education was deteriorating. However, it's important to remmeber that average scores are average scores of a population sample, and if the population being sampled changes, you can't compare the scores. Adjusted for demographic changes, there was no decline in scores. There literally couldn't be, because of the little known fact that the tests and scoring scales are continually recalibrated by the testing agencies to ensure that students in any given segment of the academic population score the same from year to year.

    However, we have been the beneficiary, first of the Sputnik scare, then the SAT scare. For most students, education is actually much more rigorous today than it was fifty years ago. I went to elementary school almost forty years ago. My school was unusual in putting a great deal more emphasis in critical thinking and reading skills. My children go to an elementary school where the reading curriculum is much more challenging, and the math curriculum requires that students be able to reason mathematically and recognize situations where various mathematical techniques need to be used -- a huge improvement over the education of my era, which graduated countless students who could regugitate the quadratic equation forumula but had no idea when it might be useful.

    --
    Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
  9. Re:Kids today...... :-) by Shaper_pmp · · Score: 4, Interesting

    What does learning about the underlying system help with in programming?

    Architecting beautiful code? Nope.
    Learning powerful, high-level abstractions? Nope.

    Programming efficiently to the hardware.

    With computers getting ever-faster and more advanced, coding efficiently is less and less important than it used to be. Efficient algorithms are still pretty important, but that's more about using matrix calculations and streamlining progam flow than about the intricacies of memory-management and choosing where on the hard disk you place your data for minimum retrieval time.

    Witness the rise of interpreted languages like Perl/Ruby/PHP. Look at how semi-compiled bytecode languages like Java and the .NET stable are more mainstream than C/C++/whatever.

    Don't get me wrong - I first learned BASIC, then C, then C++ and a bit of assembler, and I wouldn't trade this knowledge for the world. Nevertheless, now when I write C# code which is compiled to MSIL/.NET bytecode, which is then interpreted by the .NET runtime and turned into CISC instructions which are sometimes even then converted into RISC instructions... what exactly should I be coding to? How can I know what's happening to my code after it's run through 4 or even 5 levels of automatic conversion?

    These days kids are learning how to use high-level tools first, and only learning the lower-level stuff as they get better and better. Sure this means an awful lot of nasty, bloated beginner-level PHP and VB.NET, but by the time they're ready to tackle compiler design they've generally already picked up the important bits as they go.

    When we were learning code we'd write crappy code in BASIC/C, and it'd sit on our home PCs and never go anywhere. Now when a kid writes crappy PHP or VB.NET it's generally posted to a forum or used to run their website, so of course it's more visible.

    We all wrote crappy code when we were learning, irrespective of the language. Certainly, I know I wrote some BASIC/C code that makes me cringe when I think of it now.

    --
    Everything in moderation, including moderation itself
  10. Re:CS a branch of mathematics? by lhbtubajon · · Score: 4, Interesting

    This was EXACTLY my experience at The University of Texas, where CS is really applied mathematics, with a focus on AI. I just wanted to learn to code cool shit. After three years of learning very little I could practically apply, and being bored absolutely stiff (while getting my ass kicked by the maths), I bailed out of CS in favor of an entirely different college (within UT).

    I don't begrudge UT for wanted to offer an applied mathematics program in their CS department, but I didn't want that, and was basically told that if I wanted to have a life where I did cool stuff with computers, I had to learn Diff. EQ, calculus-based engineering physics, and a whole lot of theory and proofs of CS (emphasis on the _Science_) concepts that perhaps .01% of real-world programmers actually give a shit about.

    Another concern I have with university-level CS programs is that not a whole lot of actual TEACHING goes on. Lower-level courses are "taught" in giant halls where ethereal profs tend to cater to students who already knew the material before they got to high school. It just goes downhill from there. I didn't realize how bad it was until I got to another department where they actually started with the basics, _taught_ the fundamentals, and developed students through to competency.

    It's like CS departments got lazy on teaching because they have such a wealth of students who have been dicking around with this stuff since they were 5, just because it was fun.