CppCon 2015: Bjarne Stroustrup “Writing Good C++14”

Channel:CppCon · Length:1:40:46 · Published:2015-09-23 · Views:351303

Watch on YouTube

Summary

Bjarne Stroustrup's CppCon 2015 keynote on using C++14 to write better code, not just different code. It introduces the C++ Core Guidelines and the machine-checkable rules and GSL library behind them.

Why HN recommends it

HN people recommend it as the starting point for modern C++ and for the language's safety story.

If you want to start with modern c++ watch this — HN, 2016

C, C++, Rust, Go & systems languages

Subtitles (excerpt)

yes now we can go uh wow um welcome it's uh very nice and a little bit scary to see you all here and uh I'm especially happy to see a lot of old friends and also that a lot of people that are new here anyway um I'm going to talk about how to to to write code and um in particular a question that's been bothering me for a while and I know it has bothered a lot of other people is what is good modern C++ uh we've done a lot to the language over the last um 5 10 years and a lot of people have ideas about what what it is to write good uh C++ and lots of people ask about it so this spring I started a project trying to to make some guidelines for how to write this and turned out that other people were on to the same kind of idea um so some of us are trying to provide a useful answer and one of the things that is important here is that we would like for the like to help many people there's more than more than 4 million C++ programmers and if we come up with a solution that can handled by 200 language experts we've failed so uh this is um this is an attempt to to be able to help a lot of people and another way of seeing it that we have a great language now and it's it's a modern language it can do really nice things that we couldn't do 10 20 years ago uh

On Hacker News

It's hardly modern C++ what you will see in this talk. Mike Acton even said that they only use C++ because it's game industry standard but he would prefer C. If you want to start with modern c++ watch this: CppCon 2015: Bjarne Stroustrup “Writing Good C++14” [VIDEO] — lossolo, 2016-05
You should watch those cppcon again, because Stroustrup and Herb are saying there many times that smart pointers are NOT should be use instead of raw pointers. Use smart pointers where It's about ownership. You should watch this video: [VIDEO] — lossolo, 2016-04
There are some great talks by Neil MacIntosh about the kinds of static analysis they are building into the tool. CppCon 2015: Neil MacIntosh “Static Analysis and C++: More Than Lint" [LINK] CppCon 2015: Neil MacIntosh “Evolving array_view and string_view for safe C++ code" [LINK] For something of this magnitude I wouldn't consider the project late until mid summer. Stroustrup's keynote at CppCon … — sitkack, 2016-01
The major issue with C++, is what also helped the language gain market adoption, copy-paste compatibility with most of C89 code. So security conscious C++ developers tend to use enum class , string, vector and array classes, RAII, iostreams, wrapping data access in classes with invariants,... Developers with more C oriented mindset, tend to just code away like "C with C++ compiler" programming st… — pjmlp, 2018-02
Stroustrup has proposed a way to add safety to C++. It's called "C++ Core Guidelines", and "GSL". [LINK] [LINK] I watched his talk -- wondering if anyone is using it. [VIDEO] Using GSL gives adds some safety to pointers and memory allocation -- while providing the bare-metal performance that C is known for. (It still feels very low-level.) — Tempest1981, 2016-12

Related videos