TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Review my first JavaScript library

2 pointsby mparkeover 12 years ago
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

rudasnover 12 years ago
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 未加载