# Mixin advantage

**URL:** <https://www.ruby-forum.com/t/mixin-advantage/84487>\
**Category:** Ruby\
**Created:** [February 5, 2007, 8:15am UTC](https://www.ruby-forum.com/t/mixin-advantage/84487 "2007-02-05T08:15:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pool007](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3bc359/32.png) [@pool007](https://www.ruby-forum.com/u/pool007)\
**Post date:** [February 5, 2007, 8:15am UTC](https://www.ruby-forum.com/t/mixin-advantage/84487/1 "2007-02-05T08:15:54Z")

</div>

Hi.

Please proofread whether the following statement (written by me) about  
Mixin in Ruby is true:

“Mixin is the way to incorporate certain functionalities into a class  
without messing up inheritance hierarchy. Especially, Mixin in Ruby is  
a clever way of implementation inheritance.”

I’ve seen no article mentioning implementation inheritance when  
explaining mixin though I believe it is especially in contrast with  
interface inheritance.

Sincerely,  
Minkoo S.

---

<div class="post-metadata">

**Author:** ![pool007](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3bc359/32.png) [@pool007](https://www.ruby-forum.com/u/pool007)\
**Post date:** [February 5, 2007, 10:48am UTC](https://www.ruby-forum.com/t/mixin-advantage/84487/2 "2007-02-05T10:48:08Z")

</div>

On 2/5/07, Minkoo S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi.
> 
> Please proofread whether the following statement (written by me) about  
> Mixin in Ruby is true:
> 
> “Mixin is the way to incorporate certain functionalities into a class  
> without messing up inheritance hierarchy. Especially, Mixin in Ruby is  
> a clever way of implementation inheritance.”

… multiple inheritance…

The rest is difficult to judge and I am not qualified to make a strong  
statement.  
But be aware that even Mixins can be confusing for the unwary sometimes  
there was a recent thread about it.

I’ve seen no article mentioning implementation inheritance when

> explaining mixin though I believe it is especially in contrast with  
> interface inheritance.
> 
> Sincerely,  
> Minkoo S.

Cheers  
Robert
