Skip to content

Instantly share code, notes, and snippets.

@pdougall1
Created November 9, 2015 00:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdougall1/a8b1206758aab172509c to your computer and use it in GitHub Desktop.
Save pdougall1/a8b1206758aab172509c to your computer and use it in GitHub Desktop.
refactoring flow
╔═════════════════╗ ┌─────┐ ╔═══════════════════╗
║ ║ │ YES │ ║ Make the intended ║
───────▶║ Is it open? ╠──┴─────┴──────▶║ change. ║
▲ ║ ║ ▲ ║ ║
│ ╚═════════╦═══════╝ │ ╚═══════════════════╝
│ │ │
│ ┌────┤ │
│ │ NO │ │
│ └────┤ │
│ │ │
│ ▼ │
│ ╔═════════════════╗ │
│ ║ ║ ┌─────┐ │
│ ║ Can I make it ║ │ YES │ │
│ ║ open? ╠──┴─────┴──▶
│ ║ ║
│ ╚═════════╦═══════╝
│ │
│ ┌────┤
│ │ NO │
│ └────┤
│ │
│ ▼
│ ╔═════════════════╗
│ ║ ║
│◀──────╣Fix the easy sin.║
║ ║
║ ║
╚═════════════════╝
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment