Re: HTML_QuickForm2 / new release

From: Date: Thu, 15 Jan 2009 00:06:24 +0000
Subject: Re: HTML_QuickForm2 / new release
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-51423@lists.php.net to get a copy of this message
Hi Christian, Christian Weiske wrote:
Would it be possible to release a new version of QF2 with the patches from the bugtracker applied?
NOOOOO!!111!!!one1! For a more verbose answer, read on.
The current released version crashes when outputting the form (CVS works) which is a big showstopper.
Can you clarify?
We are using QF2 in a larger project at work and are willing to put resources into development/completion of features missing.
While I'm certainly tempted by your offer, I have a feeling that you and your colleagues haven't done necessary research before offering these resources: http://news.php.net/php.pear.general/29591
The first ones (ArrayAccess to e.g. use a form easily in Smarty, and rules in containers) have been attached to the tracker. We'd like to see them released soon so that we now that a) the direction in which we're going is correct and b) don't have to change our codebase afterwards too much.
"I want you to apply our changes NOW and release your package IMMEDIATELY so that we won't be burdened by keeping a private fork with the stuff only we need". Ni-i-i-i-ice. No, in fact, re-e-e-e-e-e-e-eally nice.
If there is anything holding you back or when the quality of our patches isn't high enough, just let me know and we do the best we can to meet your requirements.
The ArrayAccess patch http://pear.php.net/bugs/patch-display.php?bug=15618&patch=HTML_QuickForm2.diff&revision=1231774581 violates the Principle of Least Surprise severely: $form['foo'] = 'text'; echo gettype($form['foo']); // Will output "object". WTF? The Rule for Containers patch http://pear.php.net/bugs/patch-display.php?bug=15619&patch=Rule_Compare_for_Container.diff&revision=1231775394 does exactly the same: If I do a $container->addRule('lt', 'Should be less that 4', 4); Do i expect 1) Container to contain less than 4 non empty elements? 2) Value of each element's in Container to be less than 4? 3) Sum of Container's elements' values to be less than 4? now, fellow developers, think a bit and either read the patch or scroll down - - - - - - - - - - - - - - - - - - - - - - For those not bothering to read the patch: the answer is... (3)! Again, WTF? The correct solution to the Smarty problem is of course an implementation of (some kind of) Array renderer, the correct solution of Rule for Containers problem is, probably, implementation of some kind of iterator for Rules. If you want to discuss the implementation details for these, then let's start by *discussing*, if you want to continue providing valuable contributions of the above quality and make demands, then you are better off with a fork. I even promise to vote for it if you propose it to PEAR.

« previous php.pear.dev (#51423) next »