Not a tame lion...
Join Date: May 2004
Location: Narnia
|
So... I decided to learn C. What I need now is some kind of online tutorial to learn C with
I've searched the forums, and googled the internet. The forums had a couple of links but they don't work anymore and the internet has countless C tutorials. I tried one of them and it irritated me on the third "lesson" so that's why I've decided to ask for recommendations. I'm proficient with Java (well I think I am) and I'm not scared to dive into a good text file tutorial. I'm not too keen on buying any books at this point because I really just want to learn basic C before diving into C++ and Objective-C. So, can anyone recommend a good online C tutorial ? |
quote |
Veteran Member
Join Date: May 2004
|
Yeah, don't bother, if you're going Obj-C. Learn the syntax, obviously, but learn Obj-C's object methodology first, since you're likely to be spending more time in it than anything else.
If you're learning C++, then you need to know C pretty well inside and out to use it effectively. It mixes the object and procedural models in nasty intertwined ways for no good reason, IMO. |
quote |
Not a tame lion...
Join Date: May 2004
Location: Narnia
|
Quote:
I am also interested in learning how to program device drivers which I think is done in C. So... can anybody point me in the direction of a good C tutorial ? |
|
quote |
Microbial member
|
Have you considered getting a subscription to the Safari bookshelf? They've got several dozen books on various flavours of C.
|
quote |
Not a tame lion...
Join Date: May 2004
Location: Narnia
|
Quote:
|
|
quote |
Microbial member
|
Quote:
I basically figure that given my frighteningly short attention span and the propensity for computer books to both be pretty expensive, and become obsolete rapidly, it makes more sense to subscribe to them. $180/year is really only 3 or 4 decent books' worth… and I get a lot more value out of it than that over the period in question. As for your browsing problem, well, you just need to get more monitors. |
|
quote |
Not a tame lion...
Join Date: May 2004
Location: Narnia
|
Quote:
|
|
quote |
Veteran Member
Join Date: May 2004
|
IMO, if you already have the basics of programming under your belt with Java, just go grab a copy of K&R (Kernighan and Ritchie), the updated ANSI version, and start reading it. It's the definitive C reference for most people, and it's short and dense, but then, there's not much to C.
|
quote |
Not a tame lion...
Join Date: May 2004
Location: Narnia
|
Quote:
|
|
quote |
Veteran Member
Join Date: May 2004
|
Yeah, but it's cheap. I mean, it's only like 120 pgs.
|
quote |
Veteran Member
Join Date: May 2004
Location: Clayton, NC
|
Quote:
|
|
quote |
Not a tame lion...
Join Date: May 2004
Location: Narnia
|
Okay, okay, I know I'm whinging about Obj-C vs java in another thread but I'm still having fun learning C.
The K&R was a great choice and thank you to you guys for suggesting it. But now I would like to start making programs with GUI's and or graphics. Anybody know a good cross platform toolkit that I can start learning from online resources, I had a look at Allegro and SDL but they seem a little advanced, and their online references and tutorials seemed a little lacking to me. Perhaps it's my lack of experience. What do you guys think of GTK ? |
quote |
Veteran Member
Join Date: May 2004
|
C's a fun pedal-to-the-silicon language. You should try playing around with some asm blocks in it sometime and really take it out for a spin.
But for GUI work, you're going to hate me but... OO. The more pure, the better. Squeak/Smalltalk is a great way to learn OO and play with a GUI build kit at the same time. You'll learn the granddaddy of all design patterns, MVC, to boot. (It's also ubiquitous in Cocoa.) I can't imagine going back to the world of callbacks and manually handled function pointers after working in nice rich OO environments. *twitch* |
quote |
Not a tame lion...
Join Date: May 2004
Location: Narnia
|
Quote:
The website seems contradictory, one page says Quote:
|
||
quote |
Member
Join Date: Jun 2005
Location: Paris
|
A belated comment on Kernighan and Ritchie's book: as long their excellent "The C Programming Language" (ANSI C), 2d Ed. has been recommended, you may also want to consider its companion book, Tondo and Gimpel's "The C Answer Book", 2d ed., which contains well written code solutions to the exercises in the other book.
|
quote |
Veteran Member
Join Date: May 2004
|
Quote:
A lot of folks will, after proper profiling and testing, translate the bare minimum critical path code to keep as much of the dynamic environment as they can. |
|
quote |
Posting Rules | Navigation |
|
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
good deal? CompUSA | Mommy8me | Purchasing Advice | 1 | 2005-04-22 14:54 |
A sign of good things in Latin America | defaultmike | Speculation and Rumors | 3 | 2005-03-20 23:52 |
"The Aviator"...really good! | psmith2.0 | AppleOutsider | 6 | 2005-01-01 23:33 |
gimme some of that old time religion | naren | AppleOutsider | 3 | 2004-10-29 11:23 |
Good gaming headset? | dviant | Third-Party Products | 0 | 2004-06-16 13:13 |