Coder Social home page Coder Social logo

promises-applied's Introduction

Promises Applied

Challenge Rating

This goal will likely be within your ZPD if you...

  • Are familiar with SQL (the core-sql goal is highly recommended)
  • Are familiar with object oriented programming in JavaScript
  • Are interested in learning about JavaScript Promises
  • Are interested in creating functions which use Promises
  • Are interested in learning how to use the pg-promise library

Description

A theoritical and practical approach to understanding JavaScript Promises.

This goal makes heavy use of external resources: the Promises Course course on Udacity.

For the first two days you will be working on existing courses and completing tutorials. Then you'll use your skills to complete a set of exercises, and submit your solutions as your artifacts.

Fork the two repos promise-it-wont-hurt-solutions and pg-promise-exercises which contain the exercises you need to complete, and make them your artifacts.

Context

JavaScript is an asynchronous programming language, and if you want want to avoid callback hell you will have to learn to use Promises.

Promises provide a simpler alternative for executing, composing, and managing asynchronous operations when compared to traditional callback-based approaches. They also allow you to handle asynchronous errors using approaches that are similar to synchronous try/catch.

Specifications

Day 1 & 2

Day 3 & 4

  • Exercises 1-13 in the promise-it-wont-hurt-solutions are complete and written to the appropriate file:
    • src/01-warmup.js
    • src/02-fullfill-a-promise.js
    • src/03-reject-a-promise.js
    • src/04-to-reject-or-not-to-reject.js
    • src/05-always-asynchronous.js
    • src/06-shortcuts.js
    • src/07-promise-after-promise.js
    • src/08-values-and-promises.js
    • src/09-throw-an-error.js
    • src/10-an-important-file.js
    • src/11-multiple-promises.js
    • src/12-fetch-json.js
    • src/13-do-some-work.js

Day 5

  • Look at the documentation of the pg-promise repository
  • Exercises 1-7 in the pg promise exercises are complete
    • Exercise 1
    • Exercise 2
    • Exercise 3
    • Exercise 4
    • Exercise 5
    • Exercise 6
    • Exercise 7

Stretch

Quality Rubric

Well formatted code

  • Code uses a linter, which can be invoked with a command (e.g. npm run lint). [50 points]
  • Running the linter on all source code files generates no linting errors. [50 points]

Proper dependency management

  • There is a command to install dependencies (e.g. npm install) and it is specified in the installation and setup instructions of the README. [50 points]

Good project management

  • Commit messages are concise and descriptive. [25 points]
  • All features are added via pull requests. [25 points]
  • Every pull request has a description summarizing the changes made. [25 points]
  • Every pull request has been reviewed by at least one other person. [25 points]

Resources

promises-applied's People

Contributors

benjaminpettus avatar

Watchers

James Cloos 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.