background preloader

Understanding node.js » Debuggable Ltd

Understanding node.js » Debuggable Ltd
Node.js has generally caused two reactions in people I've introduced it to. Basically people either "got it" right away, or they ended up being very confused. If you have been in the second group so far, here is my attempt to explain node: It is a command line tool. You download a tarball, compile and install the source.It let's you run JavaScript programs by typing 'node my_app.js' in your terminal.The JS is executed by the V8 javascript engine (the thing that makes Google Chrome so fast).Node provides a JavaScript API to access the network and file system "But I can do everything I need in: ruby, python, php, java, ... !". I hear you. "Get to the point!" Alright, I will. "Huh?" That's right, everything runs in parallel, except your code. The day starts by one servant waking up the king and asking him if he needs anything. Once a servant finishes a task, he lines up outside the kings quarter to report. "That's fantastic, but could you quit the silly metaphor and speak geek to me?" Sure. No.

Related:  node_js

Node.js frameworks review This is a strongly-opinioned fly-by review of the evolving web framework ecosystem for Node.js. I'm a big fan of Javascript, and write a lot of it for browsers. So I've been excited about the prospects of server-side javascript which opens up a lot of possibilities for sharing code on the client and server side. Rendering a web page – step by step Have you ever thought about what happens when you surf the web? It’s not as simple as it seems: You type an URL into address bar in your preferred browser.The browser parses the URL to find the protocol, host, port, and path.It forms a HTTP request (that was most likely the protocol)To reach the host, it first needs to translate the human readable host into an IP number, and it does this by doing a DNS lookup on the hostThen a socket needs to be opened from the user’s computer to that IP number, on the port specified (most often port 80)When a connection is open, the HTTP request is sent to the hostThe host forwards the request to the server software (most often Apache) configured to listen on the specified portThe server inspects the request (most often only the path), and launches the server plugin needed to handle the request (corresponding to the server language you use, PHP, Java, .NET, Python?) I, too, get annoyed when the above steps take longer than one tenth of a second.

Useful Node.js Tools, Tutorials And Resources Advertisement Created by Ryan Dahl in 2009, Node.js is a relatively new technology which has gained a lot of popularity among Web developers recently. However, not everyone knows what it really is. Node.js is essentially a server-side JavaScript environment that uses an asynchronous event-driven model. Debugger Node.js v0.10.17 Manual Stability: 3 - Stable V8 comes with an extensive debugger which is accessible out-of-process via a simple TCP protocol. Node has a built-in client for this debugger. To use this, start Node with the debug argument; a prompt will appear:

Node.js Step by Step: Introduction Node.js is an amazing new technology, but, unless you're specifically a JavaScript developer, the process of becoming acquainted with it can quickly become a bit overwhelming. But that's why we're here! If you want to really learn how to use Node.js, this set of articles and screencasts will do the trick. Hi guys, my name is Christopher Roach, and I'll be your guide throughout this series of screencasts on Node.js. In this series we'll be using Node to create a simple blog engine, like the one made famous in the popular Ruby on Rails introductory video. The goal of this series is to give you, the viewer, a real feel for how Node works so that, even when working with any of the popular web development frameworks out there, such as Express or Getty, you'll feel comfortable enough with the inner workings of Node to be able to drop down into its source and make changes to suit your needs as necessary.

Top HTML5 Frameworks and Generators To Ease Your Pain Why knocking your head worrying about cross-platform and cross-browser problems when there are many frameworks free to use. Same with HTML5 Frameworks, which help to cut short the CSS modification and ease the pain of dealing with HTML5. Undoubtedly that adapting a new framework requires considerable time and amount of work, it is still the most effective way to avoid certain setbacks, inevitable setbacks that already been configured properly in the framework. Each framework has specific purposes and developers may have to adapt 2 or more to finish the task. We decide to split them to different criteria:

How to write your own native Node.js extension - Olivier Lalonde's blog UPDATE: There is now a Node.js addon for loading and calling dynamic libraries using pure JavaScript: node-ffi. Also, node-waf is no longer being used to compile Node.js extensions. TRANSLATIONS: This post was translated to Chinese: Introduction This is a follow up to How to roll out your own Javascript API with V8. You should still be able to follow if you haven’t read it. Using Express.js for APIs A few tips and libraries for creating and documenting RESTful APIs with Express.js. See a simple example app that incorporates some of these ideas. Two things really got me sucked into Express when I first started using it: Jade and Stylus. I can barely tolerate writing HTML and CSS any other way. These days I spend more time using Express for APIs that send nothing but JSON. In this post I’ll cover a few libraries and reminders to help keep your code organized and your API friendly for developers.

Coder Projects Step 1: Get parts, fill brain First things first, you’ll need a few parts to build this project. Here’s the complete list of what you need:

Related:  node js