In almost all cases, it's more appropriate to use Browserify and npm over Bower. It is simply a better packaging solution for front-end apps than Bower is. At Spotify, we use npm to package entire web modules (html, css, js) and it works very well. Bower brands itself as the package manager for the web. … Continue reading Why use Bower when there is npm?
Node.js
Getting Started with Node.js for the Rails Developer
Introduction In this article we are going to do a quick introduction to Node.js for Ruby on Rails minded developers. From Ruby to Node You’ve likely heard in the past few months that some big companies are starting to deploy Node applications in production and at scale. Walmart is running their entire mobile site on Node, … Continue reading Getting Started with Node.js for the Rails Developer
A Simple, unobtrusive authentication for Node.js
Passport is authentication middleware for Node.js. Extremely flexible and modular, Passport can be unobtrusively dropped in to any Express-based web application. A comprehensive set of strategies support authentication using a username and password, Facebook, Twitter, and more. Overview Passport is authentication middleware for Node. It is designed to serve a singular purpose: authenticate requests. When … Continue reading A Simple, unobtrusive authentication for Node.js
A good Express JS crash course
https://www.youtube.com/watch?v=gnsO8-xJ8rs Express.js, or simply Express, is a web application framework for Node.js, released as free and open-source software under the MIT License. It is designed for building web applications and APIs. It is in fact the standard server framework for Node.js. The original author, TJ Holowaychuk, described it as a Sinatra-inspired server, meaning that … Continue reading A good Express JS crash course
Module in JavaScript
A short personal note: var dayName = function() {}(); is equivalent to var dayName = function() {}; dayName(); You define a function first then invoke it. Modules A beginning programmer writes her programs like an ant builds her hill, one piece at a time, without thought for the bigger structure. Her programs will be like … Continue reading Module in JavaScript