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.

image

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.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.