in reply to Module for form validation and resubmission

There is also HTML::FormFu with which I have had a love/hate relationship. It's big, complicated, and slow but reminds me of the chestnut about democracy: it's the worst form of government there is, except for all the others. FormFu seems like overkill until you end up writing/tailoring just about everything it does from scratch, then it starts to seem pretty cool that at least FormFu has documentation. :P I don't know Validator::LIVR so can't accurately compare it. A casual read of its POD leads me to believe it's approximately FormFu-lite though I would also expect it to be much faster.

Your real question: stick to the API. If you feel it really isn't right, write a patch and submit a pull request to the project. Trying to correct the way an API behaves, or force it to your comfort zone, complicates the plumbing quickly and is prone to maintenance nightmares which is pressure to abandonment.

  • Comment on Re: Module for form validation and resubmission

Replies are listed 'Best First'.
Re^2: Module for form validation and resubmission
by Dallaylaen (Chaplain) on Oct 21, 2016 at 22:48 UTC

    HTML::FormFu has a prohibitive dependency footprint. Fine in a centralized project, but forcing that on someone else - and I'm going to distribute my work - seems too much to me.

    As for DATA::CGIForm, I'm not using or extending it in any way. Should that be the case, changing the API would be out of question. Neither am I planning a drop-in replacement, due to the initialization phase.

    But if it's popular and widely used, mimicking its API could still be worthy due to the least astonishment principle... That's why I'm asking.

Re^2: Module for form validation and resubmission
by Dallaylaen (Chaplain) on Oct 22, 2016 at 10:55 UTC
    Actually I seem to have found a way to stay backward compatible with Data::CGIForm that doesn't irritate me. Thanks for your feedback.