The Birth and Death of JavaScript [video]
51–60 of 236 posts
Re: The Birth and Death of JavaScript [video]
#52He says several times that JavaScript succeeded in spite of being a bad language because it was the only choice. How come we're not all writing Java applets or Flash apps?
The number of security issues that plug-ins have had in the last two decades makes most of them non-starters nowadays, although there are still plenty of sites that use them extensively (say, Childrens' game websites like Neopets and Nick Jr.'s website) depending on the target audience.
Re: The Birth and Death of JavaScript [video]
#53For context, this was one of the most enjoyed talks at PyCon this year.
Re: The Birth and Death of JavaScript [video]
#54For those unfamiliar, Gary Bernhardt is the same guy who did the famous "Wat" talk on JavaScript: https://www.destroyallsoftware.com/talks/wat
Re: The Birth and Death of JavaScript [video]
#55Consider the relationship between Chromebooks and METAL. (I'm typing this from my Pixel...)
"I gave The Birth & Death of JavaScript seven times and no one ever asked why METAL wasn't written in Rust."
Re: The Birth and Death of JavaScript [video]
#56He says several times that JavaScript succeeded in spite of being a bad language because it was the only choice. How come we're not all writing Java applets or Flash apps?
Javascript won for this reason.
Re: The Birth and Death of JavaScript [video]
#57> xs = ['10', '10', '10'] > xs.map(parseInt) [10, NaN, 2] Javascript is beautiful.
I just wrote this line about two hours ago and my tests weren't thorough enough to catch the bug it introduced. Just when I thought I knew JavaScript. Thanks for saving me some time.
Always. The moment you don't, all kinds of bugs follow.
I have to go cry now at the number of times this has bitten me.
Re: The Birth and Death of JavaScript [video]
#58Earlier quoted context omitted.
There are so many good WTFs in JS, but this is not one. parseInt expects 2 arguments and Array.prototype.map provides 3 to the callback it is given. Both of these facts are very well documented and known. var mappableParseInt = function(str){ return parseInt(str, 10); }; ['10', '10', '10'].map(mappableParseInt); I'd suspect this snippet is more a snipe at people who don't know JS very well and expect parseInt to be b…
You could say it's a snipe at the weak type system that Javascript has. I dunno, as someone without much experience with Javascript, it is a little odd that arrays return the index alongside the value by default.
Re: The Birth and Death of JavaScript [video]
#59Earlier quoted context omitted.
I just wrote this line about two hours ago and my tests weren't thorough enough to catch the bug it introduced. Just when I thought I knew JavaScript. Thanks for saving me some time.
I'm sure you know this by now but you can keep the syntax and use Number instead xs.parseInt(Number)
Re: The Birth and Death of JavaScript [video]
#60nice nice,ultimatly languages dont die,unless they are closed source and used for a single purpose ( AS3 ). In 2035,people will still be writing Javascript. I wonder what the language will look like though. Will it get type hinting like PHP? or type coercion? will it enforce strict encapsulation and message passing like Ruby ? will I be able to create adhoc functions just by implementing call/apply on an object? or s…