by slyv on 5/29/13, 12:28 AM with 8 comments
What are some good tutorials to start learning C? I would prefer ones freely available online right now to begin with so I can start programming in C right away. But, any book recommendations are also highly valuable. How did you (if you have) learn C to begin with? Are there any standard tutorials for C?
Any help would be incredible. Thanks!
by tonteldoos on 5/29/13, 1:08 AM
1] O'Reilly has a sale on C e-books on that expires today - have a look at them (http://shop.oreilly.com/category/deals/c-owo.do?code=WKCPRG)
2] Your biggest hurdles will be going from object coding to procedural coding, and going from dynamically typed to statically typed variables. Focus on these topics.
3] Once you have the basics of C, start focusing on dynamic memory usage (pointers, etc) as soon as possible. It's one of the most difficult topics (especially for someone that's only used managed languages), but also one of the most useful and powerful features in the language (and also the source of much pain if not done properly).
4] A possible way to start coding immediately, is programming C plugins for Ruby. MRI is very well suited to this, and will cover quite a bit of ground from points 2 and 3 above. There are heaps of tutorials available too.
5] As far as online tutorials go, there are many, and most tend to cover the same ground. Find one that you're comfortable with, and just do it. For the moment, focus on syntax and language elements, but DO NOT neglect to look into the fundamentals of how C actually works at compiler level at some point. It's an amazingly internally consistent design, and will make understanding and using some features a lot easier.
Good luck - hope this helps :)
by a3n on 5/29/13, 1:55 AM
I learned C by programming in C, talking to my neighbors, and obsessively reading comp.lang.c. That used to mean usenet, but these days most people will get to it via Google: groups.google.com/group/comp.lang.c
The best thing you can do is work on some really hard shit for a long time with a smart set of colleagues.
My first book was K&R <glances up at bookshelf> but my favorite was Harbison and Steele <glances up at bookshelf>. These days probably one of the O'Reillys is good enough.
http://www.faqs.org/faqs/C-faq/
These days I don't think I could program my way out of a paperbag with C. But I did like it a lot back then.
by macarthy12 on 5/29/13, 1:43 AM
by czbond on 5/29/13, 12:54 AM
by ksherlock on 5/31/13, 8:37 PM