News Feed
Sections




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

PHPMaster.com:
PHP Traits Good or Bad?
January 21, 2013 @ 09:19:48

In this new post to PHPMaster.com, Callum Hopkins takes a look at one of the more recently added features of the PHP language, traits an tries to determine if they're a good or bad thing for PHP development.

In early March 2012, the PHP Group announced the release of PHP 5.4. Developer eagerly anticipated the release because of the many new features 5.4 would bring, the most sought after being traits. [...] Traits have have been generally accepted by the PHP development community, mainly because it's a feature that exists within other programming languages like Java, C++, and Python. [...] Are they a feature which will help raise the level of PHP development, or are they just a fad?

The starts with a few reasons why he thinks traits are bad like their potential for abuse and the difficulties that could be caused by using them instead of something like an interface. On the good side, though, he mentions things like allowing for "multiple inheritance" and their addition showing growth in the language.

0 comments voice your opinion now!
traits feature language introduction good bad


blog comments powered by Disqus

Similar Posts

HHVM Blog: FasterCGI with HHVM

Padraic Brady: Zephir Language: Write PHP Extensions The Easy Way (Without C) Part 1: Introduction

PHP.net: PHP 5.4.15 and PHP 5.3.25 released!

MaltBlue.com: Zend Framework 2 The New HTML5 Form Fields Part 2

Ivo Jansch's Blog: Validating OCL constraints in PHP objects


Community Events





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


testing podcast series community interview language api refactor unittest release opinion install introduction list symfony2 code framework developer laravel threedevsandamaybe

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