Live data from Hacker News

Ask HN: Non-technical people, how did you learn to code?

news.ycombinator.com

11–20 of 58 posts

Re: Ask HN: Non-technical people, how did you learn to code?

#11
post #6
post #5

I believe this came up in a previous discussion some days ago, but it bears repeating: Working with/getting personal help from someone more experienced than yourself is awesome. The trick is not to bother them with (to them) trivial questions, but show that you have put in the work and ask them for their guidance. Look over experienced coders shoulders any chance you get, and talk to them, to understand their way of…

thanks for the tip! It would be awesome if you found that thread somewhere.

I think this is what i was remembering.

http://news.ycombinator.com/item?id=2995733

Re: Ask HN: Non-technical people, how did you learn to code?

#12
post #4

I taught myself to code at the age of 22 and I am not a math genius by any means. I feel like I'm getting pretty good at it (almost 24 now). The biggest thing to remember is to have a real problem you're trying to solve with programming. Just going through tutorials isn't going to teach you how to program. And then Google until you figure it out. I found it works best to get something functioning, and then go back an…

What's the language you learnt? What company did you build? I'm asking because there is no info in your profile! :)

Re: Ask HN: Non-technical people, how did you learn to code?

#13
There are two methods that helped me learn to code.

[1] Copy examples, and tweak them to understand how they work.

[2] Program a game or a puzzle. (Here I'm talking about a simple game like Tic-Tac-Toe, not a full-fledged PS3 of XBox game). Programming something that is purely for fun provides a lot of gratification and reward. The joy of seeing the result is what propels you in spite of the frustration of error and failure. Plus, since you're in control of the project, you can focus on the fun stuff and postpone or skip boring things. For example, have a go at writing a Sudoku solver, or Cryptoquote, or Mastermind.

Re: Ask HN: Non-technical people, how did you learn to code?

#15
I think the "non-technical" bit is superfluous—we're all non-technical when we first learn to code.

I learnt to code at 14 after asking my GCSE ICT (as in, Word, Excel, and FrontPage—that's the sad state of IT education in the UK) teacher what the "header files" I saw in the Deus Ex SDK were. He introduced me to Java, and, to be very cliché, the rest is history.

The main "textbook" I read was "Introduction to Programming Using Java"[1] (then in its fourth edition), which goes at a very easy pace and explain things well (I love this book, maybe its the nostalgia goggles but I'll never forget it and what it taught me). I'll add that I didn't have the Internet at home at the time; I had only a handful of resources to help me and all problems I encountered I had to solve by myself. Very "grindy".

If I were to start over, I'd probably go for a much nicer language such as Python, and use its tutorial[2] as well as Mark Pilgrim's Dive Into Python[3][4], and then move onto Django.

Basically, the best way to code is by coding—think of something to build, then build it, ideally trying a different way. Remember to read documentation and other (ideally smarter) people's code and follow (and, importantly, try to understand the reason of) best practices.

[1] http://math.hws.edu/javanotes/ [2] http://docs.python.org/tutorial/ [3] http://diveintopython.org/ [4] http://diveintopython3.org/

Re: Ask HN: Non-technical people, how did you learn to code?

#16
post #4

I taught myself to code at the age of 22 and I am not a math genius by any means. I feel like I'm getting pretty good at it (almost 24 now). The biggest thing to remember is to have a real problem you're trying to solve with programming. Just going through tutorials isn't going to teach you how to program. And then Google until you figure it out. I found it works best to get something functioning, and then go back an…

I most likely count as a technical person, but I couldn't resist weighing in. One key factor when I've been learning something programming-related has been to actually deal with problems that I need to solve.

If you're currently puting reports together by hand, see if you can write a bit of code to do the repetitive part. If you need to filter a stream of articles, see if you can weed out the easy 80% using word matching, or some other heuristic you develop. If you have a spreadsheet to do your budgetting, see if you can replace it with a program that can fetch all the available data, and spit out relevant results.

Re: Ask HN: Non-technical people, how did you learn to code?

#18
I took classes my senior year in college. I started out with a class crosslisted in bio/engineering that used Matlab to interact with a circuit we built. The instructor included a lot of basic code for each project that we just had to improve on to get things working. It wasn't too daunting and Matlab is a nice place to start to get a handle on basic principles.

Then I took data structures and programming because I liked that first class so much. In between the two classes I taught myself from material for a 1 credit course that converted matlab people to Java.

Re: Ask HN: Non-technical people, how did you learn to code?

#19

I started programming when I was 24 (11 years ago) and working at my first job. A coworker was my mentor early on, and we pair programmed frequently for a couple of months. I read a couple of Wrox Java books and just learned by writing a lot of code and reading as much as I could. Luckily, I was tasked with developing a whole bunch of forms for a client-server application, which the IDE helped me out with a lot with…

IDEs all the way! I started with Matlab, which was a super gentle way to start. Then I moved to Java+ Eclipse. Now I mostly use geany (linux TextMate). I'm not quite at vi level yet :).

Re: Ask HN: Non-technical people, how did you learn to code?

#20
post #2

I want Codecademy to extend their language set and number of courses. This would help me greatly.

I agree codecademy was the most fun I've ever had learning a language. I'm going to college now, trying to struggle through at least one language, but the professor only reads out of the book. :/
Post reply on HN