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: Stop Fighting It

22 pointsby Ben65almost 17 years ago

4 comments

simonwalmost 17 years ago
"First, let's write the following: Object.prototype.clone"<p>Never, ever add things to Object.prototype. It breaks enumeration over objects using the for...in operator, which in turn breaks lots of other libraries you might want to use later. Sure, this is due to a bug in the core JavaScript spec but it's one we all have to live with.
评论 #267785 未加载
jfarmeralmost 17 years ago
Object.prototype: Stop modifying it.
richtauralmost 17 years ago
Seems like somebody read JavaScript: The Good Parts... but didn't quite get it.
ComputerGurualmost 17 years ago
Javascript: Stop Using It<p>There are many compelling reasons to stop using such a badly-implemented and rather-demented language; but unfortunately there are no compelling alternatives.
评论 #268017 未加载
评论 #267870 未加载