A while ago, I was whining about how difficult it becomes to follow code when one method leads to another which leads to another and it becomes so hard to decipher that its LESS readable than if the whole thing were on a single page.
Now, I'm starting to get it. I think it really becomes mainly about the readability and simplicity of the controller. The index actions should be small and few and all the logic should be in models(or modules as I'm learning the importance of today) I'd heard the expression "fat models, skinny controllers" but am now actually seeing why. If you think of the controller as a control panel I suppose. A series of buttons with action names that indicate what they do but not how they do it. I'm guess this is all just common sense.
The reason the button don't explain how the tv finds the channel is because we don't care how it does it, we only care what it does.
Monday, November 12, 2007
Subscribe to:
Posts (Atom)