DevIQ
Practices from Code That Fits in Your Head
Practices from Code That Fits in Your Head
Code That Fits in Your Head by Mark Seemann includes over two dozen specific practices one can follow to help write better software. A summary of these practices is shown below. It's an excellent book with many heuristics and tips for writing better software while always ensuring the current context is simple enough for the developer to reason about.
Practices from Code That Fits in Your Head
- The 50/72 Rule
- The 80/24 Rule
- Arrange Act Assert
- Bisection
- Checklist for New Code Base
- CQS
- Count the Variables
- Cyclomatic Complexity Limit
- Decorators for Cross-Cutting Concerns
- Devil's Advocate
- Feature Flag
- Functional Core, Imperative Shell
- Hierarchy of Communication
- Justify Exceptions from the Rule
- Parse, Don't Validate
- Postel's Law
- Red, Green, Refactor
- Regularly Update Dependencies
- Reproduce Defects as Tests
- Review Code
- Semantic Versioning
- Separate Refactoring of Test and Production Code
- Slice (vertical)
- Strangler (fig)
- Threat Model
- Transformation Priority Premise
- (X) Driven Development
- X Out the Names