php-general Digest 6 Sep 2013 07:24:11 -0000 Issue 8358

Topics (messages 322047 through 322059):

Re: Static utility class?
        322047 by: Micky Hulse
        322048 by: Robert Cummings
        322049 by: Micky Hulse

PHP Dependency Injector
        322050 by: Juan Sebastian Scatularo
        322051 by: Sorin Badea
        322052 by: Bastien Koert
        322053 by: Juan Sebastian Scatularo
        322054 by: Sorin Badea
        322055 by: Juan Sebastian Scatularo
        322056 by: Paul M Foster
        322057 by: David Harkness
        322058 by: Marc Guay

Re: PHP-5.5.2 +opcache segfaults with Piwik
        322059 by: Jan Ehrhardt

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
On Wed, Sep 4, 2013 at 11:07 PM, Robert Cummings <rob...@interjinn.com> wrote:
> I'll second Rodrigo's opinion, but would like to comment that the name of
> the class is misleading since it's called "Singleton". The singleton pattern
> is used when you only ever want one instantiation of a class. In your case
> you are using static methods, the object never needs to be instantiated and
> so it doesn't fit this pattern. What you are creating is far more consistent
> with the utility pattern.

Ahhh, thanks so much for the clarification and details! That's very helpful.

I've updated my gist to reflect the pattern name:

<https://gist.github.com/mhulse/6441525>

Much appreciated. :)

--- End Message ---
--- Begin Message ---
On 13-09-05 02:27 PM, Micky Hulse wrote:
On Wed, Sep 4, 2013 at 11:07 PM, Robert Cummings <rob...@interjinn.com> wrote:
I'll second Rodrigo's opinion, but would like to comment that the name of
the class is misleading since it's called "Singleton". The singleton pattern
is used when you only ever want one instantiation of a class. In your case
you are using static methods, the object never needs to be instantiated and
so it doesn't fit this pattern. What you are creating is far more consistent
with the utility pattern.

Ahhh, thanks so much for the clarification and details! That's very helpful.

I've updated my gist to reflect the pattern name:

<https://gist.github.com/mhulse/6441525>

Much appreciated. :)

Probably sufficient (and easier for typing) to just call it Utility since it follows the pattern but isn't the pattern itself :)

Cheers,
Rob.
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.

--- End Message ---
--- Begin Message ---
On Thu, Sep 5, 2013 at 12:15 PM, Robert Cummings <rob...@interjinn.com> wrote:
> Probably sufficient (and easier for typing) to just call it Utility since it
> follows the pattern but isn't the pattern itself :)

Good call! Updated the example code.

Thanks again! I really appreciate the help. :)

Cheers,
Micky

--- End Message ---
--- Begin Message ---
Hello people, I want to share with you a simple and small Dependency
Injector made for me.

https://github.com/abloos/Sofia

Regards

-- 
Facebook: www.facebook.com/JuanSebastianScatularo
Twitter: www.twitter.com/js_scatularo
Web: www.sebastianscatularo.com.ar

--- End Message ---
--- Begin Message ---
There are few tutorials about home made dic. How does your dic stand out
from the crowd ?

Regards.

On Thu, Sep 5, 2013 at 10:56 PM, Juan Sebastian Scatularo <
sebastianscatul...@gmail.com> wrote:

> Hello people, I want to share with you a simple and small Dependency
> Injector made for me.
>
> https://github.com/abloos/Sofia
>
> Regards
>
> --
> Facebook: www.facebook.com/JuanSebastianScatularo
> Twitter: www.twitter.com/js_scatularo
> Web: www.sebastianscatularo.com.ar
>



-- 
Sorin Badea - Software Engineer

--- End Message ---
--- Begin Message ---
Jee, that should have been a friday comment..."how does your dic standout"


On Thu, Sep 5, 2013 at 4:06 PM, Sorin Badea <sorin.bade...@gmail.com> wrote:

> There are few tutorials about home made dic. How does your dic stand out
> from the crowd ?
>
> Regards.
>
> On Thu, Sep 5, 2013 at 10:56 PM, Juan Sebastian Scatularo <
> sebastianscatul...@gmail.com> wrote:
>
> > Hello people, I want to share with you a simple and small Dependency
> > Injector made for me.
> >
> > https://github.com/abloos/Sofia
> >
> > Regards
> >
> > --
> > Facebook: www.facebook.com/JuanSebastianScatularo
> > Twitter: www.twitter.com/js_scatularo
> > Web: www.sebastianscatularo.com.ar
> >
>
>
>
> --
> Sorin Badea - Software Engineer
>



-- 

Bastien

Cat, the other other white meat

--- End Message ---
--- Begin Message ---
Sorry guys if disturbed.


2013/9/5 Bastien Koert <phps...@gmail.com>

> Jee, that should have been a friday comment..."how does your dic standout"
>
>
> On Thu, Sep 5, 2013 at 4:06 PM, Sorin Badea <sorin.bade...@gmail.com>wrote:
>
>> There are few tutorials about home made dic. How does your dic stand out
>> from the crowd ?
>>
>> Regards.
>>
>> On Thu, Sep 5, 2013 at 10:56 PM, Juan Sebastian Scatularo <
>> sebastianscatul...@gmail.com> wrote:
>>
>> > Hello people, I want to share with you a simple and small Dependency
>> > Injector made for me.
>> >
>> > https://github.com/abloos/Sofia
>> >
>> > Regards
>> >
>> > --
>> > Facebook: www.facebook.com/JuanSebastianScatularo
>> > Twitter: www.twitter.com/js_scatularo
>> > Web: www.sebastianscatularo.com.ar
>> >
>>
>>
>>
>> --
>> Sorin Badea - Software Engineer
>>
>
>
>
> --
>
> Bastien
>
> Cat, the other other white meat
>



-- 
Facebook: www.facebook.com/JuanSebastianScatularo
Twitter: www.twitter.com/js_scatularo
Web: www.sebastianscatularo.com.ar

--- End Message ---
--- Begin Message ---
Juan, the problem with this list is that that there are too damn many dumb
questions. You did something nice but it doesn't stand out. You can check
Symfony2 DiC. You can use it as a stand alone component.


On Thu, Sep 5, 2013 at 11:30 PM, Juan Sebastian Scatularo <
sebastianscatul...@gmail.com> wrote:

> Sorry guys if disturbed.
>
>
> 2013/9/5 Bastien Koert <phps...@gmail.com>
>
>> Jee, that should have been a friday comment..."how does your dic standout"
>>
>>
>> On Thu, Sep 5, 2013 at 4:06 PM, Sorin Badea <sorin.bade...@gmail.com>wrote:
>>
>>> There are few tutorials about home made dic. How does your dic stand out
>>> from the crowd ?
>>>
>>> Regards.
>>>
>>> On Thu, Sep 5, 2013 at 10:56 PM, Juan Sebastian Scatularo <
>>> sebastianscatul...@gmail.com> wrote:
>>>
>>> > Hello people, I want to share with you a simple and small Dependency
>>> > Injector made for me.
>>> >
>>> > https://github.com/abloos/Sofia
>>> >
>>> > Regards
>>> >
>>> > --
>>> > Facebook: www.facebook.com/JuanSebastianScatularo
>>> > Twitter: www.twitter.com/js_scatularo
>>> > Web: www.sebastianscatularo.com.ar
>>> >
>>>
>>>
>>>
>>> --
>>> Sorin Badea - Software Engineer
>>>
>>
>>
>>
>> --
>>
>> Bastien
>>
>> Cat, the other other white meat
>>
>
>
>
> --
> Facebook: www.facebook.com/JuanSebastianScatularo
> Twitter: www.twitter.com/js_scatularo
> Web: www.sebastianscatularo.com.ar
>



-- 
Sorin Badea - Software Engineer

--- End Message ---
--- Begin Message ---
Thanks Sorin, I will do that and I will have more care the next time.

Regards


2013/9/5 Sorin Badea <sorin.bade...@gmail.com>

> Juan, the problem with this list is that that there are too damn many dumb
> questions. You did something nice but it doesn't stand out. You can check
> Symfony2 DiC. You can use it as a stand alone component.
>
>
> On Thu, Sep 5, 2013 at 11:30 PM, Juan Sebastian Scatularo <
> sebastianscatul...@gmail.com> wrote:
>
>> Sorry guys if disturbed.
>>
>>
>> 2013/9/5 Bastien Koert <phps...@gmail.com>
>>
>>> Jee, that should have been a friday comment..."how does your dic
>>> standout"
>>>
>>>
>>> On Thu, Sep 5, 2013 at 4:06 PM, Sorin Badea <sorin.bade...@gmail.com>wrote:
>>>
>>>> There are few tutorials about home made dic. How does your dic stand out
>>>> from the crowd ?
>>>>
>>>> Regards.
>>>>
>>>> On Thu, Sep 5, 2013 at 10:56 PM, Juan Sebastian Scatularo <
>>>> sebastianscatul...@gmail.com> wrote:
>>>>
>>>> > Hello people, I want to share with you a simple and small Dependency
>>>> > Injector made for me.
>>>> >
>>>> > https://github.com/abloos/Sofia
>>>> >
>>>> > Regards
>>>> >
>>>> > --
>>>> > Facebook: www.facebook.com/JuanSebastianScatularo
>>>> > Twitter: www.twitter.com/js_scatularo
>>>> > Web: www.sebastianscatularo.com.ar
>>>> >
>>>>
>>>>
>>>>
>>>> --
>>>> Sorin Badea - Software Engineer
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> Bastien
>>>
>>> Cat, the other other white meat
>>>
>>
>>
>>
>> --
>> Facebook: www.facebook.com/JuanSebastianScatularo
>> Twitter: www.twitter.com/js_scatularo
>> Web: www.sebastianscatularo.com.ar
>>
>
>
>
> --
> Sorin Badea - Software Engineer
>



-- 
Facebook: www.facebook.com/JuanSebastianScatularo
Twitter: www.twitter.com/js_scatularo
Web: www.sebastianscatularo.com.ar

--- End Message ---
--- Begin Message ---
On Thu, Sep 05, 2013 at 04:19:18PM -0400, Bastien Koert wrote:

> Jee, that should have been a friday comment..."how does your dic standout"

Don't send emails like that to the list when I've got a mouthful of
water! It all came out my nose! ;-}

Paul

-- 
Paul M. Foster
http://noferblatz.com
http://quillandmouse.com

--- End Message ---
--- Begin Message ---
On Thu, Sep 5, 2013 at 1:40 PM, Juan Sebastian Scatularo <
sebastianscatul...@gmail.com> wrote:

> Thanks Sorin, I will do that and I will have more care the next time.


You can also check out Pimple [1] by the creator of the Symfony Framework.

Peace,
David

[1] http://pimple.sensiolabs.org/

--- End Message ---
--- Begin Message ---
> Thanks Sorin, I will do that and I will have more care the next time.

You have no reason to apologize.  You shared a project you made by
yourself, way to go.

Marc

--- End Message ---
--- Begin Message ---
Grant in php.general (Thu, 5 Sep 2013 03:47:55 -0700):
>>> I've tried php-5.5.2 and 5.5.3 but both segfault with piwik unless the
>>> opcache is disabled.  Someone filed a piwik bug but was told it's a
>>> php bug:
>>>
>>> http://dev.piwik.org/trac/ticket/4093
>>>
>> Is this a known issue?
>
>Is there anything I can do?

Could you test if your problems are solved when you use the latest
opcache from github?
https://github.com/zendtech/ZendOptimizerPlus

Jan

--- End Message ---

Reply via email to