Skip to content

Instantly share code, notes, and snippets.

@jecrockett
Created March 20, 2016 19:36
Show Gist options
  • Save jecrockett/1eb387db113f65c6179e to your computer and use it in GitHub Desktop.
Save jecrockett/1eb387db113f65c6179e to your computer and use it in GitHub Desktop.

Which of Sandi's rules do you feel like might be the hardest to follow—why?

The hardest for me is for controllers to only instantiate a single object, just only passing a single instance variable to a view. I often find myself sending 3 or 4 instance variables in as various models compile information for a view. Seems like that's not what Sandi recommends. Instead, it seems as though I should use presenter type objects to compile that information, and pass an instance of that presenter to the view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment