> You are correct as there was no metaphor in here at all! Â This, "It
> helps to think of classes like cars on a highway", is almost a simile,
> but on the whole I would probably say that you were using an analogy :-)
>
HEIL SPELLCHECK!
I bow to my grammar nazi superior *bow*
--
PHP General Mai
Eddie Drapkin wrote:
> On Tue, Jun 30, 2009 at 10:44 AM, Luke wrote:
>
> What I meant, and I probably sounded a bit rougher than I absolutely
> had to, was that it's pretty universally lazy and/or bad design to use
> global variables inside a class, because classes have member
> properties. From
On Tue, Jun 30, 2009 at 12:37 PM, Paul M Foster wrote:
> On Tue, Jun 30, 2009 at 11:17:17AM -0400, Eddie Drapkin wrote:
>
>
>
>>
>> I wouldn't really recommend going with a singleton in this situation,
>> as there exists a different solution (my other post :P) and there are
>> very few actual use-
On Tue, Jun 30, 2009 at 11:17:17AM -0400, Eddie Drapkin wrote:
>
> I wouldn't really recommend going with a singleton in this situation,
> as there exists a different solution (my other post :P) and there are
> very few actual use-cases where the pattern makes sense, and deploying
> it unnecess
On Tue, Jun 30, 2009 at 11:12 AM, Peter Ford wrote:
> Luke wrote:
>>>
>> Thanks for the replies :)
>>
>> Surely if I pass it as a parameter to the __construct then I would have to
>> make an instance of the otherObject, notice that messwithotherthings is
>> static?
>>
>> Also, if I'm not using OOP
On Tue, Jun 30, 2009 at 10:44 AM, Luke wrote:
>
>
> 2009/6/30 Eddie Drapkin
>>
>> It should be passed into the constructor as a parameter. Â If you're
>> using OOP properly, there's no reason to use $GLOBALS, ever. Â Any
>> variable in the $GLOBALS array exists twice in memory, so just keep
>> tha
Luke wrote:
>>
> Thanks for the replies :)
>
> Surely if I pass it as a parameter to the __construct then I would have to
> make an instance of the otherObject, notice that messwithotherthings is
> static?
>
> Also, if I'm not using OOP properly, Eddie, how would I use it properly to
> prevent th
2009/6/30 Eddie Drapkin
> It should be passed into the constructor as a parameter. If you're
> using OOP properly, there's no reason to use $GLOBALS, ever. Any
> variable in the $GLOBALS array exists twice in memory, so just keep
> that in mind, if you plan to use it.
>
> On Tue, Jun 30, 2009 a
It should be passed into the constructor as a parameter. If you're
using OOP properly, there's no reason to use $GLOBALS, ever. Any
variable in the $GLOBALS array exists twice in memory, so just keep
that in mind, if you plan to use it.
On Tue, Jun 30, 2009 at 8:43 AM, Peter Ford wrote:
> Luke w
9 matches
Mail list logo