stroustrup-cpp-style
Bjarne Stroustrup Style Guide
Overview
Bjarne Stroustrup created C++ in 1979 at Bell Labs, evolving it from "C with Classes" into the multi-paradigm language used in systems from browsers to databases to operating systems. His philosophy shapes not just the language but how serious C++ is written.
Core Philosophy
"C++ is designed to allow you to express ideas directly in code. If you can think of it, you should be able to express it in C++."
"Leave no room for a lower-level language below C++ (except assembler)."
"What you don't use, you don't pay for. What you do use, you couldn't hand-code any better."
Design Principles
-
Direct Mapping to Hardware: C++ abstractions should map efficiently to hardware. No hidden costs, no magic.
-
Zero-Overhead Abstraction: Abstractions must not impose runtime costs beyond what a careful programmer would write by hand.