- If it compiles, it's right (probably)
- Obviously wrong code should not compile
- Games
- C++ Tools
- Google / YouTube
- Finance
const
&constexpr
- Enumerations
- Lambdas
- RAII
- Static code analysis
- Strong types
Code is a way you treat your coworkers.
— Michael Feathers (@mfeathers)
June 25, 2020
void sendOrder(
const char *symbol,
bool buy,
int quantity,
double price);
void sellMyGoogleShares() {
sendOrder("GOOG", false, 100, 1000.00);
}
void expensiveMistake() {
sendOrder("GOOG", false, 1000.00, 100);
}
$ gcc -c -Wall -Werror -Wextra expensive.cpp
$