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.

JavaScript Prototyping for Zen Masters

9 pointsby ifbenover 11 years ago

1 comment

EdSharkeyover 11 years ago
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.