473,700 Members | 2,536 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 3483
"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
2554
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 standards. Does anyone know where I can get some information about what the community is doing? Are there...
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 in their best practices section. That stuff is good, but
4
2291
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 Standards". This book includes everything from how to set up your project to how to declare...
144
6864
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 everybody else to write code the way he likes it, not for any rational reason, but simply for the...
10
2989
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
4719
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
4949
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 Programming Language Secure Coding Standard"
1
1768
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 among programmers. 3 To act as a learning tool for new programmers. 4 To act as a reference tool for...
19
3966
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
8722
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8643
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8968
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8922
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7805
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5900
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4401
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2389
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2025
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.