3
$\begingroup$

I'm teaching introductory programming for high school. Back in the day, when I was starting out, DOS and Unix terminal prompt was normal UI, and console apps would spark kids interest.

Now, on the other hand, kids grow up on the web, and a console program would look quite uninspiring.

On the other hand, I'm not sure if JS (which is the web language) is a good introductory language. It's got a lot of gotchas which can confuse beginners, and I was thinking that a language like Python or Go would be a better introductory language.

On the other hand, they don't have much of a front-end, and I don't want to teach two languages at the same time.

What do people suggest?

$\endgroup$
1
$\begingroup$

If Advanced Placement CS is in their future, then Java is probably the best language choice as it is still used in APCS. There are also a lot of resources for Java development that also permit graphics based insight. The course probably wouldn't be about developing for the web, though.

But because of the APCS link there are a lot of resources intended for novice programmer development.

One resource (Java) that is very useful for such students, and has a lot of project ideas built in to it is Greenfoot, which uses a rectangular grid to place visual representations of objects and lets them move an interact according to the student program. There is also a dedicated teacher resource for it: Greenroom. It has additional greenfoot projects and a forum for discussion.

Otherwise, Python is a pretty good choice for beginners. It has less syntactic load. But the set of resources for novices is a bit more scattered.

But any programming that uses some visual metaphor is better for student understanding than just numeric programming. It needn't be web based, but should be graphical. Games are pretty good for this provided that they aren't just textual. Any simple board game can provide a nice way to visualize what a corresponding program needs to do.

But, one way to avoid the two language issue in web development is to have the students build only the back end or only the front end with you providing the other. It also defines a set goal that students can program toward. The part you build can be in a different language than that used by the students, of course.

$\endgroup$
  • $\begingroup$ Java is a dreadful teaching language (not the worse). It has many problems, including keywords that have to be used before you can teach what they do “public static void main …” It also discourages object orientation “static …main”. I can't remember all of the other problem, but there are many. I have been teaching a student one-to-one, and I see many problems, because of the language. The last problem was trying to teach interfaces (Java and OO meaning don't match). $\endgroup$ – ctrl-alt-delor Jul 14 at 17:44
  • $\begingroup$ Your opinion is not widely shared. Java is used in APCS and in many, many beginning collegiate courses. Also, see: cseducators.stackexchange.com/a/4718/1293 $\endgroup$ – Buffy Jul 14 at 18:10
  • $\begingroup$ I 100% agree. However I suspect that it is the answer to “What language is popular in industry?”, or “What language do our instructors know?” and not “What is the best teaching language?” $\endgroup$ – ctrl-alt-delor Jul 15 at 8:36
1
$\begingroup$

I agree with Buffy that a great way to think about it isn't "language", but "language + library" or "language + provided code".

David Malan does a masterful job if this in his CS50 course, and anyone can see these labs. Those labe are impractically large-scale for someone without his staffing, but they give a sense of what is quite exciting.

Buffy's recommendation of Greenfoot is absolutely excellent. I have colleagues who use it this year, and they described it as one of the best pedagogical tools they've ever encountered.

I would also recommend looking into game engines. Unity allows you to create exciting projects from Day 1, and gives you an entry point into C#. Godot is great if you'd like a more Python-like language.

Finally, remember that these are merely starting points. Once the kids are up and running in the basics of the language (and enjoying themselves), you can take them out of the starting environment in almost any different direction. If you find it interesting, and present it with enthusiasm, they will usually be with you.

$\endgroup$
0
$\begingroup$

There is no better first line-code language than Small Basic. Lots of nice simple projects for beginners. Python and especially Java can be very intimidating to beginners and will scare away many kids. Small Basic is a step up from Scratch. There are a lot of beginner routes out there to get kids started. Another excellent language is Alice. I have my programming students build a scene from Shakespeare using Alice. If you have access to Lego EV3 robots Small Basic has an extension for them. There is also an EV3 extension for Visual Studio Code/Python if you want to step up to a more difficult language. Be careful what you start kids off with. Throw Python or Java at them you retain maybe 10% of the kids for the next class. I introduce Python in the 3rd semester. By then the kids are not intimidated by programming and problem solving techniques.

$\endgroup$
  • $\begingroup$ What ages do you teach, out of curiosity? $\endgroup$ – Ben I. Jul 9 at 15:38
  • $\begingroup$ 9-12. Raw beginners to computer geeks that program for fun. $\endgroup$ – Garth Flint Jul 10 at 15:02
0
$\begingroup$

You might want to consider Visual Basic or Delphi where it is simple to create graphical user interfaces.

$\endgroup$

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.