Tuesday, April 20, 2010

The Home Stretch

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. "

Saturday, April 17, 2010

Well This is Annoying

We thought we were close to being done but I'm not sure if everything is as it seems. I emailed M. Seaton and the response was that the builder is the onSubmit and that it needs to be ten lines or better code so we probably have more work than we thought.