Python's a good one to start with, it'll get you in the habit of good code formatting
This might also be an interesting read to get you started. It'll tell you what languages to learn, anyway
http://tuxedo.org/~esr/faqs/hacker-howto.html
Hey Gang,
I'd like to teach myself computer programming, so I can eventually teach my students (sharp middle schoolers).
What's the best place to start?
I don't really have anything that I *need* to write a program to do, I'm just interested in cultivating the skills and understanding to appreciate programming. In this regard, I'd be open to learning a language that would help me lay a solid foundation, even if I ended up having to learn another language (once I got up to speed on the first) to actually get something done.
Thanks in advance,
M
PS: Solid book recommendations or online tutorial sites would be much appreciated.
Python's a good one to start with, it'll get you in the habit of good code formatting
This might also be an interesting read to get you started. It'll tell you what languages to learn, anyway
http://tuxedo.org/~esr/faqs/hacker-howto.html
Either Python or Ruby. Forget about Perl, it's too hard to read code. C/C++ are too complicated for a first language.
If you want something that will lay a solid foundation for programming, you will need to learn a language like C or C++ (or both). You will have a good understanding of data structures and algorithms with those languages that other languages may hide/lack.
If you're looking to learn programming quickly to do things quickly, you should learn a scripting language such as Perl, Python or Ruby (all of which have interpreters written in C might I add).
But you will understand what scripting languages do "behind the scenes" better if you learn C or C++ IMHO.
I usually buy books that are from the creators of the language (The C Programming Language, The C++ Programming Language, Programming Perl, etc.), I've never gone wrong with them, but they may be a little hard to follow if you're completely new to programming. Programming and knowing a language are two separate things. Programming is about knowing how to use a tool effectively and using it to solve problems.
I would get Deitel & Deitels : C++, Howto program. I use that in my programming class, and it explains the principals of programming very well.
Ohh, and what I've read of Sams teach yourself C++ for Linux is very good!
C
one of the hardest languages to learn, but it'll pay off in the long run
especially cuz ur gonna be teaching other people howto program i would recommend C. A good C book will teach you how to program the right way, while other (more easier) languages will make u depend on the safety factor of those languages and it will basically make u a less good programmer, and it will do the same for ur students as well
You could also be realy sado-masochist and try O'Caml.
C / C++
if you can learn that, you can learn ANYTHING
if you want to have an EASY class, then Visual Basic
I hate to agree with GnuVince for once [smiles] but I would start off with Python or Ruby. Start simple. I started with Basic when I was 7 years old. From there, move up to C and C++ and then if you're feeling dangerous, try some assembler. Even if you don't program with assembler, it really helps you understand how things work at an even greater level and will improve your programming with other languages.
Bookmarks