Clean Code: Writing Code for Humans
Anyone can write code a computer can understand, but professional developers write code *humans* can understand. Clean code is a reader-focused development style that produces software that's easy to write, read and maintain.
What you'll learn
Are you a technical debt generator? Do your co-workers cringe at the thought of having to work with your code? Clean code is the art of writing code humans can understand. Elevate your professionalism and increase your code quality by writing with the reader in mind! We'll walk through three core clean coding practices: 1) Select the right tool for the job. 2) Optimize the signal to noise ratio. 3) Create self-documenting logic. These practices are the foundation for a professional development career and provide developers a clear vocabulary for evaluating code quality.
Table of contents
- Introduction 5m
- Registration Overview 2m
- Code Metrics 1m
- Automated Tests 1m
- Comments 2m
- Mayfly Variables 3m
- Guard Clause 2m
- Naming Issues 1m
- Returning Early 4m
- Refactor Red Flags 3m
- Consolidate Guards and Clarify Intent 6m
- Table Driven Method and Fail Fast 1m
- Outline Rule 3m
- Regression Test 2m
- Bug Fixes: What a contrast! 2m
- Code Metric Results and Conclusions 3m