Ask HN: Gift for a 11-year-old hacker
1–8 of 8 posts
Re: Ask HN: Gift for a 11-year-old hacker
#2Re: Ask HN: Gift for a 11-year-old hacker
#3I'm not a programmer by profession, so take everything I say with a grain of salt, why not trying to show what a ruby add/multiply function looks like:
#!/usr/bin/env ruby
def add(x,y)
b = x + y
return b # could be just "b" or omitted but I consider verbosity a *virtue* here
end
Of something like: #!/usr/bin/env ruby
def hello(name)
puts "Good morning, #{name}"
end
I believe Ruby is a better choice than Python because it can be more verbose, closer to English and doesn't rely on indentation. Javascript might be another option, but explaining the difference between class and function in JS to a novice might be problematic.There's this book which is rather playful: http://poignant.guide/book/chapter-1.html
Re: Ask HN: Gift for a 11-year-old hacker
#4Maybe show her that she can put dots of any colors on screen using html canvas and javascript. Show her how to draw lines. How to draw circles and color them. Show her how to move them....That should be enough to get her off from Html/Css and move to real computer programs...
May be just leave her alone..encourage her to spend less time with computers and go out and play with other kids..She is 10 year old, right?
Re: Ask HN: Gift for a 11-year-old hacker
#5Re: Ask HN: Gift for a 11-year-old hacker
#6Re: Ask HN: Gift for a 11-year-old hacker
#7It's not cheap, but I'm a big believer in encouraging this kind of learning, and I feel like it's been worth it. They range from 7-13 yrs.
Re: Ask HN: Gift for a 11-year-old hacker
#8Get her a decent hacker's keyboard. She will treasure it always. https://elitekeyboards.com/products.php?sub=pfu_keyboards
LOL. Why? What are the advantages over the multitude of other mechanical keyboards out there these days?