Promises – Part 8 of Functional Programming in JavaScript




Promises are, just like callbacks, a way of dealing with things being asynchronous – when we don’t know for certain in what order things will happen. But promises are more powerful than callbacks because they compose – you can combine promises and chain them, all kinds of cool stuff – I’ve showed you some in this video, but there is WAY more you’ll be able to do when you get comfortable with promises.

Full code example from the video here:
https://github.com/mpj/fpjs8

Much inspiration for this episode was drawn from this fantastic guide y mattdesl:
https://github.com/mattdesl/promise-cookbook#the-problem

Original source


32 responses to “Promises – Part 8 of Functional Programming in JavaScript”

  1. Hey MPJ .Finally i understood what is promises .Thanks a lot .Could you please share more videos on promises .Jquery is not my first language but i have worked on jquery more than 5 years and i realized what i missed when i saw your all videos on java scripts and function programming.

  2. Hey @MPJ!
    As I talked once from twitter, I'm front end developer, from Brazil and now I'm living and working in Lisbon, Portugal. I'm Front End Developer and I'm having some fun with Reactjs and ES6. I came from legacy projects and for me JS was only to validate forms and do small things (hahah)… after start in this current job/project I realize that I had to learn more things, new features, know the power of JS … otherwise I will not be successful with react, you know.
    I start to learn ES6 with your videos and was great, now I know a lot of relevant things.
    Well, thanks to help-me (and others) sharing (with fun!) your knowledge.

    My best regards.

  3. To answer your question: I'm a full-stack web developer. I do freelancing as a career and also work on business side-projects. I know JS fairly well, but I'm learning React ATM because it seems like the best thing to learn based on my research (so far I've just used jQuery)

  4. Hello, in highschool 03-07 java, c++, css and html. Your videos have amplified my recent interest in functional programming. Have done some bootcamp prep with Flatiron and Viking school(free parts so far). So past two months, Ruby, SQL and Javascript(vanilla and react so far), I have a good handle. From Hackerrank, Code Academy, and Solo Learn also. A little Scala, but I like this approach more since JS is awesome. My goal is to get a developer position within 10 months, I have passion. Any tips on moving forward? @funfunfunction

  5. "It would be zonkers." Haha, all my code is basically zonkers right now.

    I'm a Full-Stack JavaScript student at Code Fellows in Seattle, and I loved this video! It was really helpful! You've got a new subscriber.

  6. Hi MPJ,
    I am working as a young frontend developer, I know the basics of JS , jQuery and bit of BackboneJS. But I would like to write better and more professional code, and use the "cool" stuff ๐Ÿ™‚ so I started watching every day at least one of your videos and they are really awesome and helpful, and also entertaining ๐Ÿ™‚ keep up with the good work! thanks

    Peter

Leave a Reply