Skip to content

Instantly share code, notes, and snippets.

@victorclee
Created July 7, 2017 02:11
Show Gist options
  • Save victorclee/9ca8afb6d6f22f836436bec13f0aed82 to your computer and use it in GitHub Desktop.
Save victorclee/9ca8afb6d6f22f836436bec13f0aed82 to your computer and use it in GitHub Desktop.
Modern JavaScript, and where Rails is heading towards.

TIL - Things I Learned - Thursday 07/06/2017

Modern JavaScript

Use npm install, it installs more than just the needed moment.js
node

Module bundler

webpack is a module bundler for modern JavaScript applications. When webpack processes your application, it recursively builds a dependency graph that includes every module your application needs, then packages all of those modules into a small number of bundles - often only one - to be loaded by the browser.
Use webpack to bundle
executeable
Check out webpack for Rails after capstone.

Compiler

There are older versions of JavaScript out there, so there will be backwards compatibility issues.
Hence, Babel

Package managers:

Npm is the most common.
Yarn, for Rails.
NuGet
spm
meteor
Don't use bower

dev server

MEAN.io

MEAN is an opinionated fullstack javascript framework - which simplifies and accelerates web application development.
MongoDB, Express, AngularJS, Node.js

Build Chrome extensions

https://www.sitepoint.com/create-chrome-extension-10-minutes-flat/

The mindset of a web developer

It's not that you have to have a specific set of skills, but it's how you find solutions.
If you dive into it, you will eventually come out the other side. You just need the courage.
"People who goes through a Rails bootcamp, you get a hammer. But once you get the hammer, everything looks like nails now."
Start a new project after capstone, using a totally different language, a different framework!

Useful Resources

https://webpack.github.io/
https://babeljs.io/
https://www.npmjs.com/
http://mean.io/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment