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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Review my first JavaScript library

2 点作者 mparke超过 12 年前
Hi Everyone,<p>I have been working on a JavaScript library project that has grown out of discovery and learning what I've found useful in app development. I typically use some of these tools alongside jQuery or something that makes manipulating the DOM easier. I'm looking for some feedback, constructive criticism or just general suggestions. How can I improve the core class system around Object.create? How can I improve publish and subscribe? Any other module or implementation suggestions welcome.<p>Introduction: http://ordinaryrobot.com/#page-hawkjs_intro Github: https://github.com/mparke/hawk.js<p>Thanks for any thoughts.

1 comment

rudasn超过 12 年前
Is there a particular reason you are using Hawk.def and Hawk.gen instead of something more "traditional" like<p><pre><code> Bird = Hawk.create(...) falcon = new Bird(...) </code></pre> How do you deal with inheritance?<p><pre><code> falcon insteanceof Bird; // =&#62; is it true? </code></pre> If bird had mixins would falcon be an instanceof those as well?
评论 #4636054 未加载
评论 #4637264 未加载