From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,8be18979db11f51c X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,fb631c9316319fef X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-02-27 17:38:04 PST Path: supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out-sjo.usenetserver.com!newsfeed.direct.ca!look.ca!paloalto-snh1.gtei.net!news.gtei.net!paloalto-snr1.gtei.net.POSTED!not-for-mail From: "Rick Cadruvi" Newsgroups: comp.os.vms,comp.sys.dec References: <87n1baae6s.fsf@prep.synonet.com> <97bm3a$7tv@gap.cco.caltech.edu> <3A99AED0.5DF07890@infopuls.com> <97cd06$hcn$1@pyrite.mv.net> <97egck$vc6$3@info.cs.uofs.edu> <3A9AEFCD.AFC8431@infopuls.com> <97etsu$j41$1@pyrite.mv.net> <3A9B023A.CBD414A5@infopuls.com> <3A9C2B88.8032D829@infopuls.com> Subject: Re: Drop C/C++ better sooner than later X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: X-Trace: /wmS5kUEMH5+8nh6R0wz2zS+MzIUHZ/W+IfHTNdqb+c7SGr6kmpwoKEFryPQlkUPgFRrqhQuii2y!muoYORJYQpBe5uyz7BD2TcS1yWEnA14zEqrVfR29vH89Xd9npmG+2FcKof4vbLfRxHIQY1Fq6JE4!SwqLX8LFN38= X-Complaints-To: abuse@gte.net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Wed, 28 Feb 2001 01:36:08 GMT Distribution: world Date: Wed, 28 Feb 2001 01:36:08 GMT Xref: supernews.google.com comp.os.vms:20439 comp.sys.dec:2888 "Christof Brass" wrote in message news:3A9C2B88.8032D829@infopuls.com... > I don't think it is a good idea to come up with a list of > requirements and matching PLs because this will lead the > discussion quickly to certain aspects of these PLs instead of > talking about the big picture which is from my point of view: > can it be possible that something created in the early days of > our quick evolving area is still the best tool around?? Is C the > wheel of PL science and practice? Is flying impossible? I disagree. You stated that using C/C++ was stupid (or something to that affect) and that you couldn't write good code in it. Therefore. naming other languages and their appropriate use is necessary for the discussion. Since you won't suggest alternatives, you clearly demonstrate an anti C/C++ bias that must be more emotionally based than fact based. I haven't even heard your objections to C/C++ except their age. Believe me, I am NOT a defender of C. There are many things I HATE about C. Here's 4 of them: 1. Case Sensitivity. I am use to it, but I think it is a BIG problem. tmp, TMP, Tmp, tMp, tmP, TMp, tMP should NOT refer to different things. 2. SWITCH/CASE doesn't auto-break. I NEVER depend on being able to fall through to the next CASE in a SWITCH statement. The default should be BREAK and allow specifying CONTINUE if you want to drop through. THIS IS A BIG PROBLEM!!! 3. BREAK. Break should be allowed from ALL Begin/End ({}) constructs (including IF ELSE). You should also be able to BREAK # where # is the number of Begin/End blocks you want to break out of. 4. Use of "==" for compares. It's WAY too easy to put in "=" instead. In fact, I usually do a specialized search of ALL my code before the first compile just to try and catch these. However, C is currently one of the most practical development languages because you have a large pool of people who know it and can be brought in to a project to work on it. This is VERY important in commercially viable software. Also, it is portable if the programmer isn't too careless. You always have to assume your code will need to run on another platform/OS. My ideal language would probably be mostly a combination of BLISS and C. However, I do mostly tools and System programming. Therefore, I am not probably the best sample case for what makes a good programming language. However, I have done just about every kind of programming from Accounting packages, to OS code to embedded systems to realtime. One thing I don't want is a language to get in the way. A lot of newer languages are designed to prevent programmers for doing things to keep them from making mistakes. I understand this logic, but what you have is an effort to over compensate because programmers were never taught to program well and they write BAD code. In order for a language to be useable, they invariably provide some "backdoor" that allows you to do the things you really want to do. As a result, those "backdoors" get abused. Along comes someone else who says they have to do something new that removes that "backdoor". As more code is written in the new language, it becomes clear that new "backdoors" have to be implemented because the language is preventing complex things from being done or at least is making them so difficult that they take too long. This was always my problem with ADA. Time to implement a project is VERY important. It's one of the BAD things with C/C++ in terms of applications development. Progrmaming Languages are just part of the tool set programmers use to solve problems. What we really do is we solve problems. The code writing is merely a clerical function through which we express those solutions. Sure we should use better tools when they are there. However, better programming languages will NEVER be a substitute for writing GOOD code. The real problem we need to solve is making sure programmers learn how to write code well to start with. That is NOT being taught in Universities. My own son is majoring in computer engineering and his professors DON'T have a clue how to write GOOD code. I am teaching him that and he is juggling writing GOOD code with the CRAP the professors want. Hopefully he will learn from both and get the grades he wants and still be able to write GOOD code when he finally goes to work for someone. However, his manager there won't have a clue either and will insist he write BAD code because he doesn't know how to write GOOD code and can't understand the benefits. How many times do you still hear programmers justify the requirement that all routines exit at the bottom, or insist it is more efficient to write fewer large routines than many small routines to save a few routine calls. As long as this ignorance persists, all the GREAT new programming languages won't solve the problem. When I even thing about using a ELSE statement, I force myself to justify it's use. Most programmers think using ELSEs is really great and liberally do nested IF then ELSEs. Teach programmers to write code well, and new progrmaming languages will evolve that help us solve the problems better and not ones that prevent us from doing things we shouldn't do in the first place unless they are REALLY required. just my opinions, Rick Cadruvi...