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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

JavaScript. The Core: 2nd Edition

413 点作者 wmonk超过 7 年前

14 条评论

Sawamara超过 7 年前
This is a very solid foundation to work with, for anyone who might have struggled with the contexts and how arrow functions, local variables, thises (hah) and prototypes fit into the bigger picture.<p>It also clearly shows that Javascript is not the mess that it looks like from a beginner&#x27;s perspective. Yes, anyone can create a 15-20 min video about how == and === can mess up stuff, how you cant just pass around a function with a this in it without being careful, how NaN is wtf, and all that jazz. But at the end of the day, stick to this language long enough and it works for you.
评论 #15715309 未加载
评论 #15712451 未加载
评论 #15712404 未加载
评论 #15717619 未加载
评论 #15712648 未加载
Roboprog超过 7 年前
One issue I have with this JS tutorial is that it spends little to no time talking about FP, just OOP (functional vs object-oriented programming).<p>What text it does devote to Closures makes them sound like a &quot;problem&quot; to be worked around. Funny, I thought &quot;this&quot; was the problem (to be worked around, or avoided entirely whenever possible).<p>Class based languages such as Java do an excellent job of modeling how I thought about programming back in 1990. It&#x27;s how we were taught in school, so as to be able to manage mutable data in a turing tar pit. (remembering a lecture about garbage collection, which essentially scoffed at the overhead...)<p>Having learned a good deal more about FP in the last 10 or 15 years (beyond the little bit of Lisp I did in an AI class back in the 80s), Javascript really starts to shine in many ways, whereas Java (and other [Simula67 subset] C++ derivatives) looks like the intellectual cripple in comparison.<p>I wish people would stop trying to turn Javascript into something more and more like C++&#x2F;Java. Just stop, already. It was supposed to be like Scheme and&#x2F;or Smalltalk, but The Management (marketing) got involved, and the rest is tragedy, er, history.
评论 #15719611 未加载
brosky117超过 7 年前
I also highly recommend Kyle Simpson’s “You Don’t Know JS” series. Very very good.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;getify&#x2F;You-Dont-Know-JS&#x2F;blob&#x2F;master&#x2F;README.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;getify&#x2F;You-Dont-Know-JS&#x2F;blob&#x2F;master&#x2F;READM...</a>
vorpalhex超过 7 年前
This is good, with one major critique:<p>&gt; ECMAScript is an object-oriented programming language, having concept of an object as its core abstraction.<p>This is technically correct but misses that Javascript is not OO in the way that many other languages are, but is instead prototypical in nature. That&#x27;s an important distinction because creating long prototype chains in JS is a very bad and negative habit, where as the same behavior is absolutely fine in Java.
tomclive超过 7 年前
I&#x27;ve just been reading through this and it&#x27;s surprisingly accessible to someone without a CS background.<p>Anthony Alicea&#x27;s Understanding Weird Parts of JS on Udemy was pretty good at introducing some of these concepts and I would have thought most people working with JS would be interested in finding out what&#x27;s below the surface.
评论 #15711917 未加载
johnhenry超过 7 年前
&gt; &quot;ECMAScript is an object-oriented programming language, having concept of an object as its core abstraction.&quot;<p>I&#x27;m curious as to whether or not this definition makes sense to other developers? ECMAScript does have a built-in &quot;Object&quot; data type, though I wouldn&#x27;t say that this is it&#x27;s &quot;core abstraction&quot;. Further, firmly object-oriented languages, such as Java, seem to lack this abstraction. Perhaps I&#x27;m missing something in the definition?
评论 #15714328 未加载
评论 #15717694 未加载
评论 #15717673 未加载
评论 #15714818 未加载
Roboprog超过 7 年前
As many useful things as there are in ES2015 (and beyond!), it&#x27;s probably worth pointing out a few &quot;corporate&quot; environmental constraints that might limit one to ES 5.1:<p>* IE11 isn&#x27;t dead yet. MS still supports it.<p>* The &quot;Nashorn&quot; engine inside (Oracle) Java 8 only supports 5.1.<p>Scoff at them if you will, but some of us have to live with these things, and aren&#x27;t using a transpiler.
mariushn超过 7 年前
Related, any Typescript guides that you found very useful?
评论 #15712804 未加载
stdgy超过 7 年前
Wow, this is great! I think it&#x27;s the clearest, tersest explanation of JS langauge fundamentals that I&#x27;ve seen.
aryehof超过 7 年前
Does JavaScript have some special definitions for <i>delegation</i> and <i>dynamic dispatch</i>? The definitions provided in the article appear to particularly relate them to inheritance - which is not the traditional definition applied to either term in object-orientation?
评论 #15720558 未加载
zhirzh超过 7 年前
It bugs me that the use of the word &quot;inheritance&quot; overshadows &quot;delegation&quot;. It paints a false image of the language.
frik超过 7 年前
I wish Douglas Crockford would update his great &quot;JavaScript: The Good Parts&quot;. It&#x27;s still great and aged okayish, but doesn&#x27;t cover ES2015+.
评论 #15713218 未加载
expertentipp超过 7 年前
This article is useless for the modern web development. Nowadays the essential is to know the nuances between Angular versions and how to defer a promise returned by chained observables.
评论 #15711563 未加载
评论 #15711505 未加载
评论 #15711669 未加载
sAbakumoff超过 7 年前
As much as I like dmitrysoshnikov&#x27;s content, I think it can&#x27;t compete with You Don&#x27;t Know JS series.
评论 #15712614 未加载