background preloader


MVC framework making it easy to write realtime, collaborative applications that run in both Node.js and browsers. hello.js var app = require('derby').createApp(module); // Add template for rendering HTML and model <- -> view bindingsapp.view.make('Body', 'Holler: <input value="{hello.message}"><h1>{hello.message}</h1>'); // Add a route, which can render in the browser as well as serverapp.get('/', function(page, model) { // Specify data to sync model.subscribe('hello.message', function() { page.render(); });}); server.js app = require('derby').createApp(module) # Add template for rendering HTML and model <- -> view bindingsapp.view.make 'Body', 'Holler: <input value="{hello.message}"><h1>{hello.message}</h1>' # Add a route, which can render in the browser as well as serverapp.get '/', (page, model) -> # Specify data to sync model.subscribe 'hello.message', -> page.render()

Debugging Asynchronous JavaScript with Chrome DevTools Introduction A powerful feature that makes JavaScript unique is its ability to work asynchronously via callback functions. Assigning async callbacks let you write event-driven code but it also makes tracking down bugs a hair pulling experience since the JavaScript is not executing in a linear fashion. Luckily, now in Chrome DevTools, you can view the full call stack of asynchronous JavaScript callbacks!

A Simple Website in Node.js with Express, Jade and Stylus by Ben Gourley Do you feel like you've missed the boat on Node? Perhaps you're not a superstar web app developer, but a humble builder of websites. Maybe you're a fledging front-end developer: you've got your head around JavaScript and you want to build a site yourself, but you don't know PHP, Python or Ruby. Polyglot.js by airbnb Polyglot.js is a tiny I18n helper library written in JavaScript, made to work both in the browser and in CommonJS environments (Node). It provides a simple solution for interpolation and pluralization, based off of Airbnb's experience adding I18n functionality to its Backbone.js and Node apps. Polyglot has zero dependencies.

API Guide restify is a node.js module built specifically to enable you to build correct REST web services. It intentionally borrows heavily from express as that is more or less the de facto API for writing web applications on top of node.js. Why use restify and not express? I get asked this more than anything else, so I'll just get it out of the way up front. Meteor Simplest example. A live-updating high score list. Try it yourself In about 3 minutes, you'll make your own copy of Leaderboard and deploy it live on the Internet for you and your friends to use. And just like that Grunt and RequireJS are out, it's all about Gulp and Browserify now » { 100PercentJS } In a demonstration of how insane the Javascript world is, a revolution happened last week and it looks like Grunt was dethroned as the go-to task -runner. But wait you may say, wasn’t the Node and Grunt revolution just beginning? After all Grunt had just managed to find its way to job descriptions.

mongoDB Many-to-Many Relationship Data Modeling - Mark Starkman Introduction Implementing a many-to-many relationship in a relational database is not as straight forward as a one-to-many relationship because there is no single command to accomplish it. The same holds true for implementing them in mongoDB. As a matter of fact you cannot implement any type of relationship in mongoDB via a command. However, having the ability to store arrays in a document does allow you to store the data in a way that is fast to retrieve and easy to maintain and provides you the information to relate two documents in your code.

Our First Node.js App: Backbone on the Client and Server Here at Airbnb, we’ve been looking curiously at Node.js for a long time now. We’ve used it for odds and ends, such as the build process for some of our libraries, but we hadn’t built anything production-scale. Until now. The Problem There’s a disconnect in the way we build rich web apps these days. Learn Node.js Completely and with Confidence Duration of Course: About 2 weeksPrerequisite: JavaScript knowledge of 5/10 This is the age of the JavaScript developer, and it will only get better, particularly because of the widespread adoption of HTML5; the abandonment of Flash; the ubiquity of mobile devices; the recent rise of Meteor.js; and the popularity, stability, and robustness of Node.js, which allows developers to use JavaScript on the server. Our Career Paths and Courses Website Is Now Live

Related:  R&D