Write better

File size
4.1KB
Lines of code
101

Write better

Write better code

  1. 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
  2. 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
  3. DRY: Don't Repeat Yourself
  4. Not WET: Write Everything Twice
  5. TDD: Test Driven Development

Write better literature

  1. Refine your drafts until they're sharp
  2. Avoid words that would not be used in everyday speech
  3. All the writing in a piece (including digressions) serve one unified purpose
  4. Stop when you know what comes next

More on

Core reading

Additonal reading