Hi...

Originally Posted by
firepages
But you are and you do ,constantly, implicitly or otherwise.
But I don't do Java
. I'm a C++'er... (and possibly a Rubyist nowadays)
.

Originally Posted by
firepages
Don't take this the wrong way but IMO thats a good thing~ if you thought that the framework was brilliant that would probably mean that it was inaccessible/irrelevant for most regular PHP users.
Actually I take that as a complement
. I'm not after a clever framework though, I just want the best for the users.
Really, I'd quite like to see code that was accessable. SimpleTest does a lot of things differently from the fiendishly clever JUnit, just because it would have made it inaccessable. I actually think PHP is brilliant in this regard...and moan all the time, because it could be so much better with a bit of bug fixing and finishing off.
I wouldn't recommend that the ZPF introduce dependency injection for example, and I think the choice of ActiveRecord is a good one. On the other hand, it wouldn't pay to have a glass ceiling, so I think Zend have to tread a bit carefully. PHP is not Ruby. If you spray static methods around, there are no mixins to dig you out of the hole.
How about this alternate syntax...?
PHP Code:
$transaction = new ZUnitOfWork();
$people = $transaction->Person->findAll();
This would get around the save() problem of the ActiveRecord, you only have one finder (so only one extra line of code) and the fluent interface makes it just as syntactically sweet as the static.
yours, Marcus
Bookmarks