Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bonus material: streamlining controllers + code testing #56

susanBuck opened this issue May 8, 2019 · 0 comments


None yet
1 participant
Copy link

commented May 8, 2019

By the time you complete P4, you may notice your controller files are growing quite large and wonder if there's a more optimal way can organize all this logic code.

To address this, here's a bonus video explaining one way you can streamline your controllers by outsourcing some of the logic to their own classes. I also briefly touch on testing and how re-organization can help create a more testable code base.

This info is all just FYI and while you can implement it in P4, you are not required to.

This video was recorded in a previous semester, so you may see some minor differences in the foobooks code from what we've built this semester (different variable names, slightly different approaches, etc.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.