Re:Principles for Programming Languages for Learners
by taneq on Monday August 29, 2016 @05:57AM
(#12380959)
C++ is even worse, especially if using iostreams as many beginner's tutorials do. I mean seriously, your introductory script requires polymorphic operator overloading to abuse a common operator (left shift) into doing something totally unnatural for its usual meaning? What the hell.
Any introduction to programming which requires hand-waviness is just teaching newcomers to not ask questions, which is terrible.
Re:Principles for Programming Languages for Learners
by sotojuan on Sunday August 28, 2016 @11:24PM
(#12379806)
I'm assuming you don't have a choice in the language? I'd pick Python or something similar over Java for teaching coding.
Re:Principles for Programming Languages for Learners
by teach on Sunday August 28, 2016 @11:30PM
(#12379825)
The AP exam is in Java, so I could teach the beginners Python and then switch to Java for their second year. Many teachers do.
Introductory Java works for me, though.
Re:Principles for Programming Languages for Learners
by xapata on Monday August 29, 2016 @01:18AM
(#12380157)
It's too bad that the AP exam is so slow to update.
Re:Principles for Programming Languages for Learners
by teach on Monday August 29, 2016 @01:29AM
(#12380189)
In the US, most universities still teach Java for their first programming course for CS majors. The AP exam has to match that.
Once most universities begin with Python, the AP exam will follow suit.
Re:Principles for Programming Languages for Learners
by xapata on Monday August 29, 2016 @09:51AM
(#12381814)
The majority of "top" computer science departments teach Python in their CS 101 equivalent.
http://cacm.acm.org/blogs/blog-cacm/176450-python-is-now-the...
Re:Principles for Programming Languages for Learners
by sotojuan on Monday August 29, 2016 @11:40AM
(#12382611)
...but the vast majority of programs in the US teach Java or C++.
Re:Principles for Programming Languages for Learners
by xapata on Monday August 29, 2016 @02:17PM
(#12383913)
About 20k students take the AP Computer Science exam each year, split 14k for the A-level and 6k for the AB-level. I was going to make some argument that the AP students are all aiming for top schools, but the numbers seem to say otherwise. At least, 14k sounds like a lot.
Re:Principles for Programming Languages for Learners
by teach on Monday August 29, 2016 @04:02PM
(#12384842)
Your data is super old; the AB-level exam was discontinued in 2009, and last year we had nearly 60,000 students that took the A exam.
But your point is therefore even more valid: not all of these students are going to be at top schools.
That's actually my biggest complaint with Java for true beginners; "hello word" has half a dozen concepts you can't omit but also can't even begin to explain.
I just get hand-wavy and say "it's a required heading that Java requires; I'll explain it later."