I really only have experience with web development with Rails and in PHP. I also have done a little Java at school. I am considering diving into iPhone development and learning Objective C. Would I get at least some of the benefits of learning C that you all have described in this thread from Objective C? From what I understand you even have to learn some raw C to work with Objective C.
Ask HN: Should I learn C?
51–60 of 98 posts
Re: Ask HN: Should I learn C?
#52I really only have experience with web development with Rails and in PHP. I also have done a little Java at school. I am considering diving into iPhone development and learning Objective C. Would I get at least some of the benefits of learning C that you all have described in this thread from Objective C? From what I understand you even have to learn some raw C to work with Objective C.
From a strictly pedagogic perspective, it would also be good to spend some time studying vanilla C and the POSIX APIs. When we say the phrase "learning C" in a thread like this one, we tend to actually mean "learning to work at a lower level of abstraction, closer to the OS, to assembly language, or even to the hardware itself". And I believe that most of iPhone development consists of telling Cocoa to do things, and Cocoa is presumably not a very low level API -- thank god.
However, any C is better than no C, and iPhone development is fun and useful, so if it inspires you, go for it.
Re: Ask HN: Should I learn C?
#53A lot of people take the route of not learning C. If you do web development and your team finds something hard or impossible to do, watch their reaction when you say "I'll just write a C extension." The stack-frame comment is spot-freaking-on. Knowing this level of detail will make you a way better programmer in every other language because you won't make stupid memory hogging decisions or mistakes. You also understa…
Re: Ask HN: Should I learn C?
#54Absolutely, yes. + From the point of view of Python or Java (say), it's close enough to assembly language to let you understand how things might work; + If you need speed or control over hardware, sometimes it's your best route to extend whatever you're working in; + In many jobs you'll be the only one who has the knowledge to do unusual things, hence you'll be more valuable; + It gives you another point of view when…
http://mvanier.livejournal.com/998.html
http://matt.might.net/articles/best-programming-languages/
http://www.info.ucl.ac.be/~pvr/VanRoyChapter.pdf
http://www.info.ucl.ac.be/~pvr/paradigmsDIAGRAMeng101.pdf
http://www.slideshare.net/brweber2/functional-concepts-for-o...
-----------------
Oh, SICP and books like PL pragmatics
http://www.amazon.com/Programming-Language-Pragmatics-Michae...
----------------
and i love "Traps/pitfalls" from 1989!)
http://www.amazon.com/C-Traps-Pitfalls-Andrew-Koenig/dp/0201...
Re: Ask HN: Should I learn C?
#55Re: Ask HN: Should I learn C?
#56Here's where C is taking you. After you understand pointers and structs and have futzed around in the Unix command line for a while, you probably have enough to go on to something like Linux Programming by Example. This book walks through GNU implementations of Unix utilities and the system calls that make them possible. You don't just want to run ls, you want to know enough that you can write ls by yourself. You wan…
Re: Ask HN: Should I learn C?
#57As for C, yes, you should learn C. In several industry segments (such as embedded systems), you cannot even get an interview if you do not know C.
A nice way to do something in C is to write a text editor using ncurses for the GUI. This was something I did in my second year as a Comp Sci major in school, and it was a great experience (with a friend).
Re: Ask HN: Should I learn C?
#58Oh and see something of Forth if you like the looks of it and some assembly.
Re: Ask HN: Should I learn C?
#59Earlier quoted context omitted.
Being good at C can be very profitable in a money sense of the word too. Bloomberg is one example that hires a lot of C hackers and pays them obscure amounts of money (very very long hours though)
Obscure amounts of money?