from Hacker News

Ask HN: How to help someone learn to code?

by mxab on 8/21/19, 2:33 PM with 5 comments

My girlfriend is currently struggling with some courses that require a basic understanding of how to write code. It's not so much that she can't learn the syntax of whatever language is used, her difficulties start at a lower level, i.e. at what one might call algorithmic thinking.

I'm having a hard time helping and explaining these things to her, so I was wondering whether someone here knows some literature or MOOCs or tricks or whatever that focuses on teaching total beginners, ideally in a language-agnostic way.

Thanks for any help!

  • by GreenItalics on 8/21/19, 5:01 PM

    I've been helping some friends learn programming, and they probably wouldn't describe themselves as algorithmic thinkers. What I found was a good starting point was talking about basic boolean logic and truth tables. The topic was really straightforward, felt foundational and there are tons of examples in all kinds of topics.

    From there, we started talking about simple circuits/gates like AND, OR, etc. Then we started talking binary (and other bases), then binary arithmetic. At the end, I went over how integers are stored from a high level (and integer overflow for fun :) ).

    There really wasn't a super high-level plan, but exposure to these topics I felt was a great intro to the mindset and we had good fun/progression during the session. From here, with booleans & integers as the foundation, I might feel comfortable writing pseudo-code and such with them, slowly bringing the abstraction higher.

  • by charliex on 8/27/19, 8:52 AM

    Hey, I recommend her to try interactive coding course at BitDegree. It is suitable for absolute beginners. This was my first completed coding course. It is very engaging and easy to learn. Hope she will love it too. Here is a link: https://www.bitdegree.org/course/coding-for-beginners-space-...
  • by otras on 8/21/19, 11:42 PM

    Is she looking for a full course? If so, I highly, highly recommend Harvard's online CS50. Tremendous course, and I think it gives a really great foundation for algorithmic thinking.

    If she's looking for something a little less intense, MIT's Intro to Programming w/ EdX is also a great way to learn more about problem solving, and since it's in python it's a little more approachable.

    Both are free and online, and I highly recommend either of them.

  • by Theophraustous on 8/21/19, 9:21 PM

    I've taught a few friends the basics by using codecademy's free javascript course while also tutoring. Unless they've changed it, it has you build a simple console cash register. It introduces each of it's concepts very organically, & if they get stuck on any of javascript's idiosyncrasies I'm there.
  • by sloaken on 8/21/19, 6:23 PM

    If you want them to learn to think about how to develop code, but not a particular language I recommend: https://www.coursera.org/learn/programming-fundamentals