On Tue, Nov 08, 2011 at 07:45:25AM +0100, Zbigniew Lukasiak wrote:
> On Tue, Nov 8, 2011 at 2:22 AM, Aristotle Pagaltzis <pagalt...@gmx.de> wrote:
> 
> ...
> 
> > In the real world people learn by copy-pasting code and tweaking until
> > it seems to do what they wanted. Every code example should be as close
> > to real working code as possible, ideally *should* be real working code;
> > or else so broken (by missing declarations and what have you) that it
> > cannot be made to work accidentally.

> Well - actually I believe that this is something that needs some
> discussion - so I think it is positive that it was explained.  The

On this I agree. I think Aristotle has it right here.

"Error checking omitted for clarity" is something I hate reading.

Because I'm pretty sure that everyone careful enough to read that sort of
disclaimer is also careful enough to know how to add it back. Whereas for
the people *for whom it matters*, they're just going to copy the code as-is,
see that it works (for their simple test case), and move on.

Free as in landmines.

Nicholas Clark

Reply via email to