background preloader

Top 10 Mistakes Node.js Developers Make

Top 10 Mistakes Node.js Developers Make

https://www.airpair.com/node.js/posts/top-10-mistakes-node-developers-make

Related:  lynxeNode JSnode.jsNode

10 Habits of a Happy Node Hacker (2016) At the tail end of 2015, JavaScript developers have a glut of tools at our disposal. The last time we looked into this, the modern JS landscape was just emerging. Today, it's easy to get lost in our huge ecosystem, so successful teams follow guidelines to make the most of their time and keep their projects healthy. Here are ten habits for happy Node.js hackers as we enter 2016. BDD with MEAN – The Server Part 1 As with any new endeavor, it pays to spend some time trying various solutions out and sometimes failing miserably. This is especially true for us progressive nerds who like to live on the bleeding edge without things like Stack Overflow to constantly save our ass. What I’d like to do is to help you avoid going through the pain of figuring out what works and what doesn’t. As I mentioned in my previous post, I already have a project that serves as a working example of if you wish to jump straight into the code: .

An early look at three high-impact ES6 features coming soon to Node.js - RethinkDB Google is currently developing V8 4.9, which will ship in the upcoming Chrome 49 release. V8 4.9 is a particularly exciting update, because it includes support for 91% of the ECMAScript 2015 (ES6) standard. When Node.js 6 launches with these V8 improvements, powerful new language features like destructuring assignment and proxies will work out of the box–without requiring special measures like command line flags or transpilers. Although Node 6.0 isn’t scheduled for release until April, you can experience a little bit of the future today by compiling Node’s vee-eight-4.9 branch from source code. The vee-eight branches are where Node’s maintainers do the heavy lifting to make Node compatible with new versions of V8.

NodeSource - Enterprise Node.js Training, Support, Software & Consulting, Worldwide Node's "event loop" is central to being able to handle high throughput scenarios. It is a magical place filled with unicorns and rainbows, and is the reason Node can essentially be "single threaded" while still allowing an arbitrary number of operations to be handled in the background. This post will shed light on how the event loop operates so you too can enjoy the magic. Event Driven Programming # Node.js in Flames We’ve been busy building our next-generation Netflix.com web application using Node.js. You can learn more about our approach from the presentation we delivered at NodeConf.eu a few months ago. Today, I want to share some recent learnings from performance tuning this new application stack.

Event Emitters in NodeJs In this tutorial we will be exploring the built-in events module in NodeJs and particularly the EventEmitter class through a couple of practical examples. I'll start off by showing you how to create an instance of the EventEmitter and then move on to building our own Node module which inherits from the EventEmitter. So what exactly are event emitters?

Best Practices for Node.js Development Last updated 13 October 2015 For most of the nearly twenty years since its inception, JavaScript lacked many of the niceties that made other programming languages like Python and Ruby so attractive: command-line interfaces, a REPL, a package manager, and an organized open-source community. Thanks in part to Node.js and npm, today’s JavaScript landscape is dramatically improved. What’s New in Node.js v0.12: Cluster Round-Robin Load Balancing Editor’s Note Welcome to the first installment of what will likely be a seven or eight part series of blog posts authored by Node core commiters, Ben Noordhuis and Bert Belder, covering the new features currently slated for inclusion in v0.12 of Node.js. In this first post, Ben looks at the new round-robin clustering algorithm.

Express - api reference express() Creates an Express application. The express() function is a top-level function exported by the express module. var express = require('express');var app = express(); Methods Understanding Socket.IO Understanding Socket.IO It’s important to provide timely feedback to users in your web application. It all started with the introduction of XMLHttpRequest by Microsoft which became what we now know as AJAX. AJAX long-polling used to be the standard way to fetch server-sent data for an application, though it wasn’t the most ideal solution.

Production-Quality Node.js Web Apps : Part I, The Basics - caines.ca I’ve been working on production-quality node.js web applications for a couple of years now, and I thought it’d be worth writing down some of the more interesting tricks that I’ve learned along the way. I’m mostly going to talk about maintaining a low-defect rate and high availability, rather than get into the details about scaling that are covered in a lot of other places. In particular, I’ll be talking about load-balancing, process management, logging, and metrics, and the how’s and why’s of each. Balance the Load I’m going to assume that you’re already load-balancing on a given server with cluster or some higher level abstraction ( I use cluster-master) as well as between servers with a load-balancer like ha-proxy.

Hosting Node Apps This tutorial walks you through setting up a server that can host node.js apps for server-side JavaScript applications. Right now, the node.js hosting options boil down to running node daemon processes that talk to a web server. Most web servers can proxy connections to a different port, so you’ll be able to use Apache or nginx to do this. Step 1: Get a Server or VM I’m using a VMware virtual machine.

Related: