r/learnprogramming • • Jun 01 '17

I'm in prison & trying to learn to code.

I'm currently in prison n I been interested in programming/coding for years. Now that I have the free time n I'm ardent, I'm reading HTML &CSS by Ducket n I have a list of beginners books ima order. Is this futile since my resources are limited? I basically have a 3G Android smartphone, I'm a TA in the edu Dept for the computer class here so I have access to a comp but no internet access other than when I'm in my cell on my phone. Appreciate all suggestions n advice.

Thanks to all of you that had an input as well as the funny comments. That was over 2 years ago, since then I was moved around to a few prisons. I landed at one where they had a famous coding program for inmates, was accepted and excelled in the class. I'm proficient but nowhere near where I could be or will be in Python and JS, Python being my favorite. I'm extremely close to going home and can't wait to continue my education. I did finish both degrees in science and math as well as social behavioral science (both AAs). Now I hole to transfer to a four year school upon my release with help from some great orgs, I have been in contact.

2.5k Upvotes

523 comments sorted by

View all comments

Show parent comments

204

u/Fatbaldman Jun 01 '17

type everything line of code in those books out. I dont know if they will allow you to download a text editor. If not use notepad or anything to type it out.

200

u/[deleted] Jun 01 '17

This is really important. You may look at the lines in the book and think "that makes sense, let's move on" but you will find it much harder to write the same code yourself later. Typing out every line has a special way of making you understand it more deeply and be able to recall it better.

59

u/n-doe Jun 01 '17

This. It is best practice to do so. Always take a break too and let your brain process the information.

6

u/krymsonkyng Jun 01 '17

It is very much like learning a language: Practice gets you there fastest.

8

u/[deleted] Jun 01 '17

That is so true

25

u/wolfenx3 Jun 01 '17

This is probably some of the best advice on here, for me the thing that took me the longest to get down was just the habit of getting the syntax down. I tried to skip what /u/Fatbaldman suggested and had the hardest time writing my own code. Literally type every piece of code out that is in the book you read.

And honestly if you can't always type it out write it down. I have had friends go into interviews and the person wants them to handwrite code.

16

u/QuiGonDylan Jun 01 '17

I think you guys just convinced me to begin learning how to code. This may be the best thing I've ever read.

8

u/drunk_kronk Jun 01 '17

In fact, studies have shown that hand writing is better than typing when it comes to how much someone can recall.

13

u/lidstah Jun 01 '17

On a side note, if it's allowed by his prison's rules, and if OP can afford it, a small bluetooth keyboard for his android phone, for example this one on Amazon, ~12$ (w/o batteries) and something like DroidEdit (free code editor, first google suggestion with a decent rating - there is surely way better solutions (I'm a Vimmer myself but won't recommend it to new users)) or equivalent might help OP getting started - as he seems interested in frontend Web development, he would be able:

  • to code in his cell in relatively decent ways (almost real keyboard instead of virtual keyboard, so, better typing, more screen space usable because it will not be used by the virtual keyboard)

  • syntaxic coloration of his code thanks to a correct editor, which will help differentiate keywords, variables, and such

  • Test his code through the available browsers in Android (Chrome, Firefox)

Of course it's clearly not the perfect developing workstation, but it should help OP getting things done with the tools he has at his disposal (minus the keyboard, which I hope he would be able to afford).

Wishing OP the best: having the will to learn, especially in an environment like a prison, is the key to your future. Sorry for any mistakes in this post as english is not my main language.

4

u/PinochetIsMyHero Jun 03 '17 edited Jun 03 '17

As OP mentions elsewhere, this is an illegally obtained cellphone. Most likely, it was smuggled into the prison inside someone's asshole. Doing that with a keyboard would hurt a lot worse.

6

u/Bahatur Jun 01 '17

I'd like to chime in and say using notepad is perfectly fine; I did an Electrical Engineering degree - lots of C - almost entirely in notepad or notepad++.

Text editors and IDEs are about productivity rather than learning.