News for hackers. Stuff that matters.
Re:What do you want to see in Learn C The Hard Way? by alnayyir on Friday November 05, 2010 @12:22PM (#1873743)
I don't think the learner would appreciate the subtleties, and I don't agree that they'll learn anything from it.

I can reinforce each lesson/problem you're describing one by one through the exercises, but a new person simply wouldn't know good code if it slapped them in the face.

Confer with Learn Python the Hard Way to get a feel for the aesthetic and technique I'm working towards.

I don't want to write bulletproof code, I want to teach them how and why to write bulletproof code.

I'm not qualified to meet that kind of lofty standard anyway.

Re:What do you want to see in Learn C The Hard Way? by there on Friday November 05, 2010 @12:30PM (#1873795)
I don't think the learner would appreciate the subtleties, and I don't agree that they'll learn anything from it.

I can reinforce each lesson/problem you're describing one by one through the exercises, but a new person simply wouldn't know good code if it slapped them in the face.

that is my point: your readers might not understand everything you're doing, so they're just going to copy and paste parts of it into their new projects. if you give them sloppy code to learn from, they're going to copy that sloppiness into their code that makes its way into the real world.

there are a lot of things in c that new programmers have to be especially careful about that aren't relevant to python.

Re:What do you want to see in Learn C The Hard Way? by kingofspain on Friday November 05, 2010 @12:38PM (#1873838)
Agreed. I was littering code with schoolboy mistakes for a couple of years because of this. The complex stuff was great (heh) but some of the absolute basics were braindead because I thought I knew it. I'd been doing that stuff from day one and never had a problem... Until I did.
[deleted]
Re:What do you want to see in Learn C The Hard Way? by pg on Friday November 05, 2010 @12:40PM (#1873846)
Actually you're the one who's out of line here, for attacking someone on the assumption that they downvoted you.
Re:What do you want to see in Learn C The Hard Way? by alnayyir on Friday November 05, 2010 @12:49PM (#1873877)
You are omniscient lately.

Retracted.

Re:What do you want to see in Learn C The Hard Way? by BrandonM on Friday November 05, 2010 @12:54PM (#1873903)
> I don't want to write bulletproof code, I want to teach them how and why to write bulletproof code.

This confuses me. How can you teach someone to do something if you won't do it yourself? Reading your statement literally, you are effectively going to say, "This is how and why to write bulletproof code, but I'm not going to." The whole point of LxTHW is to learn by doing. If you're doing it wrong, they're learning it wrong.

> I'm not qualified to meet that kind of lofty standard anyway.

Then you shouldn't write the book. Honestly. I know you intend to do some good and to be productive, but serving as a teacher and a reference point in an area that you're not qualified in is actually counterproductive.

I'm not saying don't write the book. Get qualified first.

Re:What do you want to see in Learn C The Hard Way? by alnayyir on Friday November 05, 2010 @01:03PM (#1873930)
Nobody's qualified to run a company when they do their first startup either.
Re:What do you want to see in Learn C The Hard Way? by BrandonM on Friday November 05, 2010 @01:15PM (#1873983)
That's a pretty dishonest analogy. Your first startup will succeed or fail based on its merits. If you write a book for beginners that is inaccurate, those inaccuracies will be spread in spite of their lack of merit.
Re:What do you want to see in Learn C The Hard Way? by fauigerzigerk on Friday November 05, 2010 @01:04PM (#1873934)
If you're not qualified to meet that standard then don't write a C book (or learn more before you do). C programs are either bulletproof or they are a hazard.
Re:What do you want to see in Learn C The Hard Way? by jimwise on Friday November 05, 2010 @01:42PM (#1874107)
On the bright side, forcing yourself to write bulletproof code for the book may well be the best way to become qualified.
Re:What do you want to see in Learn C The Hard Way? by fauigerzigerk on Friday November 05, 2010 @02:28PM (#1874265)
If I understood him correctly he said that he didn't want to try to do that.
Re:What do you want to see in Learn C The Hard Way? by alnayyir on Friday November 05, 2010 @02:34PM (#1874277)
Sort of, I'm not going to try to write perfect code, but I will make myself a better programmer by doing this.

Further, the aim is to teach people how and why to write bulletproof code, not to demonstrate bulletproof CString tutorials.

Re:What do you want to see in Learn C The Hard Way? by alnayyir on Friday November 05, 2010 @01:56PM (#1874156)
On the dot.
Re:What do you want to see in Learn C The Hard Way? by alnayyir on Friday November 05, 2010 @02:02PM (#1874172)
The unwillingness to do for fear of violating some perfect model leads to never making progress at all.

No such thing as a perfect program, startup, relationship, or book.

Re:What do you want to see in Learn C The Hard Way? by fauigerzigerk on Friday November 05, 2010 @02:42PM (#1874314)
I'm not saying you shouldn't write the book because it might not be perfect. I just disagree with your concept for the book. I think readers must see good code even if they don't understand immediately why it is good code. C programs that aren't really good tend to be really bad because they crash or worse.

Not being perfect is not the same as going in the wrong direction.