News for hackers. Stuff that matters.
Re:UCLA introductory programming classes should focus more o... by mastax on Friday March 02, 2018 @12:30PM (#16503679)
No one is suggesting that CS students shouldn't learn about low-level machine architecture - what would they do for the last 3 years? C++ is just not made to be a first programming language.

Aside: I'm not convinced that Python is a perfect first language either - its error messages are very unhelpful when you're learning. Also I think a "NAND to Tetris"-style curriculum could work, but C++ would still not be the first step for this.

Also, look at the second half of that sentence. This is not about "developers". If you're a business or physics student who's taking one elective programming course over a bachelor's degree would you be better served if that one course was in Python? Yes, absolutely.

Re:UCLA introductory programming classes should focus more o... by jakear on Friday March 02, 2018 @12:35PM (#16503744)
I think there is something to be said for Scheme as an intro language. Knowing the "full stack" of computation doesn't need to end at NAND gates, it could just as easily end at the lambda calculus. In fact, I personally would prefer it that way.
Re:UCLA introductory programming classes should focus more o... by techman9 on Friday March 02, 2018 @01:04PM (#16504070)
I'd be really curious to see a study of the performance of CS majors in later classes by paradigm of the language taught in CS1 (i.e. imperative/OOP vs functional). I've been trying to keep my eye out for a while, but haven't really found anything that answers this specifically.
Re:UCLA introductory programming classes should focus more o... by NiceGuy_Ty on Friday March 02, 2018 @01:50PM (#16504520)
Maybe course withdrawal rates could be used, but getting access to the necessary statistics seems like it'd be a chore. I just checked with my university and the only statistics I can find are centered around graduation rates. One would likely have to contact all the registrars among a sample of universities individually, as I haven't found a university offering these statistics yet.
Re:UCLA introductory programming classes should focus more o... by techman9 on Friday March 02, 2018 @02:57PM (#16505108)
CS Educators do this research all the time, but it's pretty challenging to design a CS1 class that's effective but also so radically different from the typical paradigm.

There's also a risk you'll set students back if it's not effective so there are definitely ethical concerns and it requires interrupting a professor's load for the quarter. That said, CS educators conduct research like this all the time and there's probably a lot of value in studying this kind of change.

Re:UCLA introductory programming classes should focus more o... by farresito on Friday March 02, 2018 @12:52PM (#16503936)
What's so bad about using C++ as a first language? My college uses C++, and I'm very happy that they did so. Transitioning into higher-level languages is very easy, and at no point while I was learning the language did I think "Damn, I wish we used Java/Python". I really have no complains.
Re:UCLA introductory programming classes should focus more o... by techman9 on Friday March 02, 2018 @01:01PM (#16504042)
C++ has all this "language-specific" overhead that you kind of have to wade through before you can get to doing anything really productive. Python is easy to use and be productive with out of the box, has a complete feature set, doesn't require manual memory management and has far more expressive errors.

It really depends on the emphasis of an intro programming course. If the goal is to cover the basic control structures of a higher level language (conditionals, loops, switch statements, functions) and the fundamentals of object oriented programming, and get into some basic algorithms and data structures, then Python probably has less baggage and is more terse and expressive than something like C++.

Re:UCLA introductory programming classes should focus more o... by 52-6F-62 on Friday March 02, 2018 @01:30PM (#16504323)
>C++ has all this "language-specific" overhead that you kind of have to wade through before you can get to doing anything really productive.

For that reason I'm surprised by the lack of enthusiasm for just starting students in C.

By university, I imagine most students have already spent some time noodling around enough to understand some basic paradigms. C does not have the barrier that C++ has in that way. It's so much smaller, which is great, and no less useful. Soon after learning the basics a student may want to jump to something else, but then they'd be fully equipped.

Not that I'm against the Python approach— but for somebody looking for a deeper understanding C seems like a good choice since you can either drill down into memory management, or (as long as you don't do anything drastic) be somewhat lazy about it (with modern computers).

Python— I agree with many people in the thread—is very suitable for non-majors or a more applied approach. I am consistently trying to encourage non-programmer friends, family, others to take a stab at it because of the increase in productivity or ability it gives them with their machine they use on a daily basis.

... To the other questions— how much do you really need to know to be considered a CS? Surely you could pare it down to theoretical physics if you wanted to and eventually end at some unanswered questions somewhere between electron behaviour and quantum physics, no? Then you're a computer scientist.

Kidding aside and perhaps off topic—but much of the discussion in this thread causes me to wonder why so many interviews surround the ability to re-implement common (stdlib) algorithms, or on the web-side polyfills for existing language features, rather than understand some basics about how memory works from a programming perspective.

Re:UCLA introductory programming classes should focus more o... by farresito on Friday March 02, 2018 @01:40PM (#16504427)
You have a great standard library; you don't need manual memory management, because this is an introductory course; the error messages are admittedly bad, but not that terrible if you are not using templates. I'm not particularly fond of C++, but if you intend to teach the basics of programming and data structures, it's a decent language.
Re:UCLA introductory programming classes should focus more o... by epmaybe on Friday March 02, 2018 @01:07PM (#16504107)
It almost feels as if more universities should have two different "introductory" CS courses: one for non-majors, and another for majors. I would however express that in my CS curriculum (only 6 years ago) we did not start using C++ until my junior/senior year, and instead stuck with Java.
Re:UCLA introductory programming classes should focus more o... by techman9 on Friday March 02, 2018 @01:14PM (#16504181)
I'm not sure about segmenting intro courses by majors, but there is good research that suggests that segmenting CS1 by level of background knowledge has a significant positive impact on future coursework [0]. I suspect that a larger proportion of students who eventually study CS have a higher degree of background knowledge as well, so this probably makes sense.

[0] https://dl.acm.org/citation.cfm?id=2445248, https://dl.acm.org/citation.cfm?id=2255982