473,566 Members | 3,065 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C++ Coding Standards : 101 Rules, Guidelines, and Best Practices

C++ Coding Standards : 101 Rules, Guidelines, and Best Practices by
Herb Sutter, Andrei Alexandrescu is now a month or so away from
release. What is people's opinion on this...is it going to be a
seminal work or lackluster

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.m oderated. First time posters: Do this! ]
Jul 22 '05 #1
27 3455
"Stuart Gerchick" <sg*******@bloo mberg.net> wrote in message
news:e2******** *************** ***@posting.goo gle.com...
C++ Coding Standards : 101 Rules, Guidelines, and Best Practices by
Herb Sutter, Andrei Alexandrescu is now a month or so away from
release. What is people's opinion on this...is it going to be a
seminal work or lackluster


If I were capable of predicting the future, I'd be heading
for Las Vegas or Wall Street. And I can't give an opinion
about the literature itself, since I haven't seen it. However
I suspect it will be of value to many, based upon the reputations
of Herb & Andrei.

-Mike
Jul 22 '05 #2
On 31 Oct 2004 06:17:29 -0500, sg*******@bloom berg.net (Stuart Gerchick)
wrote:
C++ Coding Standards : 101 Rules, Guidelines, and Best Practices by
Herb Sutter, Andrei Alexandrescu is now a month or so away from
release.


In North America, it should be available in bookstores around now. Andrei
and I got our first copies a week ago, and it was available for sale at
OOPSLA. I haven't looked at my local Barnes & Noble or Borders yet.

More at http://pluralsight.com/blogs/hsutter...0/07/2709.aspx
...

Herb

---
Herb Sutter (www.gotw.ca) (www.pluralsight.com/blogs/hsutter)

Convener, ISO WG21 (C++ standards committee) (www.gotw.ca/iso)
Contributing editor, C/C++ Users Journal (www.gotw.ca/cuj)
Architect, Developer Division, Microsoft (www.gotw.ca/microsoft)

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.m oderated. First time posters: Do this! ]
Jul 22 '05 #3
apm
sg*******@bloom berg.net (Stuart Gerchick) wrote in message
news:<e2******* *************** ****@posting.go ogle.com>...
C++ Coding Standards : 101 Rules, Guidelines, and Best Practices by
Herb Sutter, Andrei Alexandrescu is now a month or so away from
release. What is people's opinion on this...is it going to be a
seminal work or lackluster


Judging from the table of contents, it looks good. It seems to sum up
several pearls of wisdom from sources such as Meyers I, II, III and
GoTW. It looks like it is going to avoid the more contravesial
style-oriented guidelines, and so to me, does not appear to be like
other coding guidelines. I think it is more tutorial in nature and
thus may not be suitable for use by QA during code review. But who
knows, until it is actually published?

Regards,

Andrew Marlow

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.m oderated. First time posters: Do this! ]
Jul 22 '05 #4
Herb Sutter <hs*****@gotw.c a> wrote in message news:<re******* *************** **********@4ax. com>...
On 31 Oct 2004 06:17:29 -0500, sg*******@bloom berg.net (Stuart Gerchick)
wrote:
>C++ Coding Standards : 101 Rules, Guidelines, and Best Practices by
>Herb Sutter, Andrei Alexandrescu is now a month or so away from
>release.


In North America, it should be available in bookstores around now. Andrei
and I got our first copies a week ago, and it was available for sale at
OOPSLA. I haven't looked at my local Barnes & Noble or Borders yet.

More at http://pluralsight.com/blogs/hsutter...0/07/2709.aspx
..

Herb


I didn't expect Herb Sutter himself to respond to this posting. I am
eagerly awaiting it actually and cant wait to have it in my hands.
Unfortunately, I am in the UK most of the time these days, and will
have to wait a bit for the release. I have it on order and it should
arrive soon.

Thank for for your time Herb. I appreciate it

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.m oderated. First time posters: Do this! ]
Jul 22 '05 #5
>What is people's opinion on this...is it going to be a seminal work or
lackluster

With the book not released, how are we supposed to judge? And what do
people's opinions matter, at all, with so little to go on?

Stephen Howe

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.m oderated. First time posters: Do this! ]
Jul 22 '05 #6
sg*******@bloom berg.net (Stuart Gerchick) wrote in message
news:<e2******* *************** ****@posting.go ogle.com>...
C++ Coding Standards : 101 Rules, Guidelines, and Best Practices by
Herb Sutter, Andrei Alexandrescu is now a month or so away from
release.
At least some of the people I know have seen actual copies of the
printed book. (On the other hand, Amazon says "not yet been released".)
What is people's opinion on this...is it going to be a seminal work or
lackluster


How can anyone tell if they've not actually seen the book. And I'm not
quite sure what you mean by "seminal" -- I wouldn't have considered it
an antonym for lackluster. Given the authors, I expect lots of useful
information, and a readable style. Given the authors, I also expect
some information "just for fun", and some information which won't be
immediately usable because compilers and/or collegues who have to read
and understand the code aren't up to date. On the other hand, by
"seminal", I understand something that will change the way we think
about the language -- a priori, I don't expect either author to present
new ideas that they haven't already discussed here, for example. (In
the industry, from a pratical point of view, "seminal" often means,
"interestin g, but not usable in the next ten years". While some of
Andrei's work might fall into that category -- especially if you have
difficulty getting updates for your collegues:-), for the most part, I
expect that most of the information in the book will be immediately
usable.)

--
James Kanze GABI Software http://www.gabi-soft.fr
Conseils en informatique orientée objet/
Beratung in objektorientier ter Datenverarbeitu ng
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.m oderated. First time posters: Do this! ]
Jul 22 '05 #7
"Stephen Howe" <st************ *************** *******@eu.uu.n et> wrote in
message news:<41******* **************@ reading.news.pi pex.net>...
What is people's opinion on this...is it going to be a seminal work or

lackluster

With the book not released, how are we supposed to judge? And what do
people's opinions matter, at all, with so little to go on?

Stephen Howe


As Herb Sutter said above it was available for sale at OOPSLA. People
have now seen it. The kinds of people who are on comp.lang.c++

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.m oderated. First time posters: Do this! ]

Jul 22 '05 #8
sg*******@bloom berg.net (Stuart Gerchick) wrote in message news:<e2******* *************** ****@posting.go ogle.com>...
C++ Coding Standards : 101 Rules, Guidelines, and Best Practices by
Herb Sutter, Andrei Alexandrescu is now a month or so away from
release. What is people's opinion on this...is it going to be a
seminal work or lackluster

I approach it from the standpoint that book (my copy showed up
yesterday) - as the title says - is a collection of 'best practices'.

Paragraph 3, page xiii states

" The coding standards introduced by this book are collection of
guidelines for writing high-quality C++ code. They are distilled
conclusions of a rich collective experience of the C++ community.
Much of this body of knowledge has only been available in bits and
pieces spread throughout books, or as word-of-mouth wisdom. This
book's intent is to collect that knowledge into a collection of rules
that is terse, justified, and easy to understand and follow".

The key IMO starts here "This book's intenet .. follow".

Here's one that I'm still confused - if you will - on what constitutes
the ideal implementation approach.

42 per the text. Dont give away your internals

Accessor and mutator as I understand it are - for the most part -
design flaws.
The example in the text shows a GetBuffer member function returing a
char*
In any event, when data needs to be shared among classes this
accessor/mutator beats the alternative (public member data) so I've
never quite understood this one.
A host of get and sets - I suspect - are signs of poor design. I'd
still like to see a concrete example that shows the solution.

My 2cents for what it's worth.

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.m oderated. First time posters: Do this! ]
Jul 22 '05 #9
Hi!

Stuart Gerchick wrote:
People
have now seen it. The kinds of people who are on comp.lang.c++


There are also European people on this newsgroup, like me. And
they don't have the book yet.

Frank
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.m oderated. First time posters: Do this! ]
Jul 22 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2549
by: Isaac Rodriguez | last post by:
Hi, I am fairily new to Python, but I am really liking what I am seeing. My team is going to re-design some automation projects, and we were going to use Python as our programming language. One of the things we would like to do, since we are all new to the language, is to define a set of guidelines and best practices as our coding...
1
298
by: Todd | last post by:
Does anyone know of a book for C# .NET on coding standards and guidelines? My company is in the process of defining this stuff as we move to C# .NET. I could swear I picked up a book like this in a technical bookstore, but now I can't find one searching Amazon.com or anywhere else. By the way, I've seen the documentation Microsoft has...
4
2279
by: dotNetDave | last post by:
About three weeks ago I released the first .NET coding standards book titled "VSDN Tips & Tricks .NET Coding Standards". Here is what the famous author/ speaker Deborah Kurata says about it: "David McCarter once again demonstrates his knack for pulling best practices into one cohesive unit with his new book "VSDN Tips and Tricks: .NET Coding...
144
6776
by: Natt Serrasalmus | last post by:
After years of operating without any coding standards whatsoever, the company that I recently started working for has decided that it might be a good idea to have some. I'm involved in this initiative. Typically I find that coding standards are written by some guy in the company who has a way of coding that he likes and then tries to force...
10
2970
by: Ren | last post by:
Hi All, I'm still rather new at vb.net and would like to know the proper way to access private varibables in a class. Do I access the variable directly or do I use the public property? public class MyClass private _variableName as integer public property VariableName as integer
50
4687
by: Konrad Palczynski | last post by:
I am looking for tool to validate conformity to defined coding standard. I have already found Parasoft's C++ Test, but it is quite expensive. Is there any Open Source alternative? I do not need GUI, fancy reports nor predefined sets of rules.
7
4934
by: Robert Seacord | last post by:
The CERT/CC has just deployed a new web site dedicated to developing secure coding standards for the C programming language, C++, and eventually other programming language. We have already developed significant content for the C programming language that is available at: https://www.securecoding.cert.org/ by clicking on the "CERT C...
1
1760
by: pat | last post by:
Abraxas Software Understanding YOUR GOALS & Using CodeCheck Implementing Corporate Source Code Guidelines C/C++ Source Code GuideLine Automation The goals of CodeCheck are: 1 To create a standard which will enable you to provide the customer with a quality product in a timely manner. 2 To promote standardization of software development...
19
3952
by: auratius | last post by:
http://www.auratius.co.za/CSharpCodingStandards.html Complete CSharp Coding Standards 1. Naming Conventions and Styles 2. Coding Practices 3. Project Settings and Project Structure 4. Framework-Specific Guidelines Naming Conventions and Styles
0
7683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7899
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8113
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7957
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6270
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5215
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3647
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3628
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
927
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.