Douglas Crockford 在他的书《How JavaScript Works》里勾勒了一个 datetime 库的草案。我很喜欢。这里概括一下。一个 datetime 有三种表示形式:- 距离 epoch 的(实数)毫秒数,- 某种标准格式的字符串(例如 ISO 8601),- 带有……的纯对象(plain old object)
Douglas Crockford has a sketch of a datetime library in his book, How JavaScript Works. I like it. Here's a summary. A datetime has three representations: - (real) number of milliseconds since the epoch, - string in some standard format (e.g. ISO 8601), - plain old object with the…
《JavaScript 语言精粹》(JavaScript: The Good Parts)其实已经不太适用于现代 JS 了。但 Crockford 的新书《How JavaScript Works》基本上就是它的更新版。作为一个业余写代码的,我觉得非常有用,绝对值得一读。
"JavaScript, The Good Parts" is not really relevant to modern JS. But Crockford's new book "How JavaScript Works" is basically the updated version. As an amateur coder I found it very useful, definitely worth reading.
"How JavaScript Works" by Crockford was published in 2018. https://www.amazon.com/gp/aw/d/1949815005/ref=dbs_a_w_dp_194... https://youtu.be/8oGCyfautKo
…concern: I love JSON, but one of the technical problems we've ran into with JSON is that the spec forgot about all special characters. I actually noticed it when reading Douglas Crockford's 2018 book, "How JavaScript Works". The mistake is on page 22.9 where it states that there are 32 control characters. There are not 32 control characters. There are 33 7-bit ASCII control characters and 65 Unicode control characters.…
Douglas Crockford 在他的书《How JavaScript Works》里勾勒了一个 datetime 库的草案。我很喜欢。这里概括一下。一个 datetime 有三种表示形式:- 距离 epoch 的(实数)毫秒数,- 某种标准格式的字符串(例如 ISO 8601),- 带有……的纯对象(plain old object)
Douglas Crockford has a sketch of a datetime library in his book, How JavaScript Works. I like it. Here's a summary. A datetime has three representations: - (real) number of milliseconds since the epoch, - string in some standard format (e.g. ISO 8601), - plain old object with the…
《JavaScript 语言精粹》(JavaScript: The Good Parts)其实已经不太适用于现代 JS 了。但 Crockford 的新书《How JavaScript Works》基本上就是它的更新版。作为一个业余写代码的,我觉得非常有用,绝对值得一读。
"JavaScript, The Good Parts" is not really relevant to modern JS. But Crockford's new book "How JavaScript Works" is basically the updated version. As an amateur coder I found it very useful, definitely worth reading.
Crockford 在 <https://www.amazon.com/How-JavaScript-Works-Douglas-Crockfor...> 里的玩具语言中实现了它。
Crockford makes it work in his toy language in <https://www.amazon.com/How-JavaScript-Works-Douglas-Crockfor...>.
Crockford 写的《How JavaScript Works》出版于2018年。https://www.amazon.com/gp/aw/d/1949815005/ref=dbs_a_w_dp_194... https://youtu.be/8oGCyfautKo
"How JavaScript Works" by Crockford was published in 2018. https://www.amazon.com/gp/aw/d/1949815005/ref=dbs_a_w_dp_194... https://youtu.be/8oGCyfautKo
……担忧:我很喜欢 JSON,但我们在 JSON 上遇到的技术问题之一就是规范把所有特殊字符都给漏掉了。其实我是读了 Douglas Crockford 2018 年的书《How JavaScript Works》才注意到的。错误出在第 22.9 页,上面说有 32 个控制字符。控制字符根本不是 32 个。有 33 个 7 位 ASCII 控制字符,以及 65 个 Unicode 控制字符。……
…concern: I love JSON, but one of the technical problems we've ran into with JSON is that the spec forgot about all special characters. I actually noticed it when reading Douglas Crockford's 2018 book, "How JavaScript Works". The mistake is on page 22.9 where it states that there are 32 control characters. There are not 32 control characters. There are 33 7-bit ASCII control characters and 65 Unicode control characters.…