Re: Compiling C++ modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Avi Kivity writes:

> Avi Kivity wrote:
> >
> > [avi@cleopatra linux]$ grep -r out.*: . | wc -l
> > 10446
> >
> Not to mention:
> 
> [avi@cleopatra linux]$ grep -rw goto . | wc -l
> 37448
> 
> How many of these leave something out? how much time is spent
> deciphering the code when something goes wrong, or is even suspected?

Probably fewer cases and less time than you suspect, respectively.
Just as C++ gives you tools, C does too, but far more important than
language tools is the discipline used when writing code: discipline to
think through the code, to structure it rationally, and to reuse the
rational structures that others have devised in the past.  C++ gives
you well-tested helper classes to manage object locking.  Linux gives
you its own well-tested examples of known and tried design patterns.

Michael Poole
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux