Jafar Husain: Async Programming in ES7 | JSConf US 2015

  Рет қаралды 62,642

JSConf

JSConf

Күн бұрын

Пікірлер: 52
@RafiDude
@RafiDude 9 жыл бұрын
Hello some one at jsconf, please switch the slides into the larger video window and vice versa. For most people the content in slides may be more important than seeing the speaker.
@mallesbixie
@mallesbixie 9 жыл бұрын
This guy fits a two hour talk in half an hour! Great! Watch it four times to get it all!
@McG00f
@McG00f 8 жыл бұрын
This person talks very well, he got me interested in the first 2 minutes, I wish I had more profesors like him at uni.
@powerlogic1992
@powerlogic1992 9 жыл бұрын
His enthusiasm makes me feel enthusiastic.
@nathanbrady9362
@nathanbrady9362 9 жыл бұрын
Jafar, you are such a great natural teacher. After a few different videos, you made the light bulb turn on for me with generator functions. Thanks for all your work in the JS community!
@JogoShugh
@JogoShugh 9 жыл бұрын
Very good talk, and his enthusiasm makes it even better.
@Chorizzosoup
@Chorizzosoup 9 жыл бұрын
Can you please make the code slides available as well? It's hard to see the code in the video.
@Chorizzosoup
@Chorizzosoup 9 жыл бұрын
Awesome to see c# influence to some of the features :)
@JSBroadcast
@JSBroadcast 8 жыл бұрын
This guy is absolutely amazing..
@TheRealBobLazar
@TheRealBobLazar 6 жыл бұрын
Blowing my mind with things I thought I already understood.
@atmark666
@atmark666 8 жыл бұрын
this guy is amazing.
@cmntkxp
@cmntkxp 6 жыл бұрын
Talk was nice but the code shown inset if video spoiled the corner quality ...Why on earth someone would upload like this . It's good for a podcast
@yuchinglee5555
@yuchinglee5555 7 жыл бұрын
Does anyone has this ppt ? can't find it by googling...
@DaveJacoby
@DaveJacoby 9 жыл бұрын
Man, JavaScript is gonna get mad over the next few years. That's a good thing.
@saisagarsharma
@saisagarsharma 5 жыл бұрын
Yes, it is.
@Wentris71
@Wentris71 3 ай бұрын
Watching this vid 9years after. Still did not go mad 😀😮‍💨
@Srikanthking1
@Srikanthking1 7 жыл бұрын
You have an mistake in your fibonacci example at 12.5. should have assigned val1 with val2 and then assigned val2 with swap. Just changing the lines for assignment for val1 and val2 fixed the issue.
@devanggaur2511
@devanggaur2511 7 жыл бұрын
@11:50 , shouldn't it be while( true ) { swap = val1 + val2 ; val1 = val2; val2 = swap; return swap ..... } ?
@ikumargaurav
@ikumargaurav 4 жыл бұрын
yes.
@kps2642
@kps2642 6 жыл бұрын
async functions are awesome, thanks to c# we got this in javasctipt
@stefanms8803
@stefanms8803 9 жыл бұрын
that's good coffee right there
@konorokingdom
@konorokingdom 9 жыл бұрын
Neither of Jafar's fibonacci codes work :D Great talk. It's amazing how much simpler it becomes with a generator. Have to agree with Rafi "please switch the slides into the larger video window and vice versa. For most people the content in slides may be more important than seeing the speaker.". This is a common theme amongst most tech videos where the code is either secondary or not visible at all.
@mandulov
@mandulov 9 жыл бұрын
+Dominic Watson The codes work, but he accidentally swapped "val1 = val2;" with "val2 = swap;".
@senecathestoic
@senecathestoic 7 жыл бұрын
Even though code inside while loops in fibonacci example is incorrect the talk is great.
@johnyepthomi892
@johnyepthomi892 2 жыл бұрын
What a great educator.
@oiltycoonifUwill
@oiltycoonifUwill 8 жыл бұрын
In case anyone except me needs this. function* getStockPrice(name) { var symbol = yield getStockSymbol(name); var price = yield getSymbolPrice(symbol); return price } function spawn(generator) { return new Promise((accept, reject) => { var onResult = (lastPromiseResult) => { var {value, done} = generator.next(lastPromiseResult); if (!done) { value.then(onResult, reject); } else { accept(value) } }; onResult(); }) } spawn(getStockPrice("some")).then(console.log);
@EuThiagoVideos
@EuThiagoVideos 7 жыл бұрын
Few months later and we already can get the same result like this: async function getStockPrice(name){ return await getSymbolPrice(await getStockSymbol(name)) } getStockPrice().then( res => console.log(res) )
@NicolasSauveur
@NicolasSauveur 9 жыл бұрын
for ... from instead of for ... on ?
@aaravmehra8036
@aaravmehra8036 5 жыл бұрын
this was intense..very nice.
@Silentslink
@Silentslink 8 жыл бұрын
Amazing!!!
@jafargadvi9561
@jafargadvi9561 8 ай бұрын
@true_podejrzany
@true_podejrzany 7 жыл бұрын
I wish I could understand just half of it.
@ajgubi19
@ajgubi19 9 жыл бұрын
This is why youtube player offers SLOWING THE FUCK DOWN feature.
@mk677hd
@mk677hd 4 жыл бұрын
JS is freaking awesome.
@adinivermekistemeyengizley6396
@adinivermekistemeyengizley6396 7 жыл бұрын
how about es8 becomes phyton3.jssss?
@crimsonalucard
@crimsonalucard 7 жыл бұрын
Yearly release cycles for a language? Are you kidding?
@vishal_sharma_rha
@vishal_sharma_rha 6 жыл бұрын
Great vedio
@lalitchaturvedi6626
@lalitchaturvedi6626 9 жыл бұрын
hey you said blocking is easy. can u share the example how u implemented the blocking?
@lorenzodigaetano3591
@lorenzodigaetano3591 5 жыл бұрын
He speaks faster than my girlfriend, and it's a huge achievement! :-D
@chrispie
@chrispie 7 жыл бұрын
observable is dead. long live the observable!
@antonios.k
@antonios.k 9 жыл бұрын
Will you just drink the damn coffee
@thedripfinallystops
@thedripfinallystops 9 жыл бұрын
Someone needs too normalization the audio on these videos.
@smatsri
@smatsri 9 жыл бұрын
#Rxjs #ErikMeijer
@paololucchesi2827
@paololucchesi2827 6 жыл бұрын
This guy should do some Hip Hop, he would have a stunning flow for sure
@danielbubenheim5951
@danielbubenheim5951 4 жыл бұрын
0.75 playback speed ftw ;-)
@davidmaxwaterman
@davidmaxwaterman 8 жыл бұрын
I disagree and think this is maybe the most confusing explanation I've seen so far...his statement that they're trying to make asynchronous code look synchronous makes me doubt their sanity. Surely code should look like what it actually does, not pretend to be something it isn't...this is too clever by half. Maybe I simply need to watch it four times, like someone suggests...though I kind of feel like that really shouldn't be necessary.
@moveaxebx
@moveaxebx 8 жыл бұрын
Well it does look synchronous. Key is that the consumer is doing heavy lifting and waiting/resolving promises..what is inside the generator is only sync like code. The async/await is nothing more than "in language consumer". Yes, it's a confusing pattern and it's not shame to watch it more than once.
@darrenking8941
@darrenking8941 7 жыл бұрын
Our brains work in a synchronous manner. And code, ultimately, unless it's the final machine code, is for humans. So, that being said, it makes sense for code to look as common-sensical as possible for our brains to consume and reason about.
@ChadZeluff
@ChadZeluff 6 жыл бұрын
Late reply to this, but wanted to comment that C# has had the async/await keywords for years and it's a fantastic way to write code. I wouldn't worry about code looking like/unlike what it actually does, given that our languages hide many of the details of what they actually do underneath, with regards to memory management, etc.
@thirstypooch
@thirstypooch 6 жыл бұрын
swap ´em
УЛИЧНЫЕ МУЗЫКАНТЫ В СОЧИ 🤘🏻
0:33
РОК ЗАВОД
Рет қаралды 7 МЛН
Asynchrony: Under the Hood - Shelley Vohr - JSConf EU
25:24
Netflix JavaScript Talks - RxJS + Redux + React = Amazing!
37:14
Netflix Engineering
Рет қаралды 396 М.