Archive for November, 2008

… and back to FormBuilder

Monday, November 24th, 2008

After reworking my code to use HTML::FormFu instead of the FormBuilder plugin (which didn’t wind up taking that long, actually,) I could not find a way for HTML::FormFu to do client-side validation. My paradigm of GETting or POSTing a form and then redirecting to serve back JSON was completely ruined.

In the end, I found a work-around to do additional server-side validation using FormBuilder. The built-in validation patterns of FormBuilder don’t serve my needs (I have to take some input, do a request against another web-service, and go from there.)

Swapping HTML::FormFu for FormBuilder

Thursday, November 20th, 2008

In these last two weeks, I’ve made a lot of progress in migrating a monolithic form into AJAXian formlets. I discovered FormBuilder and was ecstatic about the client- and server-side validation and that was the crux of the transition.

It was going smoothly; too smoothly as a matter of fact. I had a single controller to handle requests like ‘forms/FORM_ID’ and serve up the proper form (based on FORM_ID,) the controller was handling POST-backs and doing updates (based on FORM_ID,) and I was returning JSON to indicate success or failure. Everything was going great until I realized that I couldn’t get a hook into the server-side validation which I need to be more robust than just some pattern checking.

I had gone too far down the path of dynamic form generation to turn back and I was about to tear-up when I remembered having taking a look at HTML::FormFu a while back. Looking into the documentation, I found a potential solution to my problem of custom server-side validation. I only dreaded having to swap out FormBuilder for HTML::FormFu.

I’m glad to report that two hours into the endeavor, the conversion is going magnificently. I’m refactoring the “.fb” files as “.yml” files but aside from that, there’s not much change to my controller for handling forms. There are a couple of syntactical differences here and there but for the most part, it’s painless.

Jamie Oliver On Food and the Economy

Friday, November 7th, 2008

“Britons are entering the downturn unable to cut household costs because they don’t know how to cook cheap meals, turning instead to fast food”

Tips for Tech Recruiters: Part 2 of 1,001

Monday, November 3rd, 2008

“…am reaching out to you to see if you would be interested in finding out more about this great opportunity…. this is a fabulous company, very stable and is probably just as exciting, if not more than Yahoo.”

More exciting than Yahoo? Have you been reading the news lately? I can guarantee you, there are few other workplaces right now that are as exciting as Yahoo.

“… We need to hire 15-20 people (contractors)… There is a chance this will go full-time down the road.”

Wait a minute, I thought you said this was “very stable”? Since when can you use “very stable” and “contractor” in the same paragraph?