为什么 Javascript 是“最容易被误解的语言”?

发布于 2024-09-26 06:50:15 字数 320 浏览 1 评论 0原文

道格拉斯·克罗克福德本人也是这么说的!

http://www.crockford.com/javascript/javascript.html

我一直在工作过去几个月只用过 JS,用过 jQuery 和 ExtJS。很快就会开始 Secha Touch 的工作。

我发现 Javascript 非常有启发性。您有何看法?

克罗克福德本人表示,这种语言并非没有缺陷。什么缺陷最困扰你?你如何克服它们?

Douglas Crockford himself says so !

http://www.crockford.com/javascript/javascript.html

I have been working with JS only for the past few months, with jQuery and ExtJS. Soon will get to work on Secha Touch.

I find Javascript to be highly enlightening.. What is your opinion ?

Crockford himself says that the language is not without its flaws. What flaws bother you the most ? How do you overcome them ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

凉宸 2024-10-03 06:50:15

因为 Brendan Eich(JavaScript 的创造者)想在浏览器中实现 Lisp,但他的老板告诉他要做一些更像 Java 的东西。如果名字里有 Java 那就太好了!因此,他用 Java 的外衣来伪装自己的 Lisp 语言。

Because Brendan Eich (who created JavaScript) wanted to implement Lisp in the browser, but his boss told him to do something more like Java. And that having Java in the name would be good too! So he disguised his Lisp-like language in a Java-shroud.

预谋 2024-10-03 06:50:15

与 Java 的关联没有帮助,或者更确切地说 Java Applet 没有帮助,在过去它们很慢并且可能导致浏览器崩溃。这对 JavaScript 声誉产生了负面影响。

还有 DOM,人们将 Javascript 与 DOM 及其不一致联系起来,公平地说,DOM 是大多数使用 Javascript 的人的主要 API,但 DOM 的不同实现不应该对语言产生如此严重的影响。这又是一个持续改进的领域。

我喜欢这门语言,它很小,但是你可以完成很多事情,也许这是因为我来自静态编译语言背景。在进入 DOM 领域之前,Crockford 再次是更好的介绍。

The association with Java didn't help, or rather Java Applets, back in day they were slow and likely to the crash browsers. This had a negative impact on JavaScript reputation.

Also the DOM, people associate Javascript with the DOM and its inconsistencies, fair enough the DOM is primary API for most people using Javascript but different implementations of DOM shouldnt reflect so badly on the language. Again this is an area which continues to improve.

I love the language, its so small, but you can get so much done, maybe this is because I came from a static compiled language background. Again Crockford is the better introduction before hitting the DOM space.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文