Bjarne Stroustrup announces C++ Core Guidelines

Not about OpenMW? Just about Morrowind in general? Have some random babble? Kindly direct it here.
Post Reply
dteviot
Posts: 144
Joined: 17 Dec 2014, 20:29

Bjarne Stroustrup announces C++ Core Guidelines

Post by dteviot » 22 Sep 2015, 21:20

https://isocpp.org/blog/2015/09/bjarne- ... guidelines

This morning in his opening keynote at CppCon, Bjarne Stroustrup announced the C++ Core Guidelines , the start of a new open source project on GitHub to build modern authoritative guidelines for writing C++ code. The guidelines are designed to be modern, machine-enforceable wherever possible, and open to contributions and forking so that organizations can easily incorporate them into their own corporate coding guidelines.

User avatar
psi29a
Posts: 4663
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: Bjarne Stroustrup announces C++ Core Guidelines

Post by psi29a » 23 Sep 2015, 08:06

Yay, another standard... and you can fork it! </snark>

maqifrnswa
Posts: 180
Joined: 14 Jan 2013, 03:57

Re: Bjarne Stroustrup announces C++ Core Guidelines

Post by maqifrnswa » 24 Sep 2015, 13:58

Thanks, as a non-c++ guy stuff like this is helpful when trying to hack on code. I can rtfm, know the theory, but end up with bad habits from just doing something so it just works. I know what I can do, just not what I should!

User avatar
sirherrbatka
Posts: 2157
Joined: 07 Aug 2011, 17:21

Re: Bjarne Stroustrup announces C++ Core Guidelines

Post by sirherrbatka » 24 Sep 2015, 19:46

Personally I really hate this kind of stuff but after working on a commercial project… majority of C++ programmers is just bad. This kind of tool may help, but it will never prevent terrible code from showing up.

User avatar
psi29a
Posts: 4663
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: Bjarne Stroustrup announces C++ Core Guidelines

Post by psi29a » 24 Sep 2015, 22:40

We're really strict about things at work, no cowboys. You get used to it after awhile, then you realize that it is safest, sanest with the best performing software you've written with the benefit of being readable and maintainable.

To this end, it isn't a language's fault that shit code is written but the discipline of its user.

There is, however, one exception: Java... may it die a fiery death.

ezze
Posts: 428
Joined: 21 Nov 2013, 13:20

Re: Bjarne Stroustrup announces C++ Core Guidelines

Post by ezze » 25 Sep 2015, 09:30

sirherrbatka wrote:Personally I really hate this kind of stuff but after working on a commercial project… majority of C++ programmers is just bad. This kind of tool may help, but it will never prevent terrible code from showing up.
You can say that sentence removing the "C++" part. Unfortunately, in C++ it is more evident.
psi29a wrote:There is, however, one exception: Java... may it die a fiery death.
This is also my experience!

User avatar
EmperorArthur
Posts: 31
Joined: 17 May 2014, 07:52

Re: Bjarne Stroustrup announces C++ Core Guidelines

Post by EmperorArthur » 29 Nov 2015, 12:48

One day we may be able to run openmw through this new tool, whenever it's released.
Of course, without switching to c++11 or 14 we'll have hundreds of thousands of lines of output.

tarsis
Posts: 9
Joined: 27 Oct 2015, 21:10

Re: Bjarne Stroustrup announces C++ Core Guidelines

Post by tarsis » 03 Dec 2015, 14:06

psi29a wrote:Yay, another standard... and you can fork it! </snark>
or use the google c++ style guide: https://google.github.io/styleguide/cppguide.html

otoh google is more and more switching away from c++ to go for obvious reasons.

Post Reply