Giter Club home page Giter Club logo

refactoring-to-modern-javascript's Introduction

Refactoring to Modern JavaScript workshop 😻

JavaScript now has a yearly release cycle. Every release introduces new features that aim to make us (JavaScript developers) more productive, while making our code succint, expressive, and (potentially) bug-free.

This workshop allows you to explore many of the new features that we use on a daily basis, including

  • let and const
  • Default parameters
  • The new "fat arrow" function syntax
  • Template strings
  • Object and array destructuring and spread
  • The newly added Map/Set data-structures
  • The new class syntax
  • Promises and async/await

This workshop uses tests to verify and validate all of your changes, so you can be confident in your changes as you go about refactoring your code to use modern JavaScript language features.

By the end of this workshop you will be intimately familiar with the newer set of JavaScript features, and ready to dive into your next JavaScript project with confidence.

Setup

You will need a few things installed:

  • Install Git
  • Download and install node per this

Optionally, if you do not a favorite text editor, you can install Visual Studio Code

Then clone this repository in a location of your choice. Then simply:

cd /path/to/this/repository
❯ npm install

To ensure that all is well, simply run npm run test. You should see the following:

❯ npm run test

> [email protected] test /Users/raju/Documents/presentations/2020/refactoring-to-modern-javascript/code/refactoring-to-modern-javascript
> jest --verbose

 PASS  src/000-setup-test/__test__/counter.util.test.js
  counter: Should increment the passed value
    ✓ should add 1 (2ms)

Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        1.59s, estimated 2s
Ran all test suites.

You are all set!

License

Copyright (c) 2020 Raju Gandhi

Distributed under the MIT License

refactoring-to-modern-javascript's People

Contributors

looselytyped avatar

Watchers

 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.