Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialNick Knight
8,714 PointsExtends vs. Mixins
I read through many articles on this topic as well as a discussion from two years ago on treehouse.
To me mixins create a file easier to read compared to extends. You don't have selectors repeating themselves, however, you get styles repeating themselves. It seems like the size of the file would change so little that that shouldn't be a determining factor. Plus, mixins are more versatile.
Have there been any recent changes to this debate or is it still a toss up?
1 Answer
Kevin Korte
28,149 PointsI generally like mixins over extends as well, and you should be able to get a smaller compiled codebase with mixins over extends, if I remember correctly.