Live data from Hacker News

Ask HN: Learning C

news.ycombinator.com

61–66 of 66 posts

Re: Ask HN: Learning C

#61
post #16

Earlier quoted context omitted.

... and figure out how to deal with allocating and freeing things. Taken together, pointers, and manual memory management are a big chunk to bite off. The syntax isn't the problem, in other words.

For sake of argument: How often is the syntax the primary problem in learning a new language? The examples that come to mind are Forth and APL/K/J (all of which I've only dabbled in), but the reason they have such unconventional syntaxes is because they're conceptually very different.

And yet, because of the syntax I don't remember learning PHP. It was pretty much one night of reading the manual to get to know the API, and that was it. They're close conceptually too, not just in syntax.

Re: Ask HN: Learning C

#62

I learned C a while back, and don't regret the time spent doing so at all. This is how I'd recommend going about it: * Everyone is going to recommend K&R, which is fine. Find a copy of C Interfaces and Implementations as well--very good implementations with explanations of standard high-level structures. * Read source. SQLite's source, for example, is very well written and documented, and they actually have a version…

The source for Lua is good too, as is the core userland for the various BSDs.

Re: Ask HN: Learning C

#63

I learned C a while back, and don't regret the time spent doing so at all. This is how I'd recommend going about it: * Everyone is going to recommend K&R, which is fine. Find a copy of C Interfaces and Implementations as well--very good implementations with explanations of standard high-level structures. * Read source. SQLite's source, for example, is very well written and documented, and they actually have a version…

Hi avinashv, I'm interested to learn SQLite. I noticed you mention that there is a "recommended for reading" version of SQLite. Would you mind pointing out where I can find it? I browsed the website and haven't had any luck to find such information. Thanks!

It's just the "amalgamation" version off http://www.sqlite.org/download.html (it's the first download link).

Re: Ask HN: Learning C

#64
Well, copies of K&R and C Puzzle Book are on their way, with CII and Advanced Programming In The Unix Environment (2ed) wishlisted for later. Can't find a copy of Deep C Secrets on our local Amazon equivalent, but I'll keep searching.

Re: Ask HN: Learning C

#66

Earlier quoted context omitted.

Hi avinashv, I'm interested to learn SQLite. I noticed you mention that there is a "recommended for reading" version of SQLite. Would you mind pointing out where I can find it? I browsed the website and haven't had any luck to find such information. Thanks!

It's just the "amalgamation" version off http://www.sqlite.org/download.html (it's the first download link).

Thanks!
Post reply on HN