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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

JavaScript Prototyping for Zen Masters

9 点作者 ifben超过 11 年前

1 comment

EdSharkey超过 11 年前
In my opinion, a zen master should be able to declare classes, extend them, do mixins, construct one off instances and synthetic classes, access super class&#x27; methods the old school way, etc without helper functions like the ones listed in the article. Be able to use and master the tools the language gives you.<p>Don&#x27;t be afraid of the language; but do acknowledge that it is a toy language with lots of invisible death traps. Establish a coding convention that lets your team build and test large scale applications effectively. If that includes helpers and tools, (I like Resig&#x27;s class.js myself, <a href="http://ejohn.org/blog/simple-javascript-inheritance/" rel="nofollow">http:&#x2F;&#x2F;ejohn.org&#x2F;blog&#x2F;simple-javascript-inheritance&#x2F;</a>) then great! Just please make sure the team can do it all without the helpers so that they understand all that is possible.