Coder Social home page Coder Social logo

callbacks-promises-and-async-functions's Introduction

Callbacks, Promises and Async Functions

To run the app first run:

npm install

then to lunch the server using each pattern you could do:

npm run callbacks

or:

npm run promises

or:

npm run async-await

##About me

  • A JavaScript enthusiast, developer with more than 10 years of experience
  • A Thinkful mentor, a codementor on codementor.io(fixjs) and an online teacher/mentor at CodeInstitute.net
  • more than 10 years experience writing JavaScript libraries, SPAs and JavaScript fullstack applications.
  • I wrote DefineJS: A JavaScript module loader, an implementation of AMD (Asynchronous Module Definition).
  • you could find more aout me checking out my online profiles: Github, Stackoverflow, Resume, LinkedIn, Twitter: @fixjs and CV.

Where to start

Promises helped us with the painful experience we had with Callbacks and now Async functions allows to simply await on a Promise. We will cover all the three patterns with live coding to see how easy it is to write a cleaner code using async/await.

In this workshop we will be implementing CRUD using Callbacks, Promises and ES2016 async/await functions.

What you'll learn:

How to get the most out of error-first callbacks. The art and science of error handling when using callbacks. How to use promises. How Async functions could be helpful to write cleaner and more readable code.

Perfect if you:

  • Have some experience in node.js.
  • Have used error-first callbacks.
  • Are slightly familiar with promises; there will be enough content provided to help you master promises.
  • Are willing to learn how to write clean and reliable asynchronous code.

How to prepare:

Anyone is welcome to join and watch, but if you'd like to code along (recommended):

callbacks-promises-and-async-functions's People

Contributors

mehranhatami avatar

Watchers

Darrell Silver avatar Olex Ponomarenko avatar James Cloos avatar Dan Friedman avatar Thomas Peterson avatar Derek Fogge avatar  avatar Grae Drake avatar  avatar Kara Leary avatar Varun Rajan avatar  avatar Zac Ellington avatar Tati avatar Mehran Hatami avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.