HackerTube

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

CppCon2 HN recommenders · recommended in 3 months, 2016–2018
YouTube
talk · intermediate · 2016–2018 on HN

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.

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

8 comments from Hacker News

@lossolo2016-05 · in “C++ for Games: Performance, Allocations and Data Locality”

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” ▶ this video

Recommends View on HN
@lossolo2016-04 · in “Why would you learn C++ in 2016?”

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: ▶ this video

Recommends View on HN
@sitkack2016-01 · in “A brief introduction to C++'s model for type- and resource-safety [pdf]”

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 is a great overview of the semantics they want to support and the errors that the tooling with will prevent. ▶ this video

Recommends View on HN
@pjmlp2018-02 · in “Rust things I miss in C”

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 style. Hence the need being discussing since the last three CppCon, to stop using C style programming in modern C++. CppCon 2015: Kate Gregory “Stop Teaching C" - link CppCon 2015: Bjarne Stroustrup “Writing Good C++14” - ▶ this video CppCon 2017: Bjarne Stroustrup “Learning and Teaching Modern C++” - link Of course, preventing copy-paste compatibility with C, already solves many of those issues from the get go.

@Tempest19812016-12 · in “Rust vs C Pitfalls”

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. ▶ this 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.)