Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mixin terminology

In classic inheritance, Derived inherits from Base. With mixins, the (technical) base class is usually called the Mixin. What is the proper term for the (technical) class that inherits from the Mixin?

I want to know this so I can name my template parameters accordingly.

like image 702
fredoverflow Avatar asked Sep 14 '11 09:09

fredoverflow


People also ask

What are mixers used for?

Milk, ice cream, mayonnaise, beer, over-the-counter medicine, prescription medication, paint, chemicals, plastics, adhesives, and so many more great products are made with a mixer. This glossary of terms is meant to be a brief overview of terms you might hear in day-to-day conversations, but there is so much more to mixing than just these 38 terms.

What is $ARGs in a mixin?

It contains all the keyword arguments needed to be passed. These keyword arguments can be accessed later using keywords function ($args) that returns values in the form of a hash map. Let’s look at an example for a better understanding. @mixin design ($var) { color: $var; } $values: red, blue, green; .temp { @include design ($values...);

What are mixin arguments in SassScript?

The mixin arguments are the SassScript values that are available as variables and that are passed when mixin is included. There are two different types of mixin arguments. Keyword arguments: The arguments are used to include in mixins.

Is your mixing harsh?

Harshness is a major problem in lots of mixes. The last thing you want is for your mix to cause ear fatigue for your listeners. The effects of a harsh mix can be even worse on common listening systems like earbuds and laptop speakers.


1 Answers

The use of a mixin class is an implementation detail that doesn't impact the result as directly as a base/derived relationship in a typical inheritance tree, so I'm not sure it deserves its own name. The one time I used it most successfully there was already an existing base class that was required (MFC's CDialog), so multiple inheritance was used and my mixin wasn't the first one on the list.

If you really have to pick a name, Derived is probably as good as any.

like image 164
Mark Ransom Avatar answered Oct 11 '22 21:10

Mark Ransom