r/learnwebdev • u/bubencode • Jan 21 '15
Why beginners should start from JavaScript: "...it's sitting on top of an unprecedentedly ubiquitous cross-platform toolkit for layout, typography, and rendering. Want to display UI elements, images, or text? Use HTML directly. Want to do graphics or animation? Use canvas." Article by James Hague.
http://prog21.dadgum.com/203.html
5
Upvotes
4
u/brunokim Jan 21 '15
I'll just cross-comment what I wrote at /r/programming but is buried.
I heartily agree with his recommendations. I have experienced it myself by teaching JS to high-schoolers. It was a two days seminar for about 30 kids ranging from 13 to 15 yo, and I did it just once as a test at my father's school. I believe they did got interested in programming/webdesigning, or at least two of them answered they would explore more after that class :) Some of the benefits are:
Ubiquitous. They don't need to install anything at all, as every computer has a browser. This is a great win if they don't control their machine.
Empowering. They already know and use the web daily, now learning (some part of) how it is made shows that it's all within reach.
Self-learning. At first you need to teach HTML and CSS so they can have a notion of DOM and what does it mean to manipulate it. I told them about F12 and how they could read and steal absolutely anything from other sites, and 15 minutes later each student had incorporated something they liked at their webpage - an image, a style, colors, etc.
Graphical. It's hard to motivate non-nerds about how cool it is that you can calculate thousands of primes in seconds, or the benefits of implementing their own contact book in Introduction to Compsci. However, when you can absolutely see the results of your work, the motivaton is immediate.
Great tools. I could teach debugging and interactive programming from the start, thanks to the console inside browsers. Several had problems, of course, but some could manage to find their mistake on their own.
It was a great experience for me as well, because I was so wrong to believe kids couldn't use a computer and were too lazy to solve their problemas, but found the opposite. Of course, there was this kid that sitted on his ass and complained that it didn't work, so I had to go fix his typos. They did manage to understand the tree structure of the DOM and how style cascades down, which I believed would be a complicated matter. I didn't try to teach loops, but I may do it the next time :)