News Feed
Jobs Feed
Sections




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

RubySource.com:
Confessions of a Converted PHP Developer On Visibility and Privates
May 12, 2011 @ 10:49:52

From RubySource.com there's a new post from a confessed developer who moved from PHP to Ruby about PHP's private visibility rules and how they compare to Ruby's.

Alright class - today I'm here to talk about the differences and similarities that PHP and Ruby have when it comes to object properties, methods, and their visibility - how you create variables inside classes, and how you can interact with them.

He compares the private properties in PHP classes to the corresponding handling in Ruby, including the getters and setters to go with them. There's also a look at class visibility settings in Ruby.

1 comment voice your opinion now!
visibility private protected public visibility ruby rubysource


blog comments powered by Disqus

Similar Posts

Rails for PHP Developers: Three New Articles Posted (Scope, Variables & RegEx)

RubySource.com: Confessions of a Converted PHP Developer: Namespace Superhero!

Till Klampaeckel's Blog: RFC: Mocking protected methods

Stefan Mischook's Blog: What happened to Ruby? And why PHP is KING of the Web.

DevShed: Protecting PHP 5 Class Data with Member Visibility


Community Events











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


composer code release application security hack podcast unittest symfony2 hhvm introduction install framework series facebook package opinion component overview language

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