News for hackers. Stuff that matters.
Re:Learn C The Hard Way by nikcub on Saturday July 02, 2011 @10:31PM (#2722874)
I always had an idea of a 'for programmers' series of books for those who know how to program in one language (say, C++, Java or PHP) and wish to pick up a new language

eg. 'python for programmers' would not need the first half of it dedicated to explaining strings, loops etc. and could get straight into it from a programmers perspective - a bit like K&R. You could then dedicate more content to explaining philosophy, design decisions, internals, history, politics (learn all the in-jokes ;)), etc.

this would also be a good format to learn new paradigms, eg. 'functional programming in scheme, for programmers'

Re:Learn C The Hard Way by udoprog on Saturday July 02, 2011 @10:38PM (#2722886)
Indeed, I currently get turned off by most books I pick up, simply because they start out on a too basic general level.

If you however dig a little deeper you can usually find stuff that isn't too tutorialish. Like http://www.c-faq.com/top.html which has been an extremely solid resource for me.

Re:Learn C The Hard Way by zedshaw on Saturday July 02, 2011 @10:45PM (#2722908)
I'm hoping to make this book ramp up faster than LPTHW, since I'm assuming people have either read that book or know one programming language already. However, I'm also a big proponent of practicing the syntax even if you think you're an expert already. It just makes things way easier later on.
Re:Learn C The Hard Way by JoshTriplett on Sunday July 03, 2011 @12:30AM (#2723080)
Personally, I hope that this book will work for people who don't already know a programming language. C seems like a great first language to learn if only because (if taught well) it exposes a large number of the underlying details of how programs actually run on a system.
Re:Learn C The Hard Way by udoprog on Saturday July 02, 2011 @11:11PM (#2722974)
Moving from Python to C is a very good move. It allows you to go from programming to inner workings, everyone should have a solid knowledge of C since it give you the tools to identify and correlate aspects of other languages to reality.

I don't understand what "practicing the syntax" means (language barrier?), but I'm not suggesting that I've stopped learning, which I never will.

Re:Learn C The Hard Way by irahul on Saturday July 02, 2011 @11:31PM (#2723006)
Different people learn differently. Some people don't like to practice the trivial practice stuff, and prefer to breeze through the beginning, read through new material, and then take on some real project.

Rich Hickey, recently in an interview, said he doesn't do programming exercises - he is not interested in programs which don't make the computer do something useful, interesting, or both.

I, for one, type the trivial examples. Or else, I simply forget how to use them. For example, you have list comprehensions in Python, Racket, F# and if you ask me to do a list comprehension right now without looking up the reference, the only one I will get right is Python. I recently started learning F# and didn't type much code; so the concept is known, but since I didn't practice the syntax, I will have to learn it again.

That's what he means by practicing syntax.

Re:Learn C The Hard Way by udoprog on Saturday July 02, 2011 @11:58PM (#2723034)
Got it.

I wouldn't however say that the complexities of C is it's syntax (unless you're playing around with macros : ) ). But I guess the concept can be applied broadly, like remembering functions, headers and other language specifics.

Re:Learn C The Hard Way by nikcub on Saturday July 02, 2011 @10:47PM (#2722912)
how about 'if you are proficient at another language, feel free to skip to chapter x'? and put the generalized stuff at that point
Re:Learn C The Hard Way by zedshaw on Saturday July 02, 2011 @10:57PM (#2722941)
If you really are that proficient, you should be able to figure out what you can skip.
Re:Learn C The Hard Way by regularfry on Sunday July 03, 2011 @03:58AM (#2723315)
I'm not so sure about that. The devil's in the details - you might think you know something well enough to skip it, but get caught out later.
Re:Learn C The Hard Way by irahul on Saturday July 02, 2011 @10:58PM (#2722944)
Sometimes due to language discrepancies, skills don't transfer and there is no easy "feel free to skip to chapter x".

For example, a conversant Python programmer's idea of string, and strings in C are 2 different things. A conversant C programmers idea of looping is different from idiomatic looping in Racket(and other lisps).

Re:Learn C The Hard Way by nikcub on Saturday July 02, 2011 @11:19PM (#2722990)
actually you are right, it completely doesn't work in that example
Re:Learn C The Hard Way by praptak on Sunday July 03, 2011 @08:59AM (#2723608)
"eg. 'python for programmers' would not need the first half of it dedicated to explaining strings, loops etc."

Mark Pilgrim's http://diveintopython.org/ is what you describe.

Re:Learn C The Hard Way by s-phi-nl on Sunday July 03, 2011 @05:47PM (#2724687)
While not a book, the Ruby website does have a "Ruby from Other Languages" page that seems similar to what you describe.
Re:Learn C The Hard Way by derleth on Saturday July 02, 2011 @10:59PM (#2722945)
> this would also be a good format to learn new paradigms

Or you could have books dedicated to a paradigm, such as functional programming, and have examples in many languages that all serve to drive home a specific point (this is how you make something tail-recursive, perhaps), pointing out how each language is both similar and different.

"The Practice of Programming" by Kernighan and Pike is somewhat close to what I want, but is not it.

Re:Learn C The Hard Way by nikcub on Saturday July 02, 2011 @11:24PM (#2722998)
I know what you mean, it took me multiple books and articles to pick up functional programming. 'Seven Languages in Seven Weeks' was a good book - as is the K&P book you mention, but something complete that can teach an existing non-func programmer from the ground up, possibly using multiple languages, would be great