Live data from Hacker News

Ask HN: Advice for 14-year-old who wants to learn to code?

news.ycombinator.com

11–20 of 36 posts

Re: Ask HN: Advice for 14-year-old who wants to learn to code?

#11
I would introduce him to coding by starting with the basics of HTML and progress through the following:

(install MAMP or WAMP for him to get him started, then get him a domain name and hosting for his own simple website)

HTML CSS javascript jQuery PHP MySQL

I recommend Head First HTML and CSS to get started. The other books in the series are good as well all the way up to Head First PHP and MySQL.

TeamTreehouse.com is a good place to start as well or pick up with once you make it through a few of these books.

Once he gets through those I would point him to learning Rails and/or Laravel frameworks creating a few web applications.

Apps are fun too if he has an iPad and/or iPhone go through the iOS App tutorials on TeamTreehouse.

Good luck in 2015.

Re: Ask HN: Advice for 14-year-old who wants to learn to code?

#12
I'm sure there will be a ton of good advice here, but one thing that I've always found helps a lot, regardless of what other resources or approaches you are using is to come up with a project that you want to complete and then use that to focus the rest of your learnings. It helps guide the learning and exploration.

It's probably better to pick something smaller and more achievable at first so you can make some early progress and experience some successes but picking a huge goal is fine too, you just have to break that huge goal down into smaller and smaller ones until you have a reasonably sized sub-goal to break off and work on.

Re: Ask HN: Advice for 14-year-old who wants to learn to code?

#14
A lot of college introductory classes use python as a learning language, and I think that's a good thing.

I would suggest heading to the library (whether public or high school's) and taking out a book on Python. There are a lot of online books, but I find that having a physical book you're learning from is a worthwhile experience. There's less distraction, and watching that bookmark move from the beginning to the end of the book is very satisfying. Also, I thnk it's extremely important that you be there to guide him, and foster inquisitiveness, as that's a very key property of some of the greatest computer scientists and hackers.

I will echo Igas's suggestion also -- it would be great if he had something he wanted to build to channel this urge into. Even dinky little programs like text-based calculators feel impressive when you're starting out, and get you a feel for programming quickly.

When he wants to cut his teeth on stuff that is "real world useful" you can show him a framework like Flask (which is wonderfully minimal), and have him make a web server on localhost. That would be a perfect segue into web tech (HTML/JS/CSS). That might also be a good time to introduce a second language, like Ruby (which is similar enough to python) to show how similar languages can be to each other. I would say this sets you up to introduce the most important parts of CS: the data structure & algorithmic underpinnings. This is the stuff that sticks with you for a very long time and is always useful, no matter the language.

This might be wishful/meaningless thinking, but you could also introduce him to SICP classes by abelson and sussman. I say this for a few reasons:

1. Lisp is simple, yet powerful (they show this)

2. The realization that very little about computer science is actually "new" thought

3. Introduction to the plethora of college-level courses available for free, and getting used to being in charge of your own education (but using a more traditional medium)

Re: Ask HN: Advice for 14-year-old who wants to learn to code?

#15
Blimey, what a complex set of things to learn nowadays - writing apps and javascript !

When I was a lad I started with the most powerful computer I could afford - a pencil and paper.

Show him this

https://www.cs.drexel.edu/~bls96/museum/cardiac.html

See if it interesting.

Then I moved on to the next most powerful computer I could afford - a ZX81 with 1k of RAM connected to a television set!

I would type programs in from books and magazines and see if I could get them to work - so I learned to fix programs before I learned to write them.

So I still advocate this route. Not writing apps for iPhones or trying to write Xbox games and build websites.

Buy the simplest thing I can find - something like an Arduino that does things on a small scale. Learn how computers work, not how to program them.

Re: Ask HN: Advice for 14-year-old who wants to learn to code?

#16
Why is he interested in programming? It must seem cool to him for some reason. I'd try to tap into that in order to find a direction to go in. And for a 14 year old, it would be helpful to find some heroes. Without the cool and the heroes, it may be hard to devote the time for it to be impactful.

Re: Ask HN: Advice for 14-year-old who wants to learn to code?

#17
post #11

I would introduce him to coding by starting with the basics of HTML and progress through the following: (install MAMP or WAMP for him to get him started, then get him a domain name and hosting for his own simple website) HTML CSS javascript jQuery PHP MySQL I recommend Head First HTML and CSS to get started. The other books in the series are good as well all the way up to Head First PHP and MySQL. TeamTreehouse.com i…

Please. For his sake and humanity's sake: use a real programming language and not PHP.

Re: Ask HN: Advice for 14-year-old who wants to learn to code?

#19
IMHO the most important thing is to keep his interest continuously for several years. I would suggest these steps: 1: Finding what is interesting for him - games, web, automation, hardware, etc. Open source project or good step-by-step tutorial is good starting point. 2: Preparing a build environment 3: Building and running 4: Doing small change in the sources - renaming something, etc. 5: Building and running again ... N: messing deeper with the source, changing complex things N+1: Building and running

In that way he will learn the fundamental process of building something in small steps and endless iterations, messing with other peoples code and navigating easy in it - that one is important too.

Re: Ask HN: Advice for 14-year-old who wants to learn to code?

#20
I just taught my sister to code. Started out by talking to her about different kinds of projects/things that can be accomplished using programming. Once she had a grasp of what all can be done, she told me about what she wanted to do. She wanted to build a website to track food. Sent her to https://dash.generalassemb.ly/ to get started. After finishing that, she has now started googling specific tutorials and building the site on her own.
Post reply on HN