News for hackers. Stuff that matters.
Re:Ask HN: How do you start programming? by Macha on Sunday August 22, 2010 @08:26PM (#1625557)
I started to learn how to program while I was 13. The language I started with was Java. My first real program I tried to make was a Simcity clone in Java.

I failed, but even in failure, I learned a lot. The important thing is once you have learned the basics of a language, try and build stuff yourself. You won't learn much by copy/pasting or slightly modifying or retyping examples.

One thing to look out for is a project you can do to start. If you are doing a web language, code a basic blog once you've done the basics to put together what you've learnt.

Another common starter project nowadays is a Twitter client. This used to be a good idea, but it's gotten a bit harder now, and I wouldn't recommend trying to figure out OAuth for your first program.

Another important point is learning different languages. Don't go "I've learned Ruby" then stop. Despite it being my first language, I hardly ever use Java anymore. Different languages lend themselves to different problems, and knowing more languages helps you look at programming problems from a wider perspective. I strongly suggest that you try at least one static language, one dynamically typed language, and one functional language at some point.

A final point is that it can be quite helpful to read blogs o.n programming. I can't suggest any ATM, because the two I always read are more or less at an end.

Re:Ask HN: How do you start programming? by whackedspinach on Sunday August 22, 2010 @08:55PM (#1625583)
A Twitter client is interesting. I might just try that. I haven't really settled on any language. I have books on Python and Ruby, and I've recently become interested in Haskell. But it seems like you can do almost anything with any language (maybe not efficiently). I figure I'll learn the mindset of programming, and then concentrate on different languages.
Re:Ask HN: How do you start programming? by jamaicahest on Monday August 23, 2010 @01:57AM (#1625990)
Throw in C++, C# or Java and you've got all three archtypes covered. Some people still fancy plain C, though I haven't used it for years, it will give you some historical perspective, as it is the granddaddy of many languages today.