Month: September 2013
Google Chrome extensions : Advanced REST client
Google Chrome extensions : Advanced REST client
Indispensable for any REST API developer.
Fedora dropping default Sendmail and rsyslog insta…
Fedora dropping default Sendmail and rsyslog install for the 20th release. Â Reading through the reasoning makes all the sense. Â But I’m still emotional.
PHP: self:: vs. static::
I am seeing more and more PHP code with static:: key used for method calls instead of self::. Â Today I’ve finally found some time to examine the novelty. Â The page that is useful for more details is PHP’s late static binding. Â This functionality is available since PHP 5.3.0 so you might as well start using it.
I am a bit protective of my code, so self:: feels like a safer, more natural option. Â But after thinking about it for a bit, and discussing with my colleagues, I came to the conclusion that I should be using static:: instead of self::. Â It provides cleaner inheritance and minimizes code copy-pasting.