Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #13056
| From | Ian Collins <ian-news@hotmail.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: Why doesn't this multiple virtual inheritance code compile? |
| Date | 2012-01-04 15:15 +1300 |
| Message-ID | <9mhr18FpeqU3@mid.individual.net> (permalink) |
| References | <785a07d6-7cf7-4249-a123-f7d7b4aaa8b3@l24g2000yqm.googlegroups.com> <jdtfkp$rcb$1@dont-email.me> <4_adnYRwDbDB5Z7SnZ2dnUVZ8sKdnZ2d@giganews.com> <je096m$l1d$1@dont-email.me> <v8CdnTJ_s7yLNJ7SnZ2dnUVZ8rWdnZ2d@giganews.com> |
On 01/ 4/12 02:19 PM, Leigh Johnston wrote: > On 04/01/2012 01:14, Alf P. Steinbach wrote: >> On 03.01.2012 22:51, Leigh Johnston wrote: >>> >>> For good examples of using the same naming convention for both types and >>> functions see the C++ standard library. >> >> The standard library operates under conditions that normal code does not: >> >> (a) It is guaranteed to be used a lot by everybody. >> >> (a1) all serious users become familiar with the names. This means that >> for the standard library it is more important to reduce typing effort >> (having short names) than to reduce interpretation and recognition >> effort (having self-describing names). Aiming for the latter would just >> be wasted effort. >> >> (a2) since much of it is template based code, short names and terse >> coding style help to reduce compile times. look at the code written pjp >> (e.g. for visual c++'s standard library). it is horrible by the >> standards of ordinary application programming, where clarity is the main >> concern, but it it is near ideal for fast compilation. >> >> (a3) bugs are much more likely to surface early and repeatedly, than >> with ordinary application code. again this reduced the need for clarity. >> >> (b) It can be and in some parts has to be system- and compiler-specific. >> If some particular piece of code is not part of the developers have >> aimed to make portable (to reduce the total effort), then it can be >> written in any compiler- and system-dependent way, whatever the >> developer regards as easiest. This is generally not so for ordinary >> application code. >> >> In short, do not look to the standard library for naming and formatting >> conventions for ordinary application code. >> >> The standard library is not ordinary application code: it operates under >> a totally different set of rules. > > There can only be one response to the above verbiage: LOL! Why? I've worked on a lot of projects with almost as many coding standards and I don't think the standard library naming conventions would be acceptable under any of them. All of my current clients have some form of different naming convention for types rule. -- Ian Collins
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Why doesn't this multiple virtual inheritance code compile? Chris Stankevitz <chrisstankevitz@gmail.com> - 2012-01-02 12:16 -0800
Re: Why doesn't this multiple virtual inheritance code compile? Paavo Helde <myfirstname@osa.pri.ee> - 2012-01-02 15:36 -0600
Re: Why doesn't this multiple virtual inheritance code compile? Chris Stankevitz <chrisstankevitz@gmail.com> - 2012-01-02 14:41 -0800
Re: Why doesn't this multiple virtual inheritance code compile? Ian Collins <ian-news@hotmail.com> - 2012-01-03 11:54 +1300
Re: Why doesn't this multiple virtual inheritance code compile? "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2012-01-02 23:56 +0000
Re: Why doesn't this multiple virtual inheritance code compile? Chris Stankevitz <chrisstankevitz@gmail.com> - 2012-01-02 20:25 -0800
Re: Why doesn't this multiple virtual inheritance code compile? Marcel Müller <news.5.maazl@spamgourmet.com> - 2012-01-03 12:46 +0100
Re: Why doesn't this multiple virtual inheritance code compile? "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2012-01-03 16:34 +0000
Re: Why doesn't this multiple virtual inheritance code compile? Paavo Helde <myfirstname@osa.pri.ee> - 2012-01-03 01:20 -0600
Re: Why doesn't this multiple virtual inheritance code compile? Goran <goran.pusic@gmail.com> - 2012-01-02 23:52 -0800
Re: Why doesn't this multiple virtual inheritance code compile? "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2012-01-03 15:42 +0000
Re: Why doesn't this multiple virtual inheritance code compile? Chris Stankevitz <chrisstankevitz@gmail.com> - 2012-01-03 13:35 -0800
Re: Why doesn't this multiple virtual inheritance code compile? Robert Wessel <robertwessel2@yahoo.com> - 2012-01-02 16:23 -0600
Re: Why doesn't this multiple virtual inheritance code compile? Chris Stankevitz <chrisstankevitz@gmail.com> - 2012-01-02 14:43 -0800
Re: Why doesn't this multiple virtual inheritance code compile? "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2012-01-03 00:46 +0100
Re: Why doesn't this multiple virtual inheritance code compile? Chris Stankevitz <chrisstankevitz@gmail.com> - 2012-01-02 20:38 -0800
Re: Why doesn't this multiple virtual inheritance code compile? Spike <invalid@invalid.invalid> - 2012-01-03 09:35 +0100
Re: Why doesn't this multiple virtual inheritance code compile? Chris Stankevitz <chrisstankevitz@gmail.com> - 2012-01-03 13:39 -0800
Re: Why doesn't this multiple virtual inheritance code compile? Leigh Johnston <leigh@i42.co.uk> - 2012-01-03 21:51 +0000
Re: Why doesn't this multiple virtual inheritance code compile? "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2012-01-04 02:14 +0100
Re: Why doesn't this multiple virtual inheritance code compile? Leigh Johnston <leigh@i42.co.uk> - 2012-01-04 01:19 +0000
Re: Why doesn't this multiple virtual inheritance code compile? Ian Collins <ian-news@hotmail.com> - 2012-01-04 15:15 +1300
Re: Why doesn't this multiple virtual inheritance code compile? Leigh Johnston <leigh@i42.co.uk> - 2012-01-04 02:58 +0000
Re: Why doesn't this multiple virtual inheritance code compile? jgk@panix.com (Joe keane) - 2012-01-04 20:45 +0000
Re: Why doesn't this multiple virtual inheritance code compile? Juha Nieminen <nospam@thanks.invalid> - 2012-01-03 06:26 +0000
Re: Why doesn't this multiple virtual inheritance code compile? jgk@panix.com (Joe keane) - 2012-01-03 14:12 +0000
csiph-web