3 ms·
I still think the first language when I was an undergraduate (so, last century) was the correct choice: an ML in our case SML/NJ The stuff about how this actua
by tialaramex 4y ago
I still think the first language when I was an undergraduate (so, last century) was the correct choice: an ML in our case SML/NJ
The stuff about how this actually works can come later, we're not teaching electronics students here (or are we? Zig as first language for electronics students makes some sense)
I agree that (safe) Rust has too much stuff for a first language for Computer Scientists. Lifetimes! Polymorphism! Two entire Macro systems! although it's simpler than C++, surely nobody should teach that as first language.
Zig has a compelling case as a second language if you learned something less practical like ML as first language. Apparently a colleague now teaches Haskell to the equivalent undergraduate classes as a second (or maybe third?) language, and I think Rust would also fit in there for the same purpose but given how practical the current first language is (now Java) he probably doesn't want more practicality.
One thing I'd say for Rust is that we need to start teaching Safety and Correctness early. There's a reason the Medics don't wait until year four to do Ethics and Consent. If we want to stop writing software which is crap we need to start teaching the next generation of CS graduates that's not OK up front, not just in some Friday afternoon class about the Therac-25 which has maybe 40% attendance.
- bb88 4y ago> we're not teaching electronics students here (or are we? Zig as first language for electronics students makes some sense) From an educational viewpoint, I don't like that EE and SWE programs have very little overlap. A lot of EE tools could be improved if EE's learned more software (particularly parsing and compilers). A lot of SWE don't get into the dirty details of a CPU and what makes it tick and see it some sort of magical black box, and ergo don't understand digital logic. Datapoint: There are now thousands of programming languages. There are primarily two digital logic languages: VHDL and Verilog. If you ever cross over to the EE side, you'll understand how terrible some of the software is. > I still think the first language when I was an undergraduate (so, last century) was the correct choice: an ML in our case SML/NJ Again, I don't know. So much of Computer Science programs hinge on getting that first educational experience right. Not so much a problem for MIT, but the program I'm aware of that used Scheme for there CS100 course shrank over time. People just dropped and changed their degrees, when in reality if Scheme/ML were a junior level course, they probably would have more students, higher budget, etc -- and possibly most students would have an easier time after learning a little bit of imperative programming. Perhaps it's a fair point that CS100 should be a weed-out course. But on the other hand, we don't teach the theory of calculus before we teach students trigonometry.
- cassepipe 4y agoAs I understand you advocate a bottom - up approach rather than a top-down one. I personally prefer the former over the latter as it makes more sense to me to learn how to make basic programs work before I learn what incredible things I can do with them. I have over one year of C experience in my school doing things like rewriting functions of the C stdlib and reimplementin getline() before I learn about radix sort, implement a tree or make a basic ray tracer. Thats works for me but I know there are some theory/abstraction oriented people that like to learn about algorithms first and fill in the details late. In the end if you want programming to be interesting you need both practical and theoretical knowledge so I guess you should know yourself and take the approach that work for you. Having people who want to build stuff learn abstract concepts in Scheme may be as counter-productive than having people who want to learn about clever data structures learn how to make a basic text editor in C in the terminal.
- bb88 4y agoI have no argument there. But let's look at some actual data. https://www.registrar.iastate.edu/resources/enrollment-statistics/enrollment-by-major-or-department https://www.registrar.iastate.edu/resources/enrollment-stati... In around 1995ish ISU moved to Scheme for their first level course, because they wanted to follow the MIT example. At about 2000/2001 they had a healthy number of students in both the computer-science and pre-computer science programs. The problem you can see in the data is converting the pre-computer science majors to computer science. You can see that most just dropped. Again you could say that maybe SICP should be a weed-out course, but the reality is, you can be a professional programmer without SICP. Yes SICP might be a nice to have for certain problem domains, but most people aren't functional programmers, and don't need to be. Today, at ISU functional programming is a 300 level course, and the computer science program has 866 registered students for Fall of 2022.
- bb88 4y agoI left out the fact that around 2007/2008ish (right around when SICP was phased out of MIT) Computer science enrollments dropped to ~100ish.
- xmonkee 4y agoSML/NJ is an absolutely marvelous first language. You will learn to think in abstractions and not get bogged down in any implementation details. The downside is that you will be amazed at the lack of union types and pattern matching in almost all mainstream languages you learn later.
- pjmlp 4y agoActually my software engineering degree had plenty of overlap with electronics content.