-
Notifications
You must be signed in to change notification settings - Fork 25
Step 3: Post Cleanup
Daniel Levy edited this page May 11, 2017
·
1 revision
This step is about going over your logic. Try to make it flatter (if possible). Break out any local-state wrapper functions - either inside their relevant function scope (not testable - example below), or name & move it on up to higher scope.
This code isn't perfect, and there are definitely places to improve it; nonetheless, I feel this code largely meets my original goals of improved readability, testability, reusability, et al.
- Steps
- Bonus Material