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

485

u/Minkelz Jun 01 '17

If you can get access to books and a computer you should be pretty good. For web dev, practically speaking you really want to be working on the web pretty quickly - but for programming it's not really required. You might need a way to occasionally connect to download and install a compiler or ide occasionally, but you don't need to be connected everyday.

301

u/Clydeazy Jun 01 '17

Thanks minkelz. I'm super new to this so I was just gonna read everything I could on the subject n this HTML book came first so I dove in. I like it alot n im understanding it so far. Im working on my science n math degree n want to pursue a CS degree when I come home. My list of books are beginners Java, c#, Python....

3

u/FluentInTypo Jun 01 '17

Can people send you books? I mean, are you allowed to recive books from people on the internet?

→ More replies (2)

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.

→ More replies (3)

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.

→ More replies (2)

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.

→ More replies (1)
→ More replies (1)

32

u/StrangeArrangement Jun 01 '17

This is a very good resource for learning cs which shouldn't be as internet dependent as web development.

90

u/jayhalk1 Jun 01 '17

Python is the bomb. It's also... The only language I really know.

33

u/kotoromo Jun 01 '17

You probably know about 1/2 to 1/4 of JavaScript then :)

→ More replies (8)
→ More replies (3)

12

u/k3yboardninja Jun 01 '17

Considering you situation and limited net access I might also suggest picking up a good old C++ or even C book. If you have time and patience and master C then all other objective languages will come easy to you. I also recommend this because if you can start to learn C, and bash, you can basically spend all the time you have working on a local windows or linux system writing programs to interact with the OS or locally. Where as you might have trouble implementing and understanding web languages sans the web.

→ More replies (2)

33

u/Finbel Jun 01 '17 edited Jun 02 '17

If you're working on your math and might pursue a CS degree I'd recommend Cracking the Coding Interview. I actually haven't read it myself but it's a highly recommended book often mentioned on subreddits like /r/cscareerquestions

EDIT: Perhaps pair it up with books on algorithms and data structures so you get comfortable in working with, lists, arrays, trees, graphs etc :)

EDIT: (currently 0) Why would someone down vote this? I just don't understand why?

EDIT: Someone mentioned that it could perhaps be because I hadn't read it myself so I thought I'd add a heartfelt recommendation by /u/amputect that I just read in the authors AMA:

Gayle, I don't have a question, but I wanted to say that your book helped me get two programming jobs. I used to push grocery carts in the arizona summer, now I work for Google. I also, like, went to college and learned and stuff, but your book was a huge help in prepping for interviews. Thanks to you, I felt more confident and more prepared, and I was able to interview with several major tech companies without fear vomiting a single time which for me was a pretty big deal. Seriously, thank you, thank you, thank you. Your book is great, I recommend it to everyone. You are a fantastic writer and a brilliant human being. Thank you!

15

u/livin4donuts Jun 01 '17

As for the downvotes, people are probably just salty that u/desrtfx is putting his mod foot down. I for one approve, because people were being douches to OP. Otherwise, your comment was fine.

→ More replies (2)
→ More replies (3)

1

u/[deleted] Jun 02 '17

How much control and access to your phone do you have? Typing on a touchscreen can be tedious, but you may be able to use web based compiler or interpreter.

→ More replies (5)

1

u/[deleted] Jun 03 '17

Depending on how they blocked IE, you may have a way to display HTML, CSS and even some javascript from within MS Office. There are a bunch of ways, and one of them may work.

https://stackoverflow.com/questions/23257042/editable-html-css-and-javascript-within-powerpoint-presentation

https://superuser.com/questions/273864/how-can-i-embed-a-webpage-in-a-ms-word-doc

The insert -> online video seems the most likely.

→ More replies (1)
→ More replies (9)

3

u/[deleted] Jun 01 '17

Even on the web side though, he could just dl xamp to his phone and then throw the installer on the PC... even without internet... he could host locally and at least do some PHP... no?

4

u/[deleted] Jun 01 '17

What if they don't let inmates install software on the prison computers?

8

u/Clydeazy Jun 01 '17

Yea no way I can take my phone to the edu Dept.

19

u/BostonTentacleParty Jun 01 '17

I don't think they're gonna let him move files from his phone to a prison computer, and they're definitely not gonna let him install software.

→ More replies (1)

3

u/bigfig Jun 01 '17

I totally agree, and without google, you'll be forced to memorize stuff. In some ways that might be an advantage.

→ More replies (1)

35

u/Clydeazy Jun 01 '17

My girl printed out c# by Rob Miles so waiting on that. I love to read n love the subject but feel hindered bc of where I am

8

u/mynoduesp Jun 01 '17

Try some html visualisers online... you type your code and see the result in real time. Not the ideal environment, but good for quick and easy understanding of certain markup examples

http://htmledit.squarefree.com/

try typing something like this in to see an example:

<style> .black-bg{background-color:#000;color:#fff;padding:5px;} </style>

<div class="black-bg">

Here is black background with white text.

</div>

2

u/[deleted] Jun 01 '17

Will you be able to use an IDE (like Visual Studio for PC or Mac) with which to program and compile C#?

Crucially, C# is a compiled language, while you'll be able to run any html, css or javascript just by typing it into a plain text file and executing it through a browser.

→ More replies (1)

31

u/[deleted] Jun 01 '17

I'd say you have a really hard situation. And I'd advise going old school. The problem with the most modern programming language is that they are modern. They are well aware of the ready availability of the internet and documentation online.

Older languages are usually harder. This is mostly due to the fact that system memory was much more a precious resource. But as you've pointed out, you got the time. I'd advise you to get yourself two books. One encyclopaedic overview over the C++ language and one guided course through the language.

Why C++. Well, it's hard, because you have to manage your memory yourself, you need to understand the concepts you're working with or otherwise, you have security whole as large as your favourite 'your momma' joke. Most modern languages have safeguards and everything unsafe is actually marked as unsafe. Not in C++. C++ is at the same time object-oriented and procedural. Its syntax is the basis of many other programming languages.

And lastly, it still has valid uses. Programming on Linux systems, on games, on embedded hardware is often done in C++.

It is easy to change from C++ to a more modern language like C#, but quite hard the other way around. It will teach you how a computer really works. And it does have a lot of almost complete offline documentary.

Downside: Quite hard to learn, even harder to master.

4

u/Clydeazy Jun 01 '17

Thanks for the advice

6

u/-Pin_Cushion- Jun 01 '17

Also, "hard to learn" often means "hard to hire for," which might offset the black mark of having a record for future job searches.

→ More replies (1)

81

u/Millenial_Uprising Jun 01 '17 edited Jun 01 '17

Hey, These resources are some of the best resources i've encountered on front end development. I would suggest using these as a good starting point.

40

u/Clydeazy Jun 01 '17

Thanks alot I figured if just read everything I can get my hands on I'll at least be somewhat ahead. I already try to read every book in library. Systems engineering is the ultimate goal. Keep the links coming ima read EVERYTHING. Is there anything i can do from my phone to practice? Keep in mind it's kinda old 3G Android.

13

u/Clydeazy Jun 01 '17

Thanks baldman. Yea the book tells me the same. Also I turn on the Microsoft excel to show the code just to see it n Little by little it's starting to make sense

→ More replies (2)

3

u/zimmertr Jun 01 '17 edited Jun 01 '17

Hi, I'm a System Engineer. Or rather a specialized version of one called a DevOps Engineer. I work primarily in the automation space as well as maintaining the infrastructures for company's that run their business through websites.

If you have any questions, feel free to let me know and I'll do my best to answer.

System Engineering is a very rewarding career. And very high paying. It will give you an opportunity to leave an internal legacy at almost any organization you work for and most jobs don't care if you have a degree or a criminal record as long as you have passion and the know-how. It's very difficult and stressful at times though. And doesn't always have great work life balance either. Especially when you're in charge of infrastructures that thousands of people are using every day and something goes wrong.

My System Engineer coworker as my last job was a registered sex offender without a degree, for example. He made a little over 50k which made him reasonably well off in the Midwest.

→ More replies (4)

30

u/shiivan Jun 01 '17

Download this app called sololearn, you will benefit the most out of this considering the context.

Best of luck to you!

https://play.google.com/store/apps/details?id=com.sololearn

→ More replies (2)

21

u/Rorimac2 Jun 01 '17

You'll be fine. Find free Python resources online.

21

u/Clydeazy Jun 01 '17

Thanks Rori. Anything specific you suggest I can print n get sent?

6

u/UpBoatDownBoy Jun 01 '17

Are you allowed usb drives? You could just throw pdfs on there instead of printing everything.

12

u/NoYoureTheSockPuppet Jun 01 '17

I'm reading through these responses, and I see a lot of people recommending websites or web videos. That doesn't seem super useful - I'm assuming that you have access to a desktop computer, but internet access only via your contraband phone. I'm surprised you were able to post on reddit, there's no way you're going to be watching hour-long videos on it.

In any case, my recommendation is to go old-school. Get a book on programming, used from amazon is probably the way to go, or failing that get someone to print out a pdf and mail to you. There is a publisher named O'Reilly which has animal covers on the books. They're very good, and cover pretty much any topic. The ideal would be to get an intro book as well as a reference book.

Do you have a computer that you can install software on? Or does the computer you have already have software installed on it you can learn to program with? I say this because that will probably determine which programming language you should start with. Programming is not a spectator sport - if you really want to learn it, you will need to actually try to get stuff working.

If you only have Microsoft Office applications installed (Word, Excel, etc.) then you should start with Visual Basic, which is built-in to those applications.

If you have a web browser (Internet explorer, chrome, firefox, etc.) then you should start with html/css/javascript.

If you can install programs, get a book that comes with a CD, and maybe start with Python, C, or php. Python is high-level and relatively easy. C is kind of a pain in the ass, but it is small and teaches you (with the right books) how a computer really works at the lowest levels. Php is a webserver programming language and very common, but possible to learn without access to the internet as long as you can set up your own local webserver.

Good luck!

Programming is not an easy thing, but my favorite part is that it is powerful - a computer will always do exactly what you tell it to do. The hard part is figuring out what it can do, and how to fit what you want it to do into that framework.

3

u/Clydeazy Jun 01 '17

Really helpful! Yea Basically just word excel n PowerPoint. I won't be able to install anything on there since I get searched on going to the edu Dept. I'm excited about learning everything. Im waiting on my Python book

11

u/NoYoureTheSockPuppet Jun 01 '17 edited Jun 01 '17

If you can't install anything and don't have a web browser installed, you might want to try learning Visual Basic (specifically Visual Basic for Applications, or VBA).

It is built into word/excel/powerpoint, and is a decent programming language. Once you have learned one programming language, it is much easier to learn other programming languages, and learning is a lot easier if you can actually get the program to run.

→ More replies (5)

3

u/FlickMyDic Sep 23 '17 edited Sep 23 '17

Have you tried turning on a mobile hotspot on your phone and using your Xbox to connect to the internet and use a browser so you can watch things easier?

Edit: I'm also pretty positive that some phones you can directly plug your USB charging cord from your phone to your Xbox and that will also give your Xbox internet. Might be worth it to try either so you can watch things better and more.

2

u/Clydeazy Sep 23 '17

They sell us the Xbox with out the wifi chip it comes with but you can buy them for around 200$ when they come around.

3

u/FlickMyDic Sep 23 '17 edited Sep 23 '17

You might try hardwiring it directly to your phone as I mentioned in my edit, but that seems like it would be a stretch to get working.

Seriously, damn, two bills for the WiFi connection, Highway roberry, how much was the Xbox itself? And the TV for that matter?

→ More replies (2)
→ More replies (1)

210

u/everest26 Jun 01 '17

Good luck man, really impressed by your attitude! You can totally do it, I used to learn coding from books. One after another I went through all the programming books I could find at the library and I'm now a manager at a very large tech company.

It'll be much harder for you but you can absolutely learn how to code from books!

8

u/[deleted] Jun 01 '17

Nice drive man/girl !

How old when you started and how old are you now ?

29

u/Clydeazy Jun 01 '17

Came in at 27 I'm 31 now

21

u/saadzaheer Jun 01 '17

Can you please suggest some good books?

24

u/everest26 Jun 01 '17

I did most of my beginner's reading 9-10 years ago (and not in English either) so that wouldn't be useful.

But, the key is that it doesn't matter! I didn't research the best books on the market, I read whatever the library had.

Don't get obsessed over finding the perfect books, worst case you waste 10hrs reading a mediocre book. Just go to the bookstore and read the first five pages of each book that seems interesting and pick the one you like. Or go to website of O'reilly and look at their bestsellers. Or take some free classes in iTunes U, Coursera etc.

The key is just start somewhere and keep going, any book will teach you something and if not skim through it and read the next one. You're in control here, assume agency over your own learning and don't hold the books or your CS teachers or the quality of your online tutorial responsible for your progress.

11

u/[deleted] Jun 01 '17

If you have Android 5 or later you can install Termux which offers a full Linux environment on your phone. I just wrote a hello world program in both C and Python 3. For older models there might be some other equivalent program.

1

u/Clydeazy Jun 01 '17

Android version 4.4.4 :\

20

u/Waitwhatwtf Jun 01 '17

Learning a language is a good idea, but I think to make the most of your studies, I would learn more of the theoretical computer science. Here's my thought process:

  • Flow of information is limited, if you're trying to learn a specific technology, if it's not deprecated, it is changing.

  • I would imagine your ability to keep a development environment up-to-date would be tough.

  • Technologies get you the interview, conceptual knowledge makes you valuable.

If you learn computer science concepts, and to an extent, software engineering concepts, you don't need to always be at a computer to learn.

If you have an idea, you can spend most of your away time in front of a notebook scratching out ideas and concepts that are critical to your idea getting off the ground. It will become evident what you need to learn.

Furthermore, computer science and software engineering concepts are change-resistant. Some hip, new piece of technology may come and go, but the ideas you learn from understanding fundamental algorithms and data structures, as well as how to use them, haven't changed significantly.

Think of it this way: someone might be hiring for a person who knows how to use a claw hammer. If you've only trained in how to use a mallet, and really only understand the mallet, you're out of luck. But, if you know the underlying principles of how the tools work, you may have only used a mallet, but you can talk about how it works, and make assumptions about the claw hammer based on your core knowledge. Which, makes you more valuable as they may need later someone to learn about sledge hammers.

Kind of a goofy analogy, hopefully that makes sense.

5

u/Clydeazy Jun 01 '17

Thanks! I loved the analogy made perfect sense

→ More replies (2)

19

u/moe_reddit Jun 01 '17

Is this futile since my resources are limited?

No! Learning something new is never futile. Even if you don't become a master, you'll be way ahead of the average person by understanding coding. Maintain your focus and read/practice as much as you can. You can definitely become a professional programmer if you want to. Even if you work in a regular job, you'll be able to apply your knowledge of computers because (almost) every business uses computers and has a website/online presence.

There are tons of different specialties that you can pursue, but for now focus on the fundamentals. In addition to programming, I'd also make sure you understand the fundamentals of computer hardware, networking, SEO/Marketing, general web security tools/strategies, databases, etc.

Your girl can probably find you cheap books at thrift stores, used book stores, yard sales, flea markets, etc.

PS - I'm a recruiter. Ping me when you get out and I'll help any way I can.

10

u/Clydeazy Jun 01 '17

Thanks alot Moe, this facility only allows approved vendors so Amazon is my only way but that's how I get my text books for college usually used but it's all the same to me thanks a lot for the advice believe me when I say that I LOVE to read n will read anything I can get my hands on. I just ordered NASA systems engineering handbook bc it looked interesting n it was hella cheap.

1

u/moe_reddit Jun 01 '17

this facility only allows approved vendors so Amazon is the only way...

damn, that's a shame. So many cheap/free books out there that people don't want anymore. Is there a prison library at that facility? Or are all books personal items?

One last bit of advice... if you want to try to work in the professional world, you should also work on your English language skills. I know you're on your phone and probably typing a ton on this thread so that's tough, but little things like improper spelling, grammar and punctuation will work against you... even if you're technically strong.

If you become a highly sought-after programming wizard, it probably won't matter too much. But in all likelihood, you'll need to round out your tech skills with adherence to general business norms such as reading, writing, speaking and professionalism. As with the tech skills, keep practicing. Good luck! I'm impressed with what you're doing while inside. Keep up the great work!!

→ More replies (1)

•

u/desrtfx Jun 01 '17

To all the people who think it is necessary/funny to make stupid comments about OP's situation vs theirs:

This is neither funny, nor appropriate.

Every single such comment will be removed and I am seriously considering banning everybody who makes such comments.

OP is honestly trying to make something out of his time and this should get our full support, no matter what OP had done to get into this situation.

216

u/ArkLinux Jun 01 '17

Please ban them. Nobody should make light of another persons learning.

90

u/citymouse89 Jun 01 '17

Strongly agree. Please ban them. Being hateful and gross is unnecessary and counterproductive.

→ More replies (2)

94

u/WarWizard Jun 01 '17

I am both amazed and saddened that this is even necessary.

54

u/surgicalapple Jun 01 '17

Good call mod! I hate that people have the audacity to make fun of OP's situation when he is trying to learn abilities to better his life with limited resources in comparison to what many of us have access to. GO OP!

21

u/Not_A_Throwaway999 Jun 01 '17

Seriously, its a sub for learning to program, OP was just describing the reason for his lack of resources. People need to chill the fuck out and worry what this sub is about

30

u/andrewsmd87 Jun 01 '17

Ban them. Nothing pisses me off more than someone new trying to learn and asking questions, only to be shit on by experienced programmers telling them how stupid their questions are, as if they were never beginners themselves

7

u/[deleted] Jun 01 '17

You really should just temp ban (or perma ban if egregious enough) those who make sophomoric comments regarding OPs situation.

24

u/Aeisindriell Jun 01 '17

This is 2017, they should start making basic (obviously closely monitored) internet resources available in prisons. It's such an integrated part of society that you're setting people up for failure to return to the outside world if you keep them offline for more than a year or 2.

Props to OP for trying to do something worthwhile on the inside! Hope you can write some amazing apps or something to support yourself with when you get out.

32

u/Salmonellasally__ Jun 01 '17 edited Jun 01 '17

This presupposes that the American prison system is about reform, instead of punishment (and of course, free/nearly free labor).

If the point was reform we'd do a lot of things differently in prisons, I'm sure.

I second your props to the OP, I'm sure it's exceptionally difficult and OP should be commended for making the effort to make changes in their life despite the challenging circumstances!

Edit: just to clarify, I think it should be about reform (well, reform and reparation) too, I'm just bitter it's not.

→ More replies (3)

5

u/Crimson_Shiroe Jun 01 '17

I also vote ban on anybody who is making light of OP's position/attempt to learn.

12

u/[deleted] Jun 01 '17

I second banning those people as well.

5

u/[deleted] Jun 01 '17

Agreed, thanks mod.

1

u/grumpieroldman Jun 02 '17

OP is honestly trying to make something out of his time and this should get our full support, no matter what OP had done to get into this situation.

If someone wants to help him learn ... fine.
But acting like he deserves it?
Go fuck yourself.
You don't end up in prison because you didn't pay a parking ticket.

17

u/Clydeazy Jun 02 '17

Hindsight I should've left out the I'm in prison part huh? I'm sorry if this post offended anyone I just wanted some book list n to be pointed in the right direction. It wasn't imperative to let anyone know about my plight.

5

u/MayorScotch Jun 02 '17

You're not wrong to share your plight. You have limited internet time so it's best for people to understand so they aren't wasting their time.

10

u/Clydeazy Jun 02 '17

Yea you're right. But some I guess took it the wrong way. But the great advice I'm getting is worth it. The thread is getting alot if comments n I'm grateful for the advice I'm getting. Thanks, mayor.

→ More replies (1)
→ More replies (36)

16

u/PedroFPardo Jun 01 '17

A good introduction to Computer Science is CS50 at harvard

https://cs50.harvard.edu/


BTW my brother works in a maximum security prison. The most valuable forbidden item on that prison is a cell phone. If some other inmates found that you got a phone, they will kill you just to get it.

Sometimes this little privileges means a big difference.

1

u/[deleted] Jun 01 '17

If you can swing the bandwidth to watch the videos, CS50 will give you a great foundation, the lessons from which you can implement in whichever language you choose.

7

u/Clydeazy Jun 01 '17

I have YouTube action all day so maybe I can I will try.

3

u/Lynxx Jun 01 '17

How do you charge your phone?

→ More replies (5)
→ More replies (1)
→ More replies (1)

10

u/natdm Jun 01 '17

To be clear, you have no practical means of applying what you learn at the moment either, right? Remember that even a computer that is offline will get you what you need to practice CSS, HTML, and JavaScript.

How much longer are you in for?

12

u/Clydeazy Jun 01 '17

Thanks yea I read that. Tbh new laws changed this year since Im nonvio/nonsex offense they're going to knock off a significant amount of time but as of now 2021 is my out date.

31

u/tyuijvhvhcfcjf Jun 01 '17

That's four years. If you're diligent, you might get yourself a better education than some people get at university.

→ More replies (1)

5

u/ebaydan777 Jun 01 '17

If you need more books send info where I can mail these. I'm done with all my classes and have a few good books on C++, java and even Visual Basic!

1

u/Clydeazy Jun 03 '17

Thanks for the reply. I wish I could get books mailed in like that but they have to come from a vendor like Amazon or Barnes.

7

u/TomMoule Jun 01 '17

Just wanting to ask, how do you charge your phone in there? I imagine cells don't have an outlet and it would be very obvious charging somewhere else

0

u/[deleted] Jun 01 '17

[deleted]

8

u/Clydeazy Jun 02 '17

I have a tv n Xbox I'm not in Shawshank lol

3

u/Aarondhp24 Jun 01 '17

Hey OP, I fuel trains for a living so I don't get a LOT of free time. I basically read about programming, then while I'm waiting on fuel to go from one place or another I write my ideas in plain english on a legal pad.

Basically like this:

**if the number of gallons is greater than the number of gallons I have

then I need to refuel before starting on this train.**

Then when I get back home I can actually write it out in code and test it like this:

if (gallons > gallonsNeeded)

{

 needToRefuel = true;

}

Write your ideas down and then work on them as you have time to do so. Once you learn how to write code, you can do it without a computer and just do the debugging when you do have access to it.

2

u/Clydeazy Jun 01 '17

Thanks I'm still waiting on my other books so I'm excited to get to that point but as I said im hella new so trying to get there. The ideas are there tho.

1

u/Aarondhp24 Jun 02 '17

At let me add to this, in the early stages you may feel like the exercises are dumb or you may be struggling with something you think should be simple.

Take a break, mull it over, and come back to it. It's pretty easy to get discouraged when learning to code, but if you treat it like Mr.Miyagi in Karate kid (wax on, wax off) you'll nail the basics down and come out of there with a VERY marketable skill.

I think it's so fantastic you're doing what you're doing.

→ More replies (1)
→ More replies (5)

3

u/[deleted] Jun 01 '17

You could get your girlfriend to print out all the transcripts/ problem sets from cs50, that would be a great way to learn it.

2

u/Clydeazy Jun 01 '17

Great idea thanks

→ More replies (1)

3

u/rukia8492 Jun 12 '17

/u/desrtfx heads up I'm a correctional officer. This inmate is breaking the law by having a cell phone in his institution. Cell phones are one of the most dangerous things in a prison and considered contraband.

7

u/Clydeazy Jun 16 '17

I respect your job a lot. I agree they can be extremely dangerous in the hands of the "shot callers". I'm honestly just communicating with my family since I'm far from them and we both know how expensive the collect calls can get. I'm breaking prison regulations not "law". But I won't have this long.

164

u/Ok_Lumberjack Jun 01 '17

that feel when American prisons have better internet access than my country.

I also spent 2 months in the psychiatric ward here and they didn't even let us touch electronics. Shit dude this parity must not stand.

41

u/SpacingtonFLion Jun 01 '17

Just fyi, it would be a "disparity" in this instance. I hope you're feeling at least a little better these days than you felt then.

13

u/Ok_Lumberjack Jun 01 '17

I feel a lot better now. One thing I loved about the nuthouse was the food. Never had better chicken and fries.

→ More replies (1)

4

u/Finbel Jun 01 '17

Couldn't that potentially be for the protection of the patients? I've known people who've spent time in the psychiatric ward and could, while under psychosis, do major damage to their outside life through internet (harassing work colleagues etc).

So while removing internet from prison inmates feels like strictly a punishment that might cripple their ability to prepare for a life after crime (making it harder to leave it behind). I can see reasons for removing internet from the psychiatric ward.

4

u/yellingaccount Jun 01 '17

Oh course it's intended to be for the good of the patients. It's also a privacy concern and for even the lost lucid people a distraction from treatment (they work there hardest remove anything distracting on the ward while groups are in session).

However, being completely removed can damage your outside life as well. First week of treatment I definitely should not have been near the internet, but once the meds started kicking in I had professors to email, friends to reassure, as well as researching the meds I was on so I could identify side effects. On the last point many doctors unfairly want to prevent patients from doing research, even though in-patient is the easiest time to make major med changes. They put me on a med that had serious side effects that are supposed to be monitored through blood tests and movement tests, but they did none of these things.

→ More replies (1)
→ More replies (41)

9

u/SkyTech6 Jun 01 '17

0.0 your prison allows you to have a phone? Prisons don't have signal jammers?

5

u/Clydeazy Jun 01 '17

Some do, not this facility.

8

u/fidelis_ad_mortem Jun 01 '17 edited Jul 10 '17

He looked at for a map

2

u/albertsandstorm Jun 01 '17

Yo, you made a good choice, great way to spend the time.

Main thing you need to learn is feedback. How you feeling day by day, what you doing next, where are the dead ends... you need to bounce of someone. Teacher, mentor, friend, random strangers, online chat room. Just get feedback.

Next thing you need is to apply what you learn. Read / do / read / do over and over. Don't let your brain rest too much, get addicted to tinkering.

Last thing you need is long term motivation. Get this by doing shit each and every day.

Feel free to hit me up via DM. I have been teaching at universities for years and I own a digital agency. Happy to help you out for the fun.

Keep at it man!

3

u/Clydeazy Jun 01 '17

Thanks Albert. Like my 3rd day on here sorry for the ignorance but how do I DM on here?

→ More replies (2)

2

u/FlippngProgrammer Jun 01 '17

This post is very interesting, I want to find a way out to help you. I am surprised how many people are but mean about this post. I believe that everyone should have an opportunity to learn what ever they want without being judged for it by the stage they're in their life. What I would recommend you to do is to learn web development as it's easier to get into and you see more of what you are working on as a result. It's a lot of fun to work with and the learning curve isn't too bad. Otherwise, you could learn python which is probably built into your computer as most of them have it and if you don't have it you can install it from Python.org and look up tutorials on how to do basic things like printing, input, reading and writing to files learning how to manipulate data like lists and dictionaries. Hopefully you find this helpful and if you don't mind sharing when you get out the if you get a job or something related to programming and tell us about it? If you want to, as there are a lot of posts from people who landed jobs from the help of this sub-reddit and it's always interesting to here their stories. Wish you the best!

2

u/Clydeazy Jun 02 '17

Thanks for the encouraging words. I'll post what n when I can.

2

u/atheistexport Jun 01 '17

Was in your shoes, did seven years, learned math up to Calc 3 the way you are now, and now I work as a software dev. Pm me, I have a shit ton of books, I can maybe help get you on a path of learning some programming and discrete math to get you started. Since you have an android there might be some simple development environments for you to use, idk tbh, but I have a ton of books I can share onto your phone. Stay strong, I remember being there every day of my life. Hit me up.

1

u/Clydeazy Jun 02 '17

Thanks atheist idk if it's my phone but I'm having trouble dming. Can you hmu? Thanks for advice

2

u/chuiy Jun 01 '17

Is the Play Store available?

Tons of free emulators to write code with, in almost any language you desire.

It's not perfect, and most non-standard libraries are probably out if reach, but that's a good way to run and test your code that you write down, or find in a book on a moment's notice.

That way you can at least continue practicing in your cell when you don't have access to a computer.

1

u/Clydeazy Jun 03 '17

Just downloaded sololearn. I love it

2

u/mTORC Jun 02 '17

you probably won't see this comment, but best of luck to you. society treats prisoners like outcasts. i hope everything turns out okay. keep coding!

1

u/Clydeazy Jun 03 '17

Thanks I appreciate the kind words.

99

u/POGtastic Jun 01 '17

How modern is the computer?

Most modern distributions of Windows have a C# compiler. It's under C:\Windows\Windows.NET\Framework\, and then you pick the newest version in there. The compiler is csc.exe.

You can write code in Notepad; it's not going to be fun, but it's doable. Save it as helloworld.cs on your Desktop or whatever. If you have Command Prompt or Powershell, you can then cd Desktop and run C:\Windows\Windows.NET\Framework\v3.7xxx\csc.exe helloworld.cs. This will produce a helloworld.exe, which you can then run with ./helloworld.exe.

If you can do that, the sky is the limit. I'd write my programs down in a notebook and then spend whatever spare time you have troubleshooting on the compiler. Write more notes down, look up the stuff you can't figure out in your cell, write down more programs for next time.

8

u/Jojo_bacon Jun 01 '17

Wow that's really cool, this should be higher up.

15

u/POGtastic Jun 01 '17

Boss: Hey POG, I really want to do task.

Me: Eww.

Boss: Is it possible?

Me: Technically, yes. In Excel, that's going to be disgusting.

Boss: Well, I'm stuck for three hours a week doing this. Can you figure it out?

Me: Can I install a programming language that isn't VBA?

Boss: No.

Me: And lemme guess, no code editor, either.

Boss: Correct.


(later)

Me: Maybe there's something that was accidentally installed by some IT guy. Perl, Awk, something. Wait a second, .NET? Doesn't C# run on .NET?

He finally let me install VSCode, Python, and Git, so I've been having a field day. Nice guy, just kinda paranoid about software and doesn't know that much about computers.

→ More replies (1)

60

u/JBlitzen Jun 01 '17

A web browser can access local files just fine without the internet.

So if you build some HTML/JS/CSS files locally, you can test them locally. You just open them by "file://c:\aardvark\test.html" or whatever instead of "http://..."

Compilers are a little trickier since computers don't generally come with those, and the prison is probably reluctant to let you install them. But if you're able to, do it.

3

u/eSdaze Jun 01 '17

Can't you compile c# without downloading anything? You can invoke the C# compiler by typing the name of its executable file (csc.exe) on the command line.

→ More replies (2)

2

u/robin_flikkema Jun 01 '17

Wouldn't a local webserver (which maybe isn't possible in this case) be way better for loading this? Especially if you want to drive into php?

→ More replies (2)

19

u/trouserdance Jun 01 '17

The good thing about html / css / javascript is you don't actually need an internet connection to see your work. You can create an index.html file in any directory, and you can link to css files in the same/nearby directories to get your styles, and you can also similarly include javascript files in the same way. Then when you double click it, it'll launch in Google chrome or whatever browser (assuming you at least have access to a browser, even if no internet connection).

That way, you can see the website you're building, without actually having to be online.

I saw you mention C(++?), which is awesome, but a whole new level of pain in the ass. I'd say, unless you want to get hardcore, you could stick to javascript, which is in a basic sense "similar" to something more structured like C(++), but has direct ties to html/css, so you can continue to build on your current skills, which should hopefully be pretty rewarding.

Wish ya the best of luck my man.

→ More replies (1)

11

u/nobes7 Jun 01 '17

If you can download the Sololearn app from the playstore, it has a built-in code playground you can write code in and practice with.

4

u/BerdoRules Jun 01 '17

I was also going to post this. I'm learning the basics of Java on my phone. Crazy.

→ More replies (1)

11

u/[deleted] Jun 01 '17

Man, I will keep you in mind next time I'm at work, sitting in front of a computer with an internet connection, moaning about how I can't study because people around me are loud of the air isn't great.

Meanwhile, you're in prison, likely surrounded by guards, working on a 3g contraband phone. That's real inspiration and a nice kick in the bum. Thanks sir, all the best to you.

9

u/radio934texas Jun 01 '17

Just wanted to say: good for you. Glad to hear you're making the best of your time. Keep it up!

3

u/MonsterIt Jun 01 '17

Lol, not to be a sick, but are you allowed to have a phone in prison.

19

u/Clydeazy Jun 01 '17

Definitely not but prisoners are resilient if not anything. They can give 90 days if they found it but risk/reward is relative n the reg searches aren't that thorough .

→ More replies (1)

13

u/Elrond_the_Ent Jun 01 '17

It's really none of your business nor relevant to the question at hand. He's asking for help, not people making light of his situation or to be judged for how he's accessing information, which should be the most basic of human rights

→ More replies (2)

5

u/Ayeaix Jun 01 '17

Definitely not. Source: I'm an ex-con in Aus

→ More replies (2)

5

u/p0179417 Jun 01 '17

Wait you have a phone in prison??

I'm curious, if you're willing can you share any information about that?

8

u/[deleted] Jun 01 '17

Don't know why you being downvoted, a lot of people here are probably curious about that.

3

u/Clydeazy Jun 03 '17

There quite a few just in my building. It's contraband for sure n pending what year like a flip will run about 700. This one I have cost me 11

→ More replies (1)

5

u/[deleted] Jun 01 '17

If you want to learn python but its better to print something because of limited internet access, my advice is to print out the pages on this resource and study them: https://automatetheboringstuff.com/

Good basic beginner resource there that can help get you going. I recommend this one over 'learnpythonthehardway'.

4

u/F00Barfly Jun 01 '17

If you want to learn web dev and wish to have a global picture of what you'll need, you can check this out: https://github.com/kamranahmedse/developer-roadmap

4

u/magus517707 Jun 01 '17

Everyone keeps mentioning programming language resources, but I have yet to see any one mention any algorithm sources. Honestly learn how to develop algorithms, they are language agnostic. And you can practice them on paper. Good luck on your endeavor.

I haven't read this yet, but have heard good things.

https://www.amazon.com/gp/aw/d/1848000693/ref=mp_s_a_1_1?ie=UTF8&qid=1496313668&sr=8-1&pi=AC_SX236_SY340_FMwebp_QL65&keywords=The+Algorithm+Design+Manual&dpPl=1&dpID=41s5pnqOlyL&ref=plSrch

1

u/WarmFuzzies Jun 01 '17

I don't know a lot about coding, but making little programs for my TI84 calculator was fun, and there's lots of free info about it. Would that help OP, or is that sort of programming too basic or dated? I imagine a calculator might be easier/safer to work on during the times that he doesn't have computer access, if he is allowed to have one.

1

u/Clydeazy Jun 01 '17

I have a Texas instruments one I bought from a vendor for 25$. Is that what you mean?

→ More replies (1)

1

u/vsou812 Jun 01 '17

Fortunately for you, android phones are perfect for that!

There's tons of interpreters (programs made to read the code) made for them on the play store for you to try to program on your own!

As for resources, in my opinion, books are the best!

If you have any questions, I'm pretty fluent in html, css, javascript, ruby, and I'm learning Python & C++!

Feel free to PM me with anything you need! I love helping programmers out! :D

3

u/Clydeazy Jun 01 '17

Thanks a lot! I'm waiting on a book on ruby as well. Is there one you recommend for an absolute beginner?

1

u/vsou812 Jun 01 '17

No problem! :D

And sadly no, but this one seems promising: https://www.amazon.com/gp/aw/d/0596529864/ref=mp_s_a_1_1?ie=UTF8&qid=1496345519&sr=8-1&pi=AC_SX236_SY340_FMwebp_QL65&keywords=learning+ruby

And yea, as I said, any questions at all, ask away!

Aaaaand since, from the sound of it, your main reliance is on your phone, if you have any troubles with it, I might be able to help.

2

u/Clydeazy Jun 02 '17

Thanks a lot. It's an older moto G. 4.4.4 Android version. So far no problems. Crossing fingers

→ More replies (1)
→ More replies (2)

1

u/harsh183 Jun 01 '17

What kind of data limits do you have? Maybe you can setup a wifi hotspot on your phone, and basically use that data.

3

u/Clydeazy Jun 02 '17

10 gigs at "high speed" then unlimited but hella slow. Verizon

1

u/SpiderFan Jun 01 '17

They let you have a computer in your prison cell? They also let you have a phone?

Is that standard? Or are you in a special circumstance?

How are you able to TA for a class from prison?

Can you use your cellphone hotspot to let your computer have wifi?

Can you have any phone or just the one you have? Same q for your computer? Perhaps you can crowdfund a better computer and cell phone. Then learn Android programming.

2

u/Clydeazy Jun 01 '17

No n no. The comp is at the edu Dept n I'm a Tutor for the computer class which they teach excel, word n PowerPoint. It's my job. Im not supposed to have this phone. Lol

4

u/desrtfx Jun 01 '17

If you have Excel, Word, and PowerPoint you already have access to a programming language and to an editor for that language: Visual Basic for Applications (VBA). It's built into the Office applications and it's actually not the worst entry into programming as BASIC (the far away ancestor of VBA) was specifically designed as a beginner language.

Just hit Alt+F11 and you're in the editor. There is also a decent help system available.

→ More replies (1)

1

u/SpiderFan Jun 01 '17

How are you able to do your job while in prison?

You snuck the phone in?

→ More replies (3)

1

u/friedlies Jun 01 '17

Are you able to receive inexpensive hardware like a raspberry pi or something you can do whatever you want to? If so, either get one or ask for one, and start exploring linux on it. You can easily get anything you can imagine from a programming standpoint going on it. It's not powerful, but luckily most computing concepts work just fine on lower-end computers! You could even program a game, or maybe even start an online business...????

1

u/Clydeazy Jun 02 '17

I wish. I'm lucky they have the computer class that I can tutor at. Lol

1

u/KDallas_Multipass Jun 01 '17

Do you have permission to install software on the lab computers, and save your work from day to day? If so, I bet someone could send you some programming environments on CDs, even pdfs of books to read or print out.

1

u/Clydeazy Jun 02 '17

No I can't install anything. But my girl will print out anything I ask, so open to pdf links thanks in advance

1

u/[deleted] Jun 02 '17

What software is installed on the lab computers and what OS? Would the prison be amenable to making something like a raspberry pi available if someone were willing to buy enough of them for all of the prisoners to have access to one?

→ More replies (5)

1

u/throwaway23123214234 Jun 01 '17

I was in prison for 1 year and was able to do some programming since I was the clerk for my building so here is my advice.

It is definitely not futile since you have access to a computer for a decent portion of the day. You don't need internet access as long as you have some written books about the languages you want to learn.

HTML, CSS and JavaScript are your best bets. Any computer will have the tools necessary to use these languages since you only need a browser. I was able to do some Visual Basic since the computers I was on had Microsoft Office and that install comes with Visual Basic for applications. You could even learn some SQL if you have an install of Microsoft Access. I also did some Lisp programming because I built a Lisp interpreter using Visual Basic but you probably don't want to go down that path ;).

I think it is unlikely you will have access to any of the other languages. I would not bother with Java, Python, C, C++ Ruby, etc. You might have the runtimes for these languages (i.e. the JRE, Java Runtime Environment) but it is unlikely you have the compilers for them which are necessary for development.

You might be able to us C# if there is way to use it for scripting with Microsoft Office but I'm not sure about that.

Let me know if you have any questions.

1

u/Clydeazy Jun 02 '17

Thanks I'll PM you

1

u/bat_country Jun 01 '17

If we raised money for a chromebook or something could you receive it?

1

u/Clydeazy Jun 02 '17

That's extremely generous, I wish! But I have to be careful with the phone already n it's not even special n it cost 1000 lol.

1

u/greendemiurge Jun 01 '17

Without giving up your anonymity, can you tell us more about what you are or are not allowed to receive or possess? Are you allowed to receive computers, or a bluetooth keyboard that would allow you to type more easily on your phone? My guess is the answer is no, but I still feel someone should ask.

1

u/Clydeazy Jun 02 '17

Definite no. Just books thru Amazon or printouts of text.

1

u/Signal_Beam Jun 01 '17

Two things come to mind:

  1. If you can get to YouTube, there are tons of great tutorials there. You can search for the languages you're interested in, and just watch people do tutorials.

  2. If you're a TA for a computer class, is there a textbook of some kind? Is there a library like in "The Shawshank Redemption"? If the library has computer science books, you could read them as voraciously as you wanted to. If they do not have computer science books, I bet if you asked the librarian, they would love to seek some out for you.

Eventually you'll want to practice writing your own code - maybe you can find an app that helps you write and test basic code on the phone, but unfortunately I don't know of one.

1

u/Clydeazy Jun 03 '17

Yea I wish the library here had books like that, I can't even find classiics like Steinbeck or even some king. I seldom even step foot in there. Maybe i should bust a defrane n vex someone till they send some lol

1

u/whattodo-whattodo Jun 01 '17

Coding is fun but the beginning parts of learning to code were grueling for me. It's easy to think that it is not your thing or that you'll never get it.

The thing that got me through learning to code was a high threshold for pain. I can sit with a problem night after night not knowing how to solve it, trying and falling pretty much forever.

Pick any language you want - though I'm very partial to Python - but don't give up.

Edit: if you do pick python and need any help, hit me up

2

u/Clydeazy Jun 03 '17

Python seems to be the consensus, I'm planning to get a beginner book on that after I finish this HTML book by Duckett. Any suggestions?

→ More replies (1)

1

u/tmckeage Jun 01 '17

I have no idea what kinda time you are looking at but I might suggest really learning computer SCIENCE if you have a long stretch ahead of you.

Algorithms and Data types don't necessarily require a computer to understand. I would not say they are necessary to becoming a computer programmer, but if you have them everything becomes easier.

I suggest this because I am sure even if you have access to a computer that you can code on, access to that computer will be limited. There are many things you can learn that do not require a computer and will allow you to use the time you do have on a computer more productively.

There is a book called Code: The Hidden Language of Computer Hardware and Software that I highly suggest you start with.

In fact I would be happy to get you that book as a gift if you would like. If you want to PM how to do that the offer is open.

1

u/Clydeazy Jun 03 '17

Thanks for the reply! I actually looked into that book on Amazon. I was hoping my girl could find it in PDF since she already buys me books n necessities. Do you think I can find it in PDF?

1

u/tmckeage Jun 03 '17

I have a PDF if you want it I will be happy to email it to whoever you want.

→ More replies (4)

1

u/[deleted] Jun 01 '17

there are some nonprofits that coordinate a tutor to assist you in getting relevant documentation off of the internet...in Austin, we have Austin Free-Net

2

u/Clydeazy Jun 03 '17

That's really cool. I'm a somewhat near Texas. I'm from the West but doing my time in another state. This education department is atrocious just to register for my college semesters is a mission. Lol

1

u/[deleted] Jun 03 '17

let me know what type of information I can gather either digitally or hard copy and I'll make sure you get what you need. I might find an org in your state to assist. good on you for being willing to receive knowledge...so many people can't or won't

→ More replies (5)

1

u/[deleted] Jun 01 '17

Can you install software in the PC? Can you hook up your phone on the PC?

1

u/Clydeazy Jun 03 '17

No way I could take it bc it'll set of the metal detector

1

u/KippyII Jun 01 '17

hey, do not hesitate to update us on ur situation and how your learning process is going ! how much time you have per day to learn/train ?

3

u/Clydeazy Jun 03 '17

I'll try. I work for about 6 hr a day for like 50¢ an hour lol. But after that I go to yard for an hour or two then I can be in my cell all day reading/ on the phone talking to loved ones or I can go out to the "dayroom" to play chess.

1

u/whitelife123 Jun 01 '17

I wish you the best of luck in your situation. Your post gives me a lot of inspiration.

You technically could learn from books, but the problem is that it might be a little troublesome and some will be outdated.

The ducket book and the one on javascript is pretty good. You'll also need to be able to install text editors/ides.

I'm assuming you want to go into web development, so start with learning html/css, then bootstrap, then sass, then js, then ember/angular/whatever, then maybe node.

Anyways, I wish you the best of luck, and if you want, I can try to find some books for you that you can download.

1

u/Clydeazy Jun 03 '17

Thanks I'm going to look into that Duckett book. Im not sure if web development is what I want to go into its just the first book I was recommended and my friend sent it. My girlfriend printed out a book on c# by Rob miles just got it today. I'm also on sololearn

1

u/[deleted] Jun 01 '17

Where are you from and what is your native language? Can recommend few books.

1

u/Clydeazy Jun 03 '17

The states, my native language was Spanish but learned English around 10 fluently, now its my main language and what I read mostly.

1

u/[deleted] Jun 02 '17

Just code with pencil and paper, and theorize working programs. When you're on your PC, do a sanity check by coding and compiling. Some books come with solutions too.

Also, please don't waste your time on Java.

1

u/Clydeazy Jun 03 '17

First off thanks for replying. Why not Java?

9

u/ArkLinux Jun 01 '17

In addition to your book on HTML & CSS, look at This website:

https://www.w3schools.com/default.asp

W3 can teach you HTML, CSS, JavaScript, SQL, PHP, Bootstrap, JQuery, XML, ASP, Node.js, and a lot more regarding website development. I highly recommend it as that is how I learned.

I hope everything works out for you. Good luck my man.

→ More replies (4)

3

u/FriskyButcher Jun 01 '17

If you want to do some reading about the internals of a computer and how the hell everything in there works, give this a read: http://www.goodreads.com/book/show/44882.Code

It doesn't focus so much on learning programming but after reading it you'll have a great base understanding of what the code you write is actually doing and how it's doing it.

3

u/vinsneezel Jun 01 '17

If your computer has a web browser, you can program JavaScript in it without being connected to the internet. Click around and see if you can fine the Console.

I know most Macs and Linux computers come with Python and Java preinstalled. I'm not sure about windows.

The biggest obstacle I'd think you'd have would be that you can't endlessly search for answers to things you can't figure out. I'd try to find a good reference book for whatever language you pursue, but be ready to butt your head up against some problems you can't figure out.

2

u/Kajayacht Jun 01 '17 edited Jun 01 '17

Newer Windows versions come with Powershell which in my experience is a really good scripting language.

It also seems to be in fairly high demand but there's few real experts in it. Most Powershell devs I've found are either C#/.NET dev who got thrown into some admin/automation task (raises hand) or system admins who have to use it because the dev guys write all their stuff with .NET

3

u/ZeroSternritter17 Jun 02 '17

Idk whats wrong with this comment section anyways Good luck with it

9

u/JunkBondJunkie Jun 01 '17

I never knew that prisons had internet access for prisoners. Thats good to learn some new skills when you escape.

9

u/[deleted] Jun 01 '17

They usually only have libraries with access to law books, religious texts, and limited computer access with the same stuff. The phone he has is snuck in.

0

u/[deleted] Jun 01 '17

[deleted]

4

u/JunkBondJunkie Jun 01 '17

That makes sense. I thought it was odd having a phone in prison.

5

u/sarevok9 Jun 01 '17

I did over a year in -- no computer access at all other than the law library, which was locked down as fuck -- no internet access on the machine at all.

That said -- you can learn, but it'll be uphill, html / css are all learned by visualization -- you may be better off with a language that builds non-visually like python or javascript which will build off "concepts" and building blocks.

5

u/shermenaze Jun 01 '17

Good luck man, you can do it.

5

u/cyrusol Jun 01 '17 edited Jun 01 '17

You can do it if you can ask someone to install some software for you, specifically a text editor or an IDE, a compiler or interpreter for the language you are going to use and a debugger (which either typically comes with an IDE or can be used from the command line or there are plugins for them to work with your editor).

These are the absolute essentials, without them you cannot program.

(The Windows Editor, notepad.exe, cannot be considered an acceptible tool for programming.)

Then there is some quality of life software like version control (Git), typical UNIX CLI tools, unit testing frameworks, linters, preprocessors, build automation etc. You don't need them. You also probably don't know them yet but if you learn about them and begin to use them you will begin to ask yourself how you could live without them.

For information most people refer to the internet but you can be sure that it's absolutely possible to learn programming with just books. People did it before. I would even say that learning from books (with a good reputation) is better than just to google everything because it is hard to identify outdated, shitty or plain wrong advice online.

There is also a good chance that books contain a CD with the essential software for you if you can't get anyone to download it for you.

When you are done with the basics and want to start on an actual project you are going to need libraries that people typically just download. This will probably be the hardest part for you as you won't have access to them.

Btw, HTML and CSS aren't programming languages.

0

u/[deleted] Jun 01 '17

how'd you get a cell phone with 3g in prison, I thought cellphones were banned

3

u/Clydeazy Jun 03 '17

Oh they are. But in today's world they're ubiquitous. There are a lot of things you can get in prison if you have people that take care of you.

2

u/Jessie_James Jun 01 '17

I've been in the industry for about 20 years now, some time as a programmer and some as management. My perspective? It will be very difficult for you to learn to effectively code unless you have a full PC and have at least an hour or two per day that you can work. You will also need to be able to install an IDE (I recommend IntelliJ) and other supporting software tools.

If you can do that, I would suggest you focus on Java, SQL (database language), JavaScript, CSS/bootstrap, and finally AngularJS - in that order. These languages are in very high demand, and likely will be for many years - Java, SQL, and JavaScript as a base for other languages especially. Java really is a heavy hitter, and is used everywhere.

You should also learn about the Software Development Life Cycle (SDLC) and management tools like GIT (source control), pushing code to different environments (Development, QA, Stage, Production), and of course you should learn good security practices.

If your GF can do it, get her to buy the book 10 Day MBA and read it. It can help you understand a high level of what management wants and why, as well as help you be more than just a coder in the long term.

Good luck!

2

u/[deleted] Jun 01 '17

Ducket's books are great for getting started, also check out his JavaScript & jQuery book if you have access. What's your goal, websites, web apps?

2

u/Spacemage Jun 01 '17

Message me your email. I have a bunch of python PDFs I will send you.

2

u/jmigandrade Jun 01 '17

First of all, congratulations on trying to better yourself.

Second, as stated before, HTML and CSS are going to be tricky to learn because they're so visual, and you really need to be in front of a computer to write and test things. They're also different from all others. That's not to say you shouldn't read on them, they might be useful down the line, and if they help you pass the time and you learn, I say go for it.

Third, regarding suggestions: you probably have an IT department or a supervisor, right? They'll be able to install compilers and a better text editor if they're not yet available. I'd say if you're a well behaved person, they'll do it, especially because it's a computer class and some more motivated inmates might be interested in it. The three languages I'd suggest are C#, Python and Java, which you already referred in a previous comment. They're all very good starting points.

Do you have access to paper and pencils on your time not by the computer? A long time ago, people would write their programs on paper, then have a limited amount of time with a computer (maybe one hour a week), where they'd write it out on the computer and check the output.

Let me know if you have any more questions. I look forward to seeing your progress.

2

u/Revelation_Now Jun 01 '17

I work with a guy that has written a major University's e-commerce and maintenance site using two smart phones. Before that, I would have said anyone coding on a smart phone was daft, but I no longer think thats the case. The input speed might be slow, but maybe that just helps you think through the right code to apply the first time rather than trying a hundred buggy iterations and compiling that.

Also, in many ways computing has come full circle again and we're back to using dumb terminals and mainframes, or smartphones and 'the cloud' if you like, and it is possible to get free timeshare on large systems - even Quantum computers if you were so inclined.

My main recommendation, however, is that HTML and CSS are more about representing information as opposed to programming, from my point of view. Perhaps consider Python or Java as good starting languages, or even a version of Basic.

2

u/adam7425 Jun 01 '17

Keep your chin up and keep doing what you're doing. Coding can get frustrating at times. Stay Positive no matter what!

2

u/kernelzeroday Jun 01 '17

If you can, get a keyboard. That's the top concern in programming, that every key is available to you with maximum screen real estate.

Secondly, grab a copy of the Termux app and then install manpages-dev manpages-posix-dev vim and gcc. Then grab a copy of clang tidy and clang format, and get to reading man pages. man -k and man -s are your friends. I'd suggest listing out the entire section 3 with 'man -s 3 -k " " | less ' and check out the functions available to you.

Grab a copy of K&R C and study it. Learn about how memory works, and how to manually manage it.

While you do that, read the dash man page and also the coreutils info page, and work on your shell scripting.

Web is useless, and a difficult place to start. You will have an easier time working from the bedrock foundation of computer science, C and SH. Once you get a hang of these you will start to see other languages as dialects of these 2 types of language, compiled and dynamic. Python starts to look like a fancy SH, Google GO looks like a fancy C. You can pick up a language like nodejs and make a webpage very rapidly once you have a solid foundation. You will appreciate things like garbage collection or objects when you learn how to code without them.

Getting started from the front-end and working backwards is very very difficult because of the ever changing landscape. People that learner how to code by writing rails apps would be hard pressed to pick up a MEAN stack because they lack any sort of foundation and only know how to call framework APIs or mutate objects to get work done. Nothing is wrong with that, but being dependant on tall stacks is a dangerous risk.

Nearly everybody would disagree with me, saying that C is ancient and SH is junk, but these are well defined standards and the code you write for these languages runs happily on a 1970s mainframe or a 32mb ram IOT device as well as it runs on your phone.

If you are learning for the sheer pleasure of it you will want to take a look at getting your hands on a copy of OpenBSD, the documentation is marvelous and the system architecture and design is very clean and streamlined.

You can always ignore my advice, learn some JavaScript out of a 900 page book, realise it's not the latest ecma6 or whatever, try to unlearn bad habits, use spacebar instead of tab, and then in 2 years start all over again when emca7 comes out or webasm or what the fuck ever they come up with next. I prefer to stay back in the dark ages of manual memory management and obscure function names, even though it seems very arcane at least it's stable and once you learn it it will stay relevant forever.

Once you pick up the standard library and the POSIX extentions you can branch out and learn popular libraries like libssl and libcurl, and you can start doing very complex tasks very quickly. Your code will be fully cross platform, running on everything from Linux and bsd to osx and windows with no changes. When you are in full control of the memory, you are responsible for the stability and speed. There's nothing more rewarding than passing all your valgrind tests!

Eric S Raymond wrote a fantastic small series of knowledge bombs in the form of the "Unix Koans", and the one on C and SH is particularly important. Eric states that we should only write C when we don't have a program that we can use in SH to do what we want, and that our C programs should be written in a composite fashion so that they can be used in ways we don't originally intend.

By learning these languages before other languages you set yourself a strong foundation in computer science and learn skills and methodologies that will help you to quickly pick up task specific languages very easily.

If you can manage memory and hand optimise loops, something like building a web app in a framework becomes child's play.

Linus Torvalds has said something to the effect that the code doesn't matter, but the data structures are very important. Code can be refactored and changed, but data layouts are for life. Often, the only important optimisations that occur are related to memory layout due to the way the hardware CPU cache works. Changing the code can only squeeze out so many cycles if the data is being read inefficiently.

For me, I enjoy being confident that I can program for diverse software stacks and hardware platforms using the same familiar toolset. I can debug my program on my local machine and then compile to whatever target I like.

I don't ever have to worry about installing a 50gb IDE and being tied to some product or support. I don't need the internet to program, so I don't use stack overflow very often. All I need is a base install of a Unix, bsd, Linux, osx, windows, or android and within 5 minutes I can install vim and gcc and get to work.

I don't program for a living, so I am not beholden to some idiot in management requiring that I use XYZ latest and greatest whatever, so this advice wont be useful for somebody looking to enter the industry as quickly as possible and make money without learning anything about how computers actually work.

The vast majority of the time spent learning how to code is spent reading. Not reading for comprehension, as many people assume, but reading to know where to look when you need more detailed information. You don't need to memorise the format of a function call in the standard library, but you do need to know where to go to look it up. All that stuff is offline, stored on the disk in a intuitive manner when you use C and SH. You could keep learning how to code and improving yourself without books, without internet and without anybody​ to mentor you, because your mentors spent like 40 years working on this beautiful system you hold in your hands to read this post. Everything you need is all tucked away into a few packages, all you have to do is blow the dust off the tome.

Enjoy! :) Hope this post conveys the joy I find in this system and helps somebody out.

2

u/rainskit Jun 01 '17

https://devdocs.io/offline

downloads for tons of docs of various relevant technologies

2

u/[deleted] Jun 01 '17

So one of my good buddies said when he was younger he would punch out code on a notepad (pen and paper) on family road trips. you could then post on forum for correction of errors ects when you get back access to computer.

2

u/searcherback Jun 01 '17 edited Nov 20 '17

If you had internet on that computer, I would suggest some remote services like Cloud9 may help you, check https://c9.io You don't have to install anything, just create an account and you will have a Dev Environment (a remote workspace) in your browser. Assuming that this type of access is allowed by the rules.

Best of lucky and don't ever think about giving up.

Edit: Just saw you have no internet on that computer. Ask if you can configure a Virtual Machine on that PC with software that will support your learning process.

2

u/dman24752 Jun 01 '17

I'd recommend focusing on theory as opposed to coding. Languages change, but theory stays the same.

This is a pretty good book on algorithms. https://mitpress.mit.edu/books/introduction-algorithms

PS: Mad respect for accessing reddit from prison. For real, good luck friend. Fire to the prisons! Fuck the police!

4

u/shadowstrikesagain Jun 01 '17

i don't know where your prison is, but some city libraries offer free lynda.com access, and there's a shit ton of things you can learn on there from programming to financing. if all else fails, the annual membership is somewhere around $250 if your girl or someone you know can swing it.

3

u/ComicOzzy Jun 01 '17

See if codepen.io displays well on your phone. You can view "pens" made by other people or make your own. Pens are example web pages demonstrating html, css and javascript. There are others like jsbin.com, but I point you to codepen because there are so many showcased examples you might find and explore to learn from.