A while back the College Board dropped one of the Advanced Placement Computer Science exams – the so-called AB exam. (About 14 months ago and I wrote about dropping the APCS AB exam here) Ever since then there has been a lot of discussion about the AP computer science curriculum in specific and the high school computer science curriculum in general. The College Board is working on a ne AP CS exam. The current A exam is still going to be around and the word is that it is in for some minor changes. One of these is a possible change in name to “AP Computer Science: Programming.” Now cynics and critics (of whom I have been known to be one) might wonder out loud why not “AP Computer Science: Java” but that’s not likely to happen. In theory the language could change one of these days. But there is also a totally new AP CS course in the works. This one is likely to be called “AP Computer Science: Principles” though I don’t believe any of these names are set in stone just yet.
What is this new course going to be like? Well that is hard to say as the Commission the College Board appointed to work in it is just getting started. But if seems like “there’s interest in providing teachers with choices of what language they teach. ” Mark Guzdial who is on the Commission lays out some of the issues involved in a recent blog post called “Nudging Computing Education” In this post he says that an unlimited set of choices is unlikely. I have no doubt that he is right. He also talks about some of the pros and cons of some languages - C++/Java and Scheme.
Now all of these languages have their supporters and detractors. Personally I think anyone going into a career (academic or industrial) should learn C++ at some point. I am not a fan of it (or Java for that matter) as a first language. Likewise I know people who are having great success teaching computer science with Scheme but also know students who all but dropped the idea of taking additional classes because of bad experiences with that language. Truth is – no language is perfect. But most of us have our favorites. So now a pitch for my recommendation for a language to make the short list for the new AP CS Principles course- Visual Basic. Come on you knew that was coming. 🙂
On the pro side Visual Basic has an easy to learn syntax. many students find the semi-colons and curly braces of C-style languages and the complex nesting of parentheses of Scheme confusing and frustrating. That seems, in my experience at least, to be less of a problem with Visual Basic. Or other versions of Basic such as Small Basic for example. Then there is the matter of graphical user interface programming. Sure it is not by itself that important a concept but it can be part and parcel to students experiencing success and creating something that looks and feels “real” and relevant. Getting students interested and letting them have fun should be an important part of a first programming experience. With Visual Basic this is simple, fast and easy. Done right an instructor can keep students focused on code and concepts while the students enjoy creating software they can show friends. Plus there are features in the IDE like Intellisense that make exploration and self-learning easy. I think that is a plus.
Now critics will say that it is a proprietary language and only runs on Windows. True. But that still means it runs on most computers that most schools have. Cost is not really a barrier because the Express edition of Visual Basic is a free download. Students can even get the professional edition for home use for free through the DreamSpark program. And even if a teacher doesn’t want to use it that is not a good reason, in my opinion, from excluding it from a list of options for other teachers to choose from.
People might argue for a C-style first language because the APCS: Programming course is in Java. I have two replies to that. One is that after several years of starting with Visual Basic and following up with C++ (as C-style a language as it gets) I found that students with a good foundation of the concepts had little if any trouble picking up C++ from as inadequate a teacher as me. The other possibility is to include C# on the list of accepted languages.
Why? Well because C# has the same ease of creating GUIs that VB has. The same powerful and helpful IDE that VB has. And the colons and curly braces others seem to love and cherish. So that is two languages I’m suggesting. I suspect that there will be some strong support of Python as well.
Python is a dynamic language that is seeing increasing use in education. So the question for the commission is how many languages for their list.
I would argue that C++/Java/C# are all close enough that to include one means you can probably include all three. Given how many people are using Visual Basic for non-AP courses and the desire to see this new AP course reach many more schools than the present exam I think it should be included as well. Even if you don’t buy all of my earlier arguments. Python and Scheme? Probably or some people will scream pretty loudly. So does the list look like:
- Visual Basic
We could do worse. The one monkey wrench in this list is Scheme. While the other languages are procedural/object oriented languages Scheme is a functional language. Things work a little differently (some would say a lot differently) with functional languages. I’m glad I don’t have to make that decision or worse yet write the test that includes Scheme with the other languages. Not that that isn’t a worthwhile goal.
So what do you think? Any language you would add or subtract? Anything your seriously object to? Leave a comment or better yet hunt me down at NECC and give me a piece of your mind.