AI-era best practices
C++ abstraction and code review skills matter more as AI handles syntax details CoreCppILTL;DW
- Abstractions and proper design still matter because they help AI produce better code and reduce context size for AI, while helping humans understand and maintain code effectively.
- Strong types prevent bugs that AI may not catch (e.g., passing wrong doubles as arguments); guide AI to use them via code review rules since AI was trained on codebases that don't consistently use them.
- Mastering C++ standards (20, 23, 26) is necessary to instruct AI on modern features like concepts and reflection it won't naturally choose, even though AI was trained on older patterns.
- Understanding code at ~90% comprehension is critical; reading code you understand less than 80% becomes inefficient and unprofessional, requiring you master enough C++ features to follow AI-generated code.
- Memory management and resource handling can shift from universal mastery to specialist knowledge since AI writes safe code; sanitizers catch leaks, so not all teams need deep expertise.
- Critical thinking and bug hunting remain essential because AI makes fewer mistakes, making hidden defects much harder to identify than when code had obvious issues.
- Translate best practices into AI skills and rules rather than relying on verbal guidance; without codified rules, AI repeats mistakes across code reviews because rules aren't in its context window.
- Testing quality matters; AI may mock entire systems or achieve coverage artificially instead of testing actual behavior, requiring human judgment and understanding of test flow.
- Micro-optimizations and obscure standard library algorithm details are deprioritized unless you work in high-frequency trading; let AI optimize, then benchmark and iterate if needed.
- Problem decomposition into smaller pieces is critical because dropping large problems on AI produces code that doesn't match intent; break problems down before AI processes them.
TL;DW
- Abstractions and proper design still matter because they help AI produce better code and reduce context size for AI, while helping humans understand and maintain code effectively.
- Strong types prevent bugs that AI may not catch (e.g., passing wrong doubles as arguments); guide AI to use them via code review rules since AI was trained on codebases that don't consistently use them.
- Mastering C++ standards (20, 23, 26) is necessary to instruct AI on modern features like concepts and reflection it won't naturally choose, even though AI was trained on older patterns.
- Understanding code at ~90% comprehension is critical; reading code you understand less than 80% becomes inefficient and unprofessional, requiring you master enough C++ features to follow AI-generated code.
- Memory management and resource handling can shift from universal mastery to specialist knowledge since AI writes safe code; sanitizers catch leaks, so not all teams need deep expertise.
- Critical thinking and bug hunting remain essential because AI makes fewer mistakes, making hidden defects much harder to identify than when code had obvious issues.
- Translate best practices into AI skills and rules rather than relying on verbal guidance; without codified rules, AI repeats mistakes across code reviews because rules aren't in its context window.
- Testing quality matters; AI may mock entire systems or achieve coverage artificially instead of testing actual behavior, requiring human judgment and understanding of test flow.
- Micro-optimizations and obscure standard library algorithm details are deprioritized unless you work in high-frequency trading; let AI optimize, then benchmark and iterate if needed.
- Problem decomposition into smaller pieces is critical because dropping large problems on AI produces code that doesn't match intent; break problems down before AI processes them.
Amir Kirsh at CoreCppIL argues that AI coding assistants shift which C++ skills are worth mastering: micro-optimizations and memorizing stdlib algorithms matter less, while abstraction, strong typing, decomposition, and critical review matter more—because AI won't apply them correctly without human guidance and developers must still understand 80-90% of generated code to catch bugs.
