Skip to content

Instantly share code, notes, and snippets.

View yanivefraim's full-sized avatar

Yaniv Efraim yanivefraim

View GitHub Profile
@yanivefraim
yanivefraim / index.js
Last active November 10, 2016 15:06 — forked from franciscolourenco/index.js
requirebin sketch
// Welcome! require() some modules from npm (like you were using browserify)
// and then hit Run Code to run your code on the right side.
// Modules get downloaded from browserify-cdn and bundled in your browser.
axios = require('axios')
myAxios = axios.create()
// Response 2

Step by step from jQuery to Backbone

I've seen many struggle when they first meet Backbone.js. In this blog post I will gradually refactor a bit of code from how I used to write JavaScript before, into proper Backbone.js code using models, collections, views and events. Hopefully this process will give you a firm understanding of the core abstractions in Backbone.js.