by ChicagoBoy11 · 9y ago · 0 comments
This isn't to say that such resources don't exist, but the fact that Javascript is the language of the web will simply make it impossibly difficult to follow a nice coherent pattern and you/the child will instead inevitably slowly drift to other things, and the risk is moving onto other concepts before the necessary scaffolding is in place and before they have a firm grasp of basic programming principles. Since the "web" is right there, it will be hard to fight the urge to start to do "engineering" while the focus should be on basic cs and programming concepts.
My advice (former school administrator) therefore is to teach programming to a kid using a canonical resource that they can use as a bible, but one also that will give them the freedom to build interesting things that they can share with others. I think Matthias Felleisen's HTDP is a fantastic book. You simply can't beat it when it comes to talking about patterns, design recipes, and overall how to test and think about an algorithm. And while the syntax may be challenging at first, functional programming and LISP in general actually offers less of a mental leap for kids who are used to algebraic expressions and function composition.
If this is a gifted 10-yr old, HTDP with some adult guidance will offer you the best bang for your buck long term. Some of the projects at the end even involve networked games, so there will be plenty there to motivate a hungry youngster.
EDIT: I forgot to add this: I mentioned that the syntax is challenging to kids at first BECAUSE there are so few rules, there is quite a bit they have to keep in their head as they write even very simple programs. You have to very quickly internalize the idea of function composition or else you are stuck, and that may be challenging for a young child at the beginning. But, at the same time, I think this is also a huge STRENGTH of the syntax. If he/she isn't getting this, it is pretty obvious and you simply cannot go anywhere until this happens, which isn't necessarily a bad thing. And, once they grasp this concept, then it is actually extremely easy because there aren't really any other syntactical rules to memorize and keep in order! This did require a lot of focus of kids, but I think there was something reassuring in the fact that they felt confident they understood all of the necessary principles of how the language was working, and that if they experienced issues, it was either in their own logic or in chasing some rogue parens. YMMV
Therefore, my advice to begin with a single canonical resource is that this increases the likelihood that someone's introduction to this stuff will be coherent and well-reasoned, and will introduce him/her to solid fundamentals. As someone who has been involved with teaching kids and coding, it is unfortunately very much the norm that "coding" classes devolve quickly into copy and paste exercises, and the reason for that is that is that kids' gap in understanding ends up simply being replaced by pattern-matching.
With programming, you have so many competing motivations/factors -- what you want to build, what you are learning, why you are building/learning, etc. -- that it becomes quite challenging to juggle everything coherently. I've always favored a single canonical resource to start because, more than anything, it is a way to drown out that noise. If you pick a good book, there is a rationale behind the order topics are introduced and there is reason to the increasing complexity and difficulty of the exercises presented in the book. If you hop around doing different things, you massively increase the chance that there is some basic concept you won't learn and that you will start creating an improper mental model of how things work. And, without this canonical resource, you may have a really hard time seeing that the reason you are struggling is because you lack some basic understanding.
So, I agree with you that there are no jobs worth having where a "bible" is provided; but I think that a learner -- and especially a novice learner -- greatly benefits from a resource like that to ensure that they have solid fundamentals onto which they can then graft other knowledge they seek out themselves.
I was a copy and paste web-developer for a while and it got me by but just barely. At some point, I discovered Michael Hartl's Rails tutorial. Rails was pretty foreign to me compared to the basic HTML/JavaScript stuff I was doing but I found it interesting and gave me the opportunity to learn web development from first principles.
Learning Rails in that environment made me a much more thoughtful and deliberate developer. All my applications since, even though they aren't in Rails, have benefited from that experience.
I have had personal experience with being commissioned to write a comprehensive resource for work. It is really a futile task in a lot of cases. Things change so quickly that they are different before, during, and after the writing and editing process. This does allow for the room for the learner to fill in the gaps and develop critical thinking and discretionary skills.
I think I was seeing this as too black and white when there are many shades of gray.
Once again, thanks for the education.