Re: another day, another patch ...



On Sat, 07 Apr 2007 08:52:32 -0700, Arne Vajhøj <arne@xxxxxxxxxx> wrote:

Bill Gunshannon wrote:
In article <4615ab14$0$90266$14726298@xxxxxxxxxxxxxxx>,
Arne Vajhøj <arne@xxxxxxxxxx> writes:
Bill Gunshannon wrote:
In article <op.tqbcu8a5tte90l@hyrrokkin>,
"Tom Linden" <tom@xxxxxxxxxxxxxxxxx> writes:
It's not the HW, it's the software, and C.
Nothing wrong with the hardware, other OSes seem to use it just fine.
And as for C, "It's a poor workman who blames his tools." In other
words, it ain't the language, it's the programmers. I can write
good code or bad code in any language. It is a said statement that
most of today's "Professioanls" choose the latter.
Some languages make it much harder to write bad code.

C and C++ are not among those.
Hammers can be used to drive screws into wood. If I do this is it
the hammers fault for making it so easy to do the wrong thing?

No.

But the analogy is bogus.

A hammer is not invented for screws. C is invented for programming.
Well, as a humourous aside, if you watch a typical carpenter he will
likely drive the screw with a hammer most of the way only use a screw driver
for the final turn or so. I guess the ananlogy here is having null-terminated
strings you need to use strncpy:-)

No language prevents "bad code".

No but some languages make it difficult to write bad code and
some languages make it easy to write bad code.

The quality of the code is totally
the responsibility of the programmer. If there is a language other
than C that can do the job better then it is still the programmers
fault if he chooses C and then does something stupid.

Which is what we are saying: C is language that tend to create
lots of hard to find bugs.

Arne



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
.



Relevant Pages

  • Re: another day, another patch ...
    ... words, it ain't the language, it's the programmers. ... Hammers can be used to drive screws into wood. ... But incompetent programmers are just like ...
    (comp.os.vms)
  • Re: CollabRx seeks brilliant engineers for an excellent e-science adventure
    ... belief that lisp programmers are smarter/better. ... Java or PHP programmers. ... a type of language that attracts a personality that meets my perceptions ...
    (comp.lang.lisp)
  • Re: Question concerning object-oriented programming
    ... programming language, not his. ... there has usually been a toString. ... I know it's "unrealistic" to expect actual programmers to do this, ... tell me what a dog is. ...
    (comp.programming)
  • Re: Language X, not Forth ?
    ... As you become more familiar with a language, it's readability is a function of how much care the programmer took to make it more readable. ... The use of non-readable graphics characters doesn't help FORTH to ... All programmers I know use one sort or another to indent or highlight control flow. ... Therefore, I just don't do this kind of crazy things like juggling around with many stack elements. ...
    (comp.lang.forth)
  • Re: Does Python really follow its philosophy of "Readability counts"?
    ... with enforcing that "shouldn't" in the language itself? ... In Python, direct access to pointers is a MUST NOT. ... where you are allowed to mess with the implementation. ... human assembly language programmers? ...
    (comp.lang.python)