public marks

PUBLIC MARKS with tags design & classes

January 2007

October 2005

March 2005

Mixins for PHP

by bagou & 2 others (via)
I find mixins very useful in other languages. In Ruby, any class that implements the each method can utilize the Enumerable mixin. Enumerable is a class containing functions which use the each method including: find, grep, and reject. The functions are mixed into the new class's set of functions. Incidentally, that PHP does not implement mixins natively is not a criticism of PHP. PHP's design goals are different from Ruby's.

Mixins for PHP

by nhoizey & 2 others
I find mixins very useful in other languages. In Ruby, any class that implements the each method can utilize the Enumerable mixin. Enumerable is a class containing functions which use the each method including: find, grep, and reject. The functions are mixed into the new class's set of functions. Incidentally, that PHP does not implement mixins natively is not a criticism of PHP. PHP's design goals are different from Ruby's.

Active users

ionial
last mark : 04/01/2007 10:37

bagou
last mark : 19/10/2005 22:05

nhoizey
last mark : 15/03/2005 07:45