Live data from Hacker News

Ask HN: Learning to code, without a computer?

news.ycombinator.com

11–20 of 194 posts

Re: Ask HN: Learning to code, without a computer?

#11
Sounds like a great opportunity to learn set theory, abstract algebra, number theory, linear algebra. You could get a working comprehension of cryptography or computer graphics. You could get a handle on category theory.

Those are topics that one could make progress on with only a pencil, paper, and the occasional phone call to a mentor.

I cannot imagine submitting punch cards and reading JavaScript stack traces by mail.

Re: Ask HN: Learning to code, without a computer?

#12

Learning to code without a computer is what we all did, 40 years ago! He may write programs on paper, and send them to you to type them in, compile them, and print out a listing with the errors. You then send back the listing, and he will correct his program and repeat. He'll become a great programmer, since he will have to be extra careful to avoid losing one week on some typo. Now, it's been a few years since gcc h…

A few years ago I used to print out programs using this little tool: http://linuxcommand.org/man_pages/enscript1.html

Re: Ask HN: Learning to code, without a computer?

#13
I learned programming without a computer in the 90s with Kernigan & Ritchie "C Programming Language", one of the best coding books ever written:

https://www.amazon.com/Programming-Language-Brian-W-Kernigha...

I'd also learn SICP: https://www.amazon.com/Structure-Interpretation-Computer-Pro...

and algorithms from either CLRS https://www.amazon.com/Introduction-Algorithms-3rd-MIT-Press... or Skiena Algorithm Design https://www.amazon.com/Algorithm-Design-Manual-Steven-Skiena...

Re: Ask HN: Learning to code, without a computer?

#14
post #8

I remember reading an articulation that it is odd that we are taught to program differently to how we are taught to play music. With music, we are taught to read before we write. With programming, we start out writing. This seems like a great chance for your friend to try out the music learning approach. Send them books of excellently written programs, and allow them to read before they write. [As a side note: What i…

I'd actually make your point even stronger. I think we're in a preliterate state with programming: it's hard for anyone to quickly look at a program listing and answer the basic sorts of comprehension questions we might test school kids on for prose.

What we find easy is to read programs we wrote. Recently.

(I'm trying to help change this: http://akkartik.name/about)

Re: Ask HN: Learning to code, without a computer?

#15

Learning to code without a computer is what we all did, 40 years ago! He may write programs on paper, and send them to you to type them in, compile them, and print out a listing with the errors. You then send back the listing, and he will correct his program and repeat. He'll become a great programmer, since he will have to be extra careful to avoid losing one week on some typo. Now, it's been a few years since gcc h…

"Now, it's been a few years since gcc has been able to produce a real listing..."

Can you share with readers the version number for the last gcc that can do this satisfactorily?

Re: Ask HN: Learning to code, without a computer?

#16
post #13

I learned programming without a computer in the 90s with Kernigan & Ritchie "C Programming Language", one of the best coding books ever written: https://www.amazon.com/Programming-Language-Brian-W-Kernigha... I'd also learn SICP: https://www.amazon.com/Structure-Interpretation-Computer-Pro... and algorithms from either CLRS https://www.amazon.com/Introduction-Algorithms-3rd-MIT-Press... or Skiena Algorithm Design htt…

Along with SICP, The Little Schemer would be a great book to work through on paper. https://mitpress.mit.edu/books/little-schemer

Once that is worked through, Godel, Escher, Bach would be an especially entertaining and enlightening read.

Re: Ask HN: Learning to code, without a computer?

#17
If your friend plays chess - or any 1 vs 1 board game - he can implement a chess program and execute the algorithm by hand to see how his program performs. I haven't done that myself, I am sure it's tedious, but at least he will be able to see his algorithm running.

Re: Ask HN: Learning to code, without a computer?

#18
This is a good question for old timers that learned to code by rote with a home computer back in the day when you could learn a language and all of it from a couple of manuals. But times have changed and nowadays I do not have any books directly relevant to my current programming skill set - Stack Overflow is my friend.

So what books do I have?

Books on usability and web accessibility are good reads, however no obvious title springs to mind ('Don't Make Me Think!' would last your friend all of a morning).

One thing though, chess. Chess is played in prisons and some prisoners get rather good at it. Maybe encourage your friend to form a chess league if there isn't one already. Perhaps get him a really good book on chess that can be used by this chess league to be.

Re: Ask HN: Learning to code, without a computer?

#20

I don't understand why they don't give inmates access to a computer for a few hours per day. When they're out the hard working ones will have programming skills which will help with the job hunt.

The goal of our penitentiaries isn't rehabilitation or to prepare inmates for a life outside of jail
Post reply on HN