Live data from Hacker News

Ask HN: Learning to code, without a computer?

news.ycombinator.com

51–60 of 194 posts

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

#51
I had to learn to program with pencil and paper, but I had occasional access to a computer, so I have to ask for more info. How long until your friend gets out? Will he have zero access to a computer while inside? Will he have someone on the outside who can take handwritten code, enter it, run it, and send back the results? If so, what will the turnaround time be? What does he want to do when he gets out?

-- If he'll be in for a year or two with essentially zero access (no computer inside, no computer buddy outside), he should learn something related to programming (math, web design with CSS, etc.), basically re-ordering a typical multi-year learning sequence to put the coding later

-- If he'll be in for ten or more years, he should learn something else. His learning will be so slow and the field changes so quickly that he might learn a few timeless fundamentals, but that's all. He could accomplish much more in some other challenging field that didn't require tools he wouldn't have (ex: math, physics, accounting, ...)

-- If he'll be in for less than five years with access to a computer (via friend outside, for example) every couple of weeks, it could work. It would be like my situation when I was a kid and kids didn't have computers (but I was able to sneak some access). I would do it differently now from what I did then. I would read programming books and get my hands on lots of small example programs. You read the lesson, do the exercise on paper, run it on paper, and only when you are SURE it works (or you're SURE you don't know how to make it work), you read the "answer" (code written by a pro) and study it. Use worked examples as feedback when you can't get it from an actual computer. As you do this, write simple things and send them to the partner on the outside as you continue to work examples on the inside. The turnaround time won't delay you as much if you have other things to do while you wait.

Now, take his real situation, consider the above scenarios, and craft one that will work for him.

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

#52

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…

>> 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.

I'd pay good money to know what the prison superintendent thinks of this cryptic communication.

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

#53

On a CS-theory level, there's a fair amount of stuff he can learn in terms of just "thinking", but it won't come very close to being able to putz around with code and watch it fail. Suggestions for absolutely no computers: * CLRS, the classic. (I just skimmed the intro, though, and if he has no background in uni-level maths, it might be a little tough to digest.) * (maybe) the Head First series (as someone else sugge…

It also occurs to me that something like Bruce Tognazzini's Tog on Design may be very applicable to thinking about UI/UX if he only went in recently. (Not strictly programming, but very relevant.)

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

#55

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

And more to the point, taxpayers don't want their money to go towards enriching the lives of inmates, only their punishment.

"Why am I paying to have rapists, killers and thieves jerk around on the internet all day," they'll say, while voting out the party responsible and voting in the party promising to take the computers away and make the inmates break rocks in the sun until they drop.

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

#56
I had few months of GWBASIC experience from high school. Relative living in US mailed me Java the complete reference, i think the first editition with peter naughton still as co-editor. It was not a dedicated effort but read the book several times for two years during free hours without computer (could not afford one). Finally after getting used pentium, the transition to real programming was easy and fast. I remember having aha! moment of oop after year and half but by the end of two years i had pretty much mastered the core java.

I was driven by courisity, no pressure of completion and had all the time in the world. The book was thick with complete programs with outputs instead of snippets. Book also had list of all core packages, class and their members. It helped to grasp the core libs before hand.

I would suggest a comphrensive book. I have not checked any Osborne reference series since then, but check if there are similar ones for python.

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

#59
post #30

If your friend has free time, he may also enjoy _Code_ by Charles Petzold. It's a layman-oriented explanation of how computers work. Is he in state or federal prison? Are there no classes available that could give him access to a computer?

Thanks for the book suggestion! He is in state prison, and there are some courses but nothing to do with programming. To make matters worse, due to having any form of external support structure, he is categorized as a "low risk" of recidivism, and high risk people are given preferential treatment toward enrolling in classes. I don't disagree with this in theory. But unfortunately due to overcrowding, this means that…

Is there any chance you could just pay for him to take the classes? Or find prison correspondence courses ala

https://www.ohio.edu/ecampus/print/correctional/

or

https://www.adams.edu/extended_studies/undergrad/prisoncolle...

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

#60
post #4

Learning programming without a computer is going to be really tough, but if he's dedicated enough, he should be able to make some good progress. (Although he shouldn't expect to be employable as soon as he gets out.) CS theory probably makes a good starting point, as a lot of it doesn't require actual coding, but still lays a solid foundation for future work. I would recommend SICP (Structure and Interpretation of Co…

For self-guided study, HTDP (How to Design Programs) is more accessible than SICP.

https://www.amazon.com/How-Design-Programs-Introduction-Prog...

Post reply on HN