4 ms·
I went looking for Hinsen posts that supported this argument and couldn't really find any. Can you be more specific? I don't like Python. But it is difficult f
by tptacek 4y ago
I went looking for Hinsen posts that supported this argument and couldn't really find any. Can you be more specific?
I don't like Python. But it is difficult for me to look past the empirical evidence that it is (a) remarkably easy for new programmers to pick up, and (b) an extraordinarily popoular, load-bearing tool for actual practitioners in the field.
It isn't the last word on software development (I don't use it), but it's the language I'd reach for first if I was teaching someone how to code. I think the class system is archaic and it goes a little out of its way to resist some functional programming idioms, but makes up for that in other ways.
- cxr 4y agoNote that cancelling Python is my thesis, and khinsen just provides the evidence to support it. He doesn't come out and say, "Don't use Python," but I am. From my notes, here are (some? of) the posts I had in mind: - <https://blog.khinsen.net/posts/2015/11/06/a-rant-about-software-deployment-in-2015/ https://blog.khinsen.net/posts/2015/11/06/a-rant-about-softw...> - <https://blog.khinsen.net/posts/2017/11/16/a-plea-for-stability-in-the-scipy-ecosystem/ https://blog.khinsen.net/posts/2017/11/16/a-plea-for-stabili...> - <https://blog.khinsen.net/posts/2017/01/13/sustainable-software-and-reproducible-research-dealing-with-software-collapse/ https://blog.khinsen.net/posts/2017/01/13/sustainable-softwa...> - <https://blog.khinsen.net/posts/2017/11/22/stability-in-the-scipy-ecosystem-a-summary-of-the-discussion/ https://blog.khinsen.net/posts/2017/11/22/stability-in-the-s...> - <https://blog.khinsen.net/posts/2019/02/11/the-computational-notebook-of-the-future/ https://blog.khinsen.net/posts/2019/02/11/the-computational-...> - <https://blog.khinsen.net/posts/2019/05/09/the-computational-notebook-of-the-future-part-2/ https://blog.khinsen.net/posts/2019/05/09/the-computational-...> --- > I don't like Python [...] but it's the language I'd reach for first if I was teaching someone how to code Damn, that's crazy. Considering how many of those people would be coming from Windows and Python isn't actually[1] a batteries-included situation, I'd go with JS. I'd say, "Look: here's how you can get started right away making little programs that run in your browser right now even when you don't have WiFi," then at the point where other people might start introducing Node (or Deno), I'd say, "You should really learn Go." I'd preface the JS stuff by saying, "mostly ignore EVERYTHING that you come across telling you how tech influencers on the Internet think you should be writing JS. (For example, if at any point during this stage you find yourself pressing the key for the equals sign three times in a row, then you have already lost sight of the trail—and the plot.) Instead of listening to StackOverflow and GitHub, here's a copy of ECMA-262, 3rd edition (notice how it's still accurate, even though it's from 1887) and an offline copy of developer.mozilla.org for reference." 1. <https://news.ycombinator.com/item?id=34833619 https://news.ycombinator.com/item?id=34833619>
- tptacek 4y agoI think it's a stretch to call it "crazy", since starting with Python is one of the more common didactic strategies in programming, and the most common in scientific computing. I wouldn't start with Javascript, though reasonable people could. It's too malleable a language, and a bit of a moving target. Python wears its opinions on its sleeve, which is a good thing for this purpose. Remember, the point of a teaching language isn't that it's the last language you learn; it's the first.
- pcwalton 4y ago> I don't like Python. But it is difficult for me to look past the empirical evidence that it is (a) remarkably easy for new programmers to pick up, and (b) an extraordinarily popoular, load-bearing tool for actual practitioners in the field. I pretty much agree with all of this. I don't love Python from a PL nerd perspective, because of its weird hostility to functional programming and proper lexical scoping. But when people ask me what language to learn as a beginner, I always say Python. Empirically it's in the sweet spot of both being easy to pick up and practical enough that people can start out making useful things. I also agree that you shouldn't teach Rust as a first language. You shouldn't teach any typed language, honestly--types just complicate things before you learn what they're for, which only hands-on experience will teach you.