Welcome to the third JavaScript workshop, organized by tim.js.
This workshop focuses on various ways to organize your code, each with it's own pros & cons. We will cover fundamental ES5 concepts, while also touching some new features added since ES6.
Total Time: 6 hours (including breaks & lunch)
Instructor: Andrei Pfeiffer
- Spaghetti Code
- Object Literals
- Module Pattern
- Revealing Module Pattern
- Module systems & loaders
- ES6 Modules
Here's a list of things you need:
- a laptop & power-plug
- a code editor
- Node.js 6.0+
- Intermediate & Advanced JavaScript developers familiar with functions, arrays, objects, scope & context
Here are the steps you can follow to setup the workshop project skeleton. All these commands need to be run from the command line (shell/terminal):
- iTerm on MacOSX
- cmd/GitBash on Windows
- any terminal on Linux.
First, you need to create a new folder somewhere on your computer:
mkdir [PROJECT_NAME]
cd [PROJECT_NAME]
// or create a new "project folder" and navigate to it using your favourite file system tool
Second, you need to clone this repository. You can do it in multiple ways:
a) with git:
git clone https://github.com/andreipfeiffer/timjs-workshop-03-javascript-neighborhoods.git ./
NOTE: if you have a GitHub account, you can fork this repo, so you can commit your personal changes.
b) without git:
Download this repo and unzip it in your PROJECT_NAME folder.
npm install
npm start
This should display a URL in the console, where you can load the project page.