From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fc52c633190162e0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn12feed!worldnet.att.net!164.128.36.58!news.ip-plus.net!newsfeed.ip-plus.net!news.post.ch!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Shortage on C / C++ experts Date: Mon, 02 Apr 2007 08:33:44 +0200 Organization: Swisscom IP+ (post doesn't reflect views of Swisscom) Message-ID: <4610a3c8$1@news.post.ch> References: <1172144043.746296.44680@m58g2000cwm.googlegroups.com> <1172161751.573558.24140@h3g2000cwc.googlegroups.com> <546qkhF1tr7dtU1@mid.individual.net> <5ZULh.48$YL5.40@newssvr29.news.prodigy.net> <1175215906.645110.217810@e65g2000hsc.googlegroups.com> <1175230700.925143.28490@n59g2000hsh.googlegroups.com> <6XbPh.4025$u03.802@newssvr21.news.prodigy.net> <1175491660.511530.58430@y80g2000hsf.googlegroups.com> NNTP-Posting-Host: 194.41.146.1 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: atlas.ip-plus.net 1175495629 6162 194.41.146.1 (2 Apr 2007 06:33:49 GMT) X-Complaints-To: abuse@ip-plus.net NNTP-Posting-Date: Mon, 2 Apr 2007 06:33:49 +0000 (UTC) User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) In-Reply-To: <1175491660.511530.58430@y80g2000hsf.googlegroups.com> X-Original-NNTP-Posting-Host: w01iwt.pnet.ch X-Original-Trace: 2 Apr 2007 08:33:44 +0200, w01iwt.pnet.ch Xref: g2news1.google.com comp.lang.ada:14722 Date: 2007-04-02T08:33:44+02:00 List-Id: kevin cline schrieb: >> Any suggestion that C++ >> is, as a general principle, safer than Ada is simply a fantasy. > > It's not safer, AS A GENERAL PRINCIPLE. But in the hands of experts, C > ++ allows compile-time type checking that is impossible in Ada. So does Assembler. Problem is that only 1% of C / C++ programmers are experts. You don't belive me? Well, on the last C++ project I worked I was the only developer who knew that virtual inheritance exitst. And one team created (simplification): class A: IMouseHander, IKeyboardHandler class B: public A, IMouseHander, IKeyboardHandler class C: public B, IMouseHander, IKeyboardHandler class D: public C, IMouseHander, IKeyboardHandler This is how real live looks. Of course abstraction is bullshit. But using inheritance saved them aprox. 50 keystrokes per handler. No such thing as "in the hands of experts" or "Good C++ programmers don't.". The feature is there it will be used. Whole teams go for years without a single "expert" at there disposal. And when they asked the only expert around (me) it was to late. > Heroic efforts are not necessary. These days, about all that is > necessary is to avoid writing code that produces compiler warnings. Of course the team in question did not have /W4 activated - they used no /W at all witch is "/W0". They did not have an expert to analyse there compiler switches. The bitter truth is: There are not enough experts around. Martin