OhMySkills
语言与基础运行时 cpp-modern 更新于 2026-09-07

C++ 工程规则

Modern C++ rules: RAII ownership, explicit lifetimes and warning-free builds

技术栈
C++
主题
工程基线
条目
9 条
版本
v0.2.0

✓ 应当这么做

  • ✓ Write the idiom that the language library authors themselves would write
  • ✓ Keep public APIs documented at the point of declaration
  • ✓ Cover the error paths with tests, not only the happy path

✕ 常见反模式

  • ✕ Porting patterns from another language that fight the runtime
  • ✕ Global mutable state used as an implicit dependency channel
  • ✕ Silent fallbacks that hide configuration mistakes

◎ 交付前验证

  • ◎ Compiler/interpreter warnings treated as errors for new code
  • ◎ Test suite passes on the minimum supported language version
  • ◎ Public API diff reviewed for accidental surface growth

同分类条目

32 篇

同一技术栈的其他条目