And so this is just kind of Crockford's wry sense of humor that, about what he thinks about JavaScript. And the thickness of the parts of JavaScript that are there that are not the good parts, as Crockford would say, and so this is a Crockford book. One is the JavaScript Definitive Guide and then there is another book that's almost a joke, which is I mean, it's a very good book called JavaScript: The Good Parts. ![]() As part of the dry sense of humor, you can see two books here written from O'Reilly. He's got sort of a dry sense of humor and I encourage you to watch the interview that I did with Douglas Crockford. So Douglas Crockford is an interesting fellow. And so JSON's popularity is not driven so much because of JavaScript, but it certainly doesn't hurt to have JavaScript become increasingly increasingly popular and JSON coming along with it. And interestingly, because so many things are being built in browsers these days, JavaScript is becoming an increasingly interesting language. But what happens in JSON is we're not going use the Python syntax, we're not going use the Java syntax, but we are going to use the JavaScript syntax in the middle. So when I talked about serialization, I talked about how we're not going to use the Python syntax, we're not going to use the Java syntax, we're going to use XML in the middle. And so he makes it really clear that he just noticed that this could be a way for us to serialize data. JSON was invented by the constant syntax, the literal notation for constants in JavaScript for both arrays of variable constants, values, and objects. It's a video of a fellow named Douglas Crockford and he's credited with discovering JSON. And so here's one of the videos that I that I'll show you. XML is not necessarily bad, it's just very powerful and more powerful than we need in simple situations. And there's a simple one is JSON and it's increasingly popular to the point where it's entirely possible you might go a whole career and not really run into XML. We've talked about XML, which is kind of complex. This includes BigInt.asIntN(), BigInt.asUintN(), and methods of BigInt64Array and BigUint64Array.So now we're going to talk about a new serialization format. ![]() Note that built-in operations expecting BigInts often truncate the BigInt to a fixed width after coercion. The best way to achieve nearly the same effect in JavaScript is through the BigInt() function: BigInt(x) uses the same algorithm to convert x, except that Numbers don't throw a TypeError, but are converted to BigInts if they are integers. The resulting primitive is then converted to a BigInt.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |