From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fdb0e,cdca3dc8d6167cd4 X-Google-Attributes: gidfdb0e,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-12-23 10:54:07 PST Sender: eric@ruckus.brouhaha.com From: Eric Smith Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: Congratulations for the festive season References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C1ED472.7040102@qsl.network> <9vnh67$cct$1@bob.news.rcn.net> <3C2381E4.12E053FE@bartek.dontspamme.net> <3C23B4A2.54C610CA@bartek.dontspamme.net> <3C240D29.C7F79AA2@bartek.dontspamme.net> <3C256383.2A5C2E8A@bartek.dontspamme.net> <3C2607DF.473C41B2@bartek.dontspamme.net> Organization: Eric Conspiracy Secret Labs X-Eric-Conspiracy: There is no conspiracy. Date: 23 Dec 2001 10:54:04 -0800 Message-ID: User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: ruckus.brouhaha.com X-Trace: 23 Dec 2001 11:01:53 -0800, ruckus.brouhaha.com Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news-hog.berkeley.edu!ucberkeley!enews.sgi.com!news.spies.com!ruckus.brouhaha.com Xref: archiver1.google.com comp.os.vms:57006 alt.sys.pdp10:8733 comp.sys.dec:10293 I wrote: > As I pointed out before, even experts slip up from time to time. So tools > that can catch the more obvious screwups are preferrable to brain-damaged > tools that can't. Arthur Krewat writes: > Of course. But I still don't see C as brain damaged. It is a tool designed > to do what it does, and it does it well. It is not SUPPOSED to check up > on buffer overflows. Did it ever? No. It is doing exactly what it is > supposed to be doing. It is not brain-damaged. You're arguing that it's perfectly fine and reasonable to use a hammer to saw 2x4s, because a hammer is well designed to do what it does, and it does it well. However, it doesn't saw 2x4s well. When you want to saw 2x4s, you use a saw, not a hammer. Similarly, when you use a small computer as your development system to write software to run on that small computer, C is a pretty good lanugage to use. That's what it was designed for. When you're writing many megabytes of code that will run on a machine with dozens or hundreds of megabytes of RAM and many gigabytes of disk, C isn't the right tool. C doesn't have finger guards. > I'm not trying to change the world... I just think that the current > pile of weenies can't think their way out of a virtual wet paper bag, > and they shouldn't be allowed to program anything. Agreed. But the reality is that they WILL program things. It will be difficult if not impossible for us to change this. So we should try to minimize the damage. > That's fine when talking about your perfect compiler. C is not, but it > is not as bad as you make it out to be. True. It's much worse. I've been using C professionally for ten years. Before that I used other languages for fifteen. I've been involved in a lot of code reviews of my coworkers code and my own. I've seen FAR more silly, obvious bugs in "working" C code that is being reviewed than I ever saw in any other language other than FORTH and assembler. That's because most languages have some provision for the compiler finding those silly, obvious bugs, but C does not. > Exactly. So why didn't the vendors hire REAL programmers? You keep trying to sweep my point under the carpet. Even real programmers make trivial mistakes, or forget to check bounds, or whatever. They may not do it as often, but it happens. At least one spacecraft was lost due to a bug that could have been caught at compile time. And an even worse problem than the bad code (whether written by experts or losers) is that the code gets trusted to the exclusion of having proper backup systems (e.g., Therac-25). Pray that you never need medical treatment from a system that uses software to prevent dangerous operation. I should say, attempt to prevent. > 5) I say the unwashed masses should go learn the right way to program Yes, over time that will happen for maybe a few percent of them. Meanwhile, the rest of them will continue to write the vast majority of the code. > and put that CS sheepskin in a drawer somewhere because it don't > mean shit (to me). Agreed. But it could be worse. They could have an MCSE or CNE. I won't even interview people that have one of those listed on their resume.