Jafar Husain discusses interesting features that can be used today in JS6, such as Object.observe, async functions and async generators, while also giving a peek at what’s being explored for JS7 to make async programming easier.
Original source
Jafar Husain discusses interesting features that can be used today in JS6, such as Object.observe, async functions and async generators, while also giving a peek at what’s being explored for JS7 to make async programming easier.
Original source
34 responses to “Netflix JavaScript Talks – Version 7: The Evolution of JavaScript”
also on slide at 28:28 where is the accept() method from? should that be resolve() ?
In the slide at 21.25, wouldn't the state variable have to be outside the next function in the closure otherwise it will always be zero when next is called??
Brilliant, thanks man.
@22:03 infinitely return (I mean yield) 0? hmmm
btw, Object.observe has been removed. It was an expensive operation which was never needed once React was able to handle the "diff"ing without such a native solution.
This is a great tutorial on promises/generators of ES2015 and async/await (coming in ES7). Thanks!
The "asyncgenerator" features that are discussed later on in the talk was in early strawman stage in the TC39 committee in Dec 2014 when the video was recorded. It has since been withdrawn (see https://github.com/jhusain/asyncgenerator)
Great presentation, the es2015+ features are already making life much easier as javascript programmer. getting built-in language support for promises, generators and async / await have been missing features for some time. Life is easy now.
Is the language support for observation still on schedule for ES7?
Wonder where this is at now that it is one year later from the presentation…
1:06:58 Question, you what, mate?
Excellent presentation. Made me excited about the future of JS.
Screw it anyone in the same place as I am right now who thought they understood more about generators before this talk just go here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators
Wow, ok so what do the right and left lines of code imply at 26:30 onwards, I can't figure out what pattern you are trying to imply by splitting them into two columns.
at 25:41 this talk becomes really complex to follow because you named two separate functions "getStockPrice", one that takes a name and one that takes a symbol, there isn't any overloading in javascript so this becomes really awful to try and read.
The implementation of fibonacci's sequence at 21:21 is incorrect, the body (s = a + b; b = s; a = b;) actually just doubles numbers, it would return: [1, 2, 4, 8…].
switch line "val2 = swap;" with the line "val1 = val2;" and you'll have a working function.
Step through:
a = 0
b = 1
s = a + b: 1
b = s: 1
a = b: 1
s = a + b: 2
b = s: 2
a = b: 2
s = a + b: 4
b = s: 4
a = b: 4
Fixed version:
a = 0
b = 1
s = a + b: 1
a = b: 1
b = s: 1
s = a + b: 2
a = b: 1
b = s: 2
s = a + b: 3
a = b: 2
b = s: 3
What's the fuss about? It's just a promise. I don't understand why we need years if development and countless talks and meetings of all smart minds in javascript to get rid of couple of parenthesis .
Great talk from the voice of Jiminy Cricket!
all the way through this talk i kept thinking, wait these concepts are so simple and easily done in other languages (Python comes to mind).
now these concepts are wrapped into abstractions. new keywords are introduced. the result looks complicated, confusing and hard to learn. i don't know, maybe some people like complications…
I wonder if microprocessor could listen to what this guy says, you would need 8 core processor to process all this…
Gotta download this video to my PC and slow it down.
The 'iterator patterns' slide at 22:43, where next returns { value: 32, done: false }, { value: 39, done: false } and { done: true }; seems oddly different to the iterator with the generator, where it would presumably be … { value: 39, done: true } and all the next() returns are the same structure – ie have both a value and a done. The way he describes it, the final one is missing a value (makes me wonder if the 'done' is redundant, since presumably we're 'done' when value is undefined).
Perhaps if I see it twice or thrice or more I'll begin to grasp it? Gosh!
I don't get it, this is crazy, sheesh what a mess!
crazy. learning monads might be easier.
Good video though I think though that the guy talks too fast, trips over his words and says the wrong thing such as at about 7:30 when he says "You've got to be careful doing change notifications otherwise you might end up with really EFFICIENT browser rendering" then shortly after "first in last out which is actually first in first out", which makes no sense. Those quibbles aside I think this is must viewing for JS developers.
Is there a good video out there for people who have done a lot of programming but never deep-dived into a JS-based MVC framework? This is very nice but it assumes you are already swimming in the deep end of the pool.
+Adam Ranfelt If you have some free time, watch this. It's about ES6 and ES7, but it's also why Generators are super awesome.
it is so complicated.
I went to this talk and I'm a little disappointed they didn't add the Q&A to this video. There were some interesting questions but either way I'm very excited for the future of JavaScript.
wow this is absolutely mindboggling!
I never realized that with the new IE auto update policy js versions will be able to be rolled out so quickly!
Interesting times ahead, a bit scary thinking about there will be so much stuff to keep up with and so much deprecated stuff to throw in the bin.
Is it just me or does the video have a "click" audio when Jafar talks.
Been a programmer since 1999. What the hell is this guy talking about.
Good for developers from C#, it will reduce learning curve and get adopted quickly
the bees knees
Please in spanish language