TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Mixins, Forwarding, and Delegation in JavaScript

108 点作者 johanbrook大约 11 年前

6 条评论

sfeng大约 11 年前
Particularly if you use coffeescript, mixen can be a more capable option: <a href="http://github.hubspot.com/mixen/" rel="nofollow">http:&#x2F;&#x2F;github.hubspot.com&#x2F;mixen&#x2F;</a>
drderidder大约 11 年前
Really insightful write-up but after reading through those code contortions it made me just want to stick with prototypal inheritance. If you have to go to those lengths to get your code to work, it seems like maybe you&#x27;re doing it wrong, or using the wrong language...
评论 #7570987 未加载
评论 #7571319 未加载
评论 #7571120 未加载
评论 #7570944 未加载
jdlshore大约 11 年前
Big improvement over the last one [1]. I learned some things. Looking forward to seeing the next one.<p>[1] <a href="https://news.ycombinator.com/item?id=7496968" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7496968</a>
ifandelse大约 11 年前
Loved the post. Very nice &amp; deliberate walk through of the various approaches.
mxxx大约 11 年前
Nice and comprehensive article, cheers for the share.
enowbi大约 11 年前
angularjs please