Well we now know what we must do, its just a matter of getting it done.
Darrius emailed me and told me
"So, you can't move the onSubmit method out of the controller. But you can move most of the logic out of that method into a static utility method in a new class, and delegate to that from the controller's onSubmit.
Yes, breaking down the big method means breaking it into more logical smaller methods that are more understandable, which could feasibly be unit tested. From glancing at the controller, I would assume that a lot of what happens in the formBackingObject and onSubmit methods could be broken down. "
Tuesday, April 20, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment