Slideshare.net (beta)

 
Post to TwitterPost to Twitter
Post: 
Myspace Hi5 Friendster Xanga LiveJournal Facebook Blogger Tagged Typepad Freewebs BlackPlanet gigya icons

All comments

Add a comment on Slide 1

If you have a SlideShare account, login to comment; else you can comment as a guest


Showing 1-50 of 0 (more)

Traits: A New Language Feature for PHP?

From gron, 5 months ago

490 views  |  0 comments  |  0 favorites  |  9 downloads  |  2 embeds (Stats)
 

Categories

Add Category
 
 

Groups / Events

 

 
Embed
options

More Info

CC Attribution-ShareAlike LicenseCC Attribution-ShareAlike License
This slideshow is Public
Total Views: 490
on Slideshare: 422
from embeds: 68

Slideshow transcript

Slide 1: Please, feel free to interrupt me at any time.

Slide 2:Do you use: • Multiple Inheritance? • Mixins?

Slide 3: Traits A Language Feature for PHP? Stefan Marr PHP Unconference Hamburg 26-27 April 2008

Slide 4: Agenda 1. Introduction to Traits 2. Traits Applied 3. Traits for PHP: Trait versus Graft 4. Roundup and Conclusion

Slide 5: Which problem is to be solved? Vertebrates • Single inheritance • Simple but not expressive enough Dinosaurs Mammal • Leads to • Code duplication • Inappropriate Archaeoptrix Bat hierarchies fly() fly()

Slide 6: Traits Set of methods • Possibly composed of other Traits