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 08:38:29 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cyclone2.usenetserver.com!usenetserver.com!news01.optonline.net!news02.optonline.net.POSTED!not-for-mail From: Arthur Krewat Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: Congratulations for the festive season Organization: Kilonet.net Message-ID: <3C2607DF.473C41B2@bartek.dontspamme.net> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.78 [en] (X11; U; SunOS 5.8 i86pc) X-Accept-Language: en Date: Sun, 23 Dec 2001 16:38:02 GMT NNTP-Posting-Host: 24.186.100.134 X-Trace: news02.optonline.net 1009125482 24.186.100.134 (Sun, 23 Dec 2001 11:38:02 EST) NNTP-Posting-Date: Sun, 23 Dec 2001 11:38:02 EST Xref: archiver1.google.com comp.os.vms:56991 alt.sys.pdp10:8728 comp.sys.dec:10287 Eric Smith wrote: > > Arthur Krewat writes: > > Yeah, but come on. Isn't it the programmer's fault that they can't write > > good C code? > > Of course it is. But the reality is that it's going to get written badly > by those programmers. So the responsible thing for the rest of us to do is > to give those programmers tools that can protect them (and their victims, > er, end users) from the most obvious stupid errors. The C language isn't > the right tool. Again, just get rid of the stupid programmers. > If you knew that most furniture was going to be made by klutzy people, > you'd give them table saws that have finger guards, right? It IS made by klutzy people - that's why OSHA exists. Of course, you can compare OSHA to your "good" compiler. I don't need OSHA to tell me to wear a respirator when painting my car. > > Again, I see nothing wrong with the language except that it doesn't check > > on the assholes. > > 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. 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. > > Seen Ada, matter of fact had to tell the weenies how to program Ada in > > an effective way (system admin for a place that did DOD stuff). > > Sounds like you're talking about efficiency. You can write inefficient > code in any language, just like you can write buggy code in any language. > There are several areas in which Ada implementations (and the language) > tend to be criticized for inefficiency. In actuality, there is nothing > in the language spec that can't be implemented just as efficiently as > C code. People tend to complain about exceptions and generics, which > actually have little run-time overhead. They also complain about garbage > collection, which is not actually required by the language. However, > I would argue that garbage collection is actually another thing that > is well worth its small runtime cost. They were programming an imbedded controller (68k) and couldn't find any extra cycles to fit in more code. Without knowing Ada, I looked at their code, pointed out a few places where there were obvious ineffeciencies and they got their job done. I used this as an example of weenie-ism to the nth degree. > > I like machine language, preferably in octal (for PDP-10's). > > You're never going to convince a non-trivial number of programmers > of that being the Right Thing (tm). And I would argue that while > that might be fine for you, you wouldn't really want to depend on > the unwashed masses programming in that. The results would be much > worse that what we have with C. 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. > > I never liked a compile/interpreter that pretended to know more than > > I did. > > Are you making the "I don't want the compiler to tell me what I can > and can't do" argument? That's the usual argument of assembler and > C programmers against strongly typed languages. The counterargument > is that while the compiler isn't smarter or more knowledgeable than > the programmer, it is certainly better at mundane housekeeping tasks, > and thus good at keeping track of data types and letting you know when > you might have made a boo-boo. 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. > Generally people that run into a lot of problems with strong typing > don't understand their problem or data well enough. In many programs > there is a legitimate need for a small amount of type casting (between > arbitrary types, e.g. Ada's unchecked_conversion generic,, not simple > numeric casts as in C), but if you have to do a lot of it your program > isn't well-structured. I've spend uncounted hours rewriting poorly > structured code supplied by outside vendors, and invariably the results > are cleaner, easier to understand, and have a lot less type casting. Exactly. So why didn't the vendors hire REAL programmers? How the hell did these idiots get their CS degrees in the first place? Oh, that's right, being a good programmer is not a prerequisite... Anyway, I've had enough of this thread :) Key points: 1) You think C is brain-damaged 2) I stand by my statements that it is not because it never came with a guarantee of infalibility. 3) We both agree that the vast majority of software these days is written by "unwashed masses". 4) You say we should provide the weenies with better tools. This is like sticking your finger in the dike while there is a 10-foot crack right next to the hole. You're going to die when the dike comes down. 5) I say the unwashed masses should go learn the right way to program and put that CS sheepskin in a drawer somewhere because it don't mean shit (to me). And I AM in a position to hire and fire people based on their ability to write good code (and have). Conclusion: we agree to disagree :) I still say that by coddling the weenies, you are getting yourself deeper and deeper into a quagmire that the world will never get out of - the only way to really fix it is to stop using weenies to write code - ANY code! aak -- Arthur Krewat VP of Engineering, Bartek, Inc. krewat@bartek.dontspamme.net