1. 19
  1. 10

    Go is not only a good teaching language, it’s an excellent one for first time programmers, including children.

    I’m becoming skeptical of this “teaching language” thing. At this point, I’ve seen someone claim (through their own experiences) that language X is a great teaching language, for all languges. Maybe the truth is all languages are pretty much the same when you don’t know any language.

    1. 10

      I’ve spent a lot of time teaching people of all ages to program.

      One thing I’ll say about teaching kids: they respond way better to learning HTML + CSS than any other language I’ve done it with. They’re then much more excited to learn another language once they see how they can make their sites more dynamic.

      1. 7

        I think the issue is more one of “will what you don’t know bite you?” and “how much must you know to recover from the bite?”.

        In this, Golang itself being a small language is a definite win. The “will bite you” is kept to specific domains where the libraries can’t entirely shield you from, eg, “HTTP has error codes”, and you can learn those issues piecemeal without jeopardizing everything.

        Everyone’s different; some people are fine learning to program with C++. I suspect that the number of people for whom that is true is far smaller than the number who can learn fine with Go, or Python. So there’s a continuum of suitability of a language for learning, and it’s not a straight line because it’s parameterized by the type of mind the student has, but you can find a “most suitable for the most people” language, of the pool of those languages available. Go makes sense here.

        1. 5

          Maybe! I think your response is missing my point. You’re making all these assumptions based on what you think are important for learning a language but these are just things you think and not necessarily reflective of reality. I’ve seen “evidence” for pretty much every language backing up the claim that it’s a good teaching language and people rationalizing why the langauge is good just like you’ve done. Maybe the reality is every language is equal when it comes to teaching because it’s all entirely arbitrary in the first place to a new person.

      2. 5

        Potentially of interest is my coauthor’s article, “Teaching Haskell to a 10 year old”


        Kid’s all about Haskell now and can’t wait to do more of the book (he hasn’t had access to a computer for awhile and will resume soon).

        1. 3

          I’ll soon start a shared journey with a 12 years old and I think the get excited part is quite important, so I’m choosing processing[0] (for creating visual art applications quickly) and html + css.

          [0] https://processing.org/

          1. 4

            I’m with @apy on this one. I’ve seen articles talking about Java, Python, Ruby, C, and I think even Haskell all being great teaching languages. I’ve never seen any kind of attempt at scientifically quantifying the effectiveness each one though.

            I love go as a language, don’t get me wrong, but overall I tend to call B.S. on these types of claims. As @philpennock said, everyone learns differently.

            1. 5

              I love go as a language, don’t get me wrong, but overall I tend to call B.S. on these types of claims.

              You’ve basically cherry picked out a small and inconsequential part of the OP and called it BS. The point of the OP wasn’t to lay claim to what “good teaching language” means. The point of the OP was to share a valuable experience. That, is certainly not BS. Indeed, the experience is not invalidated because the OP decided to pick a combination of words that apparently invited pedants to quibble over.

              Yes, I know you didn’t say anything bad about the actual experience relayed, but my gosh, do you really think the OP was trying to draw a line in the sand on the phrase “teaching language”? Reading the comments in this thread would certainly suggest so!

              1. 2

                I went and re-read the post, and it does seem that’s the main point of the post? Yes, the author is relaying an experience, but the point of the post is to at least tentatively propose a generalization of personal experience to a claim that: 1) Go is a good language to use for teaching programming; and 2) there are a specific set of language/tooling features that make it good for that purpose (left-to-right syntax, small set of keywords, go fmt, the go tool and workspace, etc.).

                1. 3

                  It’s an experience report with a sample size of 1 and lots of first hand experience. I see little to no value in calling that BS.

            2. 2

              I think the easiest to teach in JavaScript - they already have a JS environment in their browser! To give them the instant gratification to see their changes be made, I think a page can be made that have some things on the DOM that can be tweaked, binding, and simple sample code. Imagine giving them some code they can put into their browser, and have it, say, cycle colours of a div, and explain how it works and how it can be tweaked.

              Stories with similar links:

              1. Happy 25th Anniversary to PHP via luisonthekeyboard 2 years ago | 20 points | 33 comments
              2. Work in progress: Idris 2 via ehamberg 3 years ago | 44 points | 1 comment
              3. Golang Modules Mirror now available in alpha via UkiahSmith 3 years ago | 3 points | 1 comment
              4. Unix in East Germany (1990) via fcambus 4 years ago | 46 points | 13 comments
              5. Firefox: Using clang-cl to ship Windows builds via colin 4 years ago | 3 points | no comments
              6. Mercurial 4.6 sprint report via Sietsebb 4 years ago | 5 points | no comments
              7. PCID is now a critical performance/security feature on x86 via akpoff 4 years ago | 26 points | 7 comments
              8. Go 1.8 RC 1 released via fkr 5 years ago | 8 points | 4 comments
              9. Rust required to build Gecko via chadski 5 years ago | 30 points | no comments
              10. boringcc via jcs 6 years ago | 29 points | 10 comments
              11. Go 1.5 Beta 1 is released via journeysquid 7 years ago | 12 points | 1 comment
              12. Go is moving to GitHub via nathany 8 years ago | 20 points | 1 comment