News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Community News:
Privates - Harmful or Useful? (Discussion)
December 12, 2012 @ 09:53:57

There's been a few articles posted on various blogs in the PHP community recently about the "most correct" usage of the "private" scope in your PHP applications. As with any feature of just about any language out there, there's people on both sides of the fence. Here's the ones that have weighed in so far:

  • Brandon Savage's initial post (an excerpt from his upcoming "Do This, Not That" book)
  • A response to this from Anthony Ferrara
  • Brandon's own response to comments on his previous article
  • This new post from Larry Garfield and some of his experience from the Drupal world

Various topics come up during these posts including static coupling, using interfaces versus inheritance, wrapper classes and developer intent.

0 comments voice your opinion now!
private scope visibility harmful blog


blog comments powered by Disqus

Similar Posts

Performancing.com: HOW TO - Create Intelligent Blog Ads

Larry Garfield's Blog: readfile() not considered harmful

Jonnay's Blog: PHP vs. Javascript: A shit vs. poo fight.

Padraic Brady's Blog: ZF Blog App - Part 4: Design with Blueprint CSS & Zend_Layout

Padraic Brady's Blog: Zend Framework Blog App Tutorial - Addendum #2: Revised Design, Date Helper


Community Events





Don't see your event here?
Let us know!


podcast language artisanfiles community list tool conference introduction composer series framework version symfony opinion laravel release library security voicesoftheelephpant interview

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework