Ah - I didn't realize this wasn't the official "next generation" of
Outlet...
Generally I agree with most of what you've done. But I don't generally
see the need for redundant public property accessors, unless they're
doing something - from the user code perspective, you could use
accessors or not, the user code would look the same. $object->property
works equally well whether it's declared as public $property or a pair
of accessor, does it not? I don't see the need for a pair of
accessors, unless they add some kind of benefit, for example type
checking and throwing an exception, which makes it easier to debug -
if something accepts a number or a bool, for example, I generally
write accessors and perform validation in the writer-method.
Anyways, different folks, different strokes :-)
Under any circumstances, I generally like what you're doing, and maybe
I should have pointed that out instead of just criticizing. Sorry
about that.
On Nov 13, 8:19 am, Luís Otávio <
lcobu...@gmail.com> wrote:
> Hi!
>
> That repo that you are talking about is not the oficial one, its my fork.
> I use getters and setters pattern to encapsulate the stuffs, do data
> validation, etc.
>
> As I said before my refactoring process is not even 40% complete.
> I don't wanna say to everybody use my fork, I just doing what I think is
> right: share the code that I wrote.
>
> The use of getters and setters is really personal, but TO ME makes the code
> more extensible.
>
> I have run a lot of tests and with my version of Outlet the framework is a
> little bit faster... But anyway... Thats not the version 2 of Outlet, its
> just a bunch of code writen by a crazy programmer that just want to share.
>
> As I said before, if you want to use go ahead... and I add a little thing:
> if you like something but hatted other things, create a fork and help to
> improve even more... but *DO SOMETHING*!!! =D
>
> And no, I'm not a C# programmer. lol
>
> Luís
>
>
>
>
>
>
>
> On Fri, Nov 12, 2010 at 11:19 PM,
mindplay.dk <
ras...@mindplay.dk> wrote:
> > Hi,
>
> > Just out of curiosity. The initial releases of version 1 had a nice,
> > lightweight design and compact code.
>
> > I've been looking at version 2, and I see classes like this one:
>
> >
https://github.com/lcobucci/outlet-orm/blob/svn-trunk/application/org...
> >
outlet-orm+...@googlegroups.com<outlet-orm%2Bunsubscribe@googlegrou
ps.com>
> > .