Introducing IBM Node.js Tools for Eclipse Beta

IBM has recently added a lightweight collection of tools in Eclipse, enabling Node.js developers to rapidly build and deploy JavaScript applications targeting the Node.js environment.

Complimenting the existing IBM offerings, such as Bluemix tools for Eclipse and Websphere Developer Tools for Enterterprise Java Development, the Node.js tools for Eclipse provide:

Read more

Write Your Own Co Using ES2015 Generators

ES2015 is now officially the new JavaScript language standard, and it is packed with sweet new features. One feature that I’m particularly excited about is ​generators​. At a high level, generators are functions that can pause and then pick up where they left off later. Generators enable you to break up CPU­-intensive calculations like computing the millionth Fibonacci number so you don’t block the event loop and write ​web servers using middleware that can post-­process your HTTP response​. The most exciting application of generators, though, is asynchronous coroutines, better known as callback-­free asynchronous code. In this article, you’ll learn about how to write your own ​co​, a library for asynchronous coroutines using generators.
Read more

Higher order functions in ES6:
Easy as a => b => c;

ES6 is nigh! As more and more libraries & Thought Leaders start incorporating ES6 into their code, what used to be nice-to-know ES6 features are becoming required knowledge. And it’s not just new syntax – in many cases, new language features can make an expression that was cumbersome to write in ES5 easy in ES6, enabling and encouraging the use of this type of expression. We’re going to look at one such case here: how arrow functions make it easier to write higher-order functions in ES6.

Read more

An Introduction To JavaScript ES6 Modules

ECMAScript 2015 (formerly known as ES6) introduces a completely new feature and concept to the front-end JavaScript world that strangely has been around for a very long time – modules. ES2015 formalizes what CommonJS (the basis for modules in Node.js) and AMD have tried to address in an attempt to take all the strengths and leave out the weaknesses:

  • Compact syntax
  • Asynchronous and configurable module loading

This article will focus on ES2015 module syntax and some of its gotchas. Module loading and packaging will be covered at another time.

Read more