Write better
- File size
- 6.3KB
- Rendered lines
- 144
Write better
Everything starts from how you communicate your ideas.
Write better code
- Read good code, which is
- Performant: time, space and memory-efficient for the task
- Reliable: covers all cases
- Maintainable: readable and easily modified a decade from writing
- Practice writing code while remembering
- Plan before program
- Code readability > Novel tricks
- Self-documenting code
- Follow design patterns
- Not necessarily about fewer lines of code
- DRY: Don't Repeat Yourself
- Not WET: Write Everything Twice
- TDD: Test Driven Development
Write better literature
- Refine your drafts until they're sharp
- Avoid words that would not be used in everyday speech
- All the writing in a piece (including digressions) serve one unified purpose
- Stop when you know what comes next
More on
Core reading
- DRY by DBT
- TDD by Martin Fowler
- Code Smells by Jeff Atwood
- notes on writing by Michael Nielsen
- Clear and Simple as the Truth: Writing Classic Prose by Francis-Noël Thomas, Mark Turner
Additonal reading
- The Art of Readable Code by Trevor Foucher, Dustin Boswell
- The Art of Unit Testing by Roy Osherove
- Clean Code by Robert C Martin
- The Pragmatic Programmer by David Thomas, Andrew Hunt
- The Software Craftsman by Sandro Mancuso
- Plain Language by plainlanguage.gov