5 ms·
There is no reason for programming pedagogy to begin with low-level languages. Python was also designed to be a teaching language, and has been unreasonably eff
by tptacek 4y ago
There is no reason for programming pedagogy to begin with low-level languages. Python was also designed to be a teaching language, and has been unreasonably effective for that purpose. The majority of all practicing software developers won't need to get closer to the metal than Python does; that wasn't the case in the 1980s and 1990s, when hardware performance was so poor that languages like Python usually weren't viable, but it is now.
Rust seems like a distinctively bad teaching language. It's a fine language! But I'd probably teach assembly before I taught Rust --- and both after establishing Python fluency.
- pshirshov 4y ago> Python was also designed to be a teaching language, and has been unreasonably effective for that purpose. From what I've seen, those who learn programming using high-level dynamic languages with managed memory really struggle to understand many basic concepts (e.g. equality/identity, abstract machines, etc, etc) and data structures. > The majority of all practicing software developers won't need to get closer to the metal than Python does Like they'll never need to write a native extension?
- dragonwriter 4y ago> From what I’ve seen, those who learn programming using high-level dynamic languages with managed memory really struggle to understand many basic concepts (e.g. equality/identity, abstract machines, etc, etc) and data structures. That’s not my experience, and I’d be especially surprised if the first of those examples was true of people who learned with Python, since the identity vs. equality distinction is a basic, important, and in most pedagogy very early concept in Python. > Like they’ll never need to write a native extension? Use? Sure. Write? Probably not.
- zozbot234 4y agoIt's not really about starting out close to the metal, it's about mastering a language in a comprehensive way. You can understand the overall semantics of C or PASCAL as a beginning programmer in a way that's just not true of Perl or Python. (It might be true of, say, Scheme, but the clunky paren-based syntax does not make that language intuitive to novice programmers.) Of course C and PASCAL come with the well-known pitfalls associated to memory unsafety, so that's a good reason to pick something like Rust. Rust might be described as complex, but the complexity is built upon a core of language constructs that should be comparatively easy to teach and learn.
- tptacek 4y agoMost practitioners do not have the mastery you're talking about over any language at all. I can't support normative advice to new entrants to the field based on a whim we might have about how current practitioners should behave; I have to look at how they're actually operating. For what it's worth, I came up as a C programmer. I value the experience, but do not value any sense of mastery I might have ever felt I had over all the minutiae of the language.
- zozbot234 4y agoMost practitioners can write FORTRAN in any language, i.e. they fully master FORTRAN-level language features. The interesting challenge is to push that a bit higher.
- cxr 4y agoNot to detract from the real thrust of what you're trying to say, but here's a controversial opinion: Continuing to push first-time programmers towards Python is net long-term harmful. It was excusable in 2013, but shouldn't be happening in 2023. Konrad Hinsen (who is by no means a Python hater) has several years of blog posts that together make up part of the case for why. From an earlier, now-deleted comment in response to a comment in a previous thread comparing Python to Go in particular: > Folks probably _should_ stop writing Python—or at least stop pushing it on non-technical people as the easy path to "learn to code". Python and the Python ecosystem have real problems that make it less suitable for that demographic than is popularly imagined. It's more or less an unfortunate accident of history that so many academics who don't first and foremost consider themselves to be programmers are shunted in that direction. If it weren't for the self-perpetuating science-gets-done-with-Python meme and if things were selected through a sober decisionmaking process that took into consideration the actual merits of the language, its tooling, and accessibility, then Go would be killing Python. Heck, even Pascal would fare well. A focused Pascal distribution that concentrated on things like direct runnability (i.e. no build step required, unless compiling for deployment to other machines) and a few choice language extensions for [...] [Python-like] cuteness would go a long way towards making that a reality. In re <https://news.ycombinator.com/item?id=34850852 https://news.ycombinator.com/item?id=34850852> Thinking it over, GDScript seems perfectly positioned to make a dent in the Python problem—at least as a starting point. (Expecting a toy language for a game engine to go anywhere else might seem laughable, but stranger things have happened.)
- pcwalton 4y agoGDScript is a bad idea as a teaching language because it's so niche, practically a DSL. You really want people's first language to have broad applicability. Yes, Python has deployment problems, but so does Godot.
- cxr 4y agoJS was a DSL. (Everything you meant to communicate by this comment was already accounted for when I posted mine—hence the parenthetical disclaimer about the idea being laughable.) I was also fingering GDScript specifically as a _starting_ point for the sort of thing described in the quoted/deleted comment: a concentrated effort to produce a RAD-ish environment meant to dethrone Python from the seat it unreasonably occupies today.