Articles related to all things JavaScript.

Adios: a lightweight process manager for node

What do you do when you have a web server that needs to cleanly close all open connections before shutting down but the existing process management solutions are more involved than you’d like? You make your own.

A Practical Introduction to ES2015 Objects

With es2015, Object Literals get a fairly hefty set of new features that make data manipulation much more readable and succinct.

At the moment, not all of these features are available in all environments, but we’re not here to talk about feature support. Instead, we’re making the assumption that they are available in your environment or you’re using a tool like Babel to transform your JavaScript.


Access to Object.prototype.__proto__ getters and setters is now standardized!

A Practical Introduction to ES2015 Classes

Classes, in ES2015, provide constructors, static and instance methods, inheritance, and the ability to extend a class by another class. Best of all, you don’t have to call classes “functions” anymore.

Debunking 3 Meteor misconceptions

Through lots of discussion, I’ve found that people are generally opposed to using Meteor for any sort of professional or production work for a number of reasons, which aren’t really related to Meteor’s usefulness as a tool. Let’s spend some time looking at Meteor more closely in regards to these concerns.

Clustering your Node.js application

Node.js runs typically runs on a single thread, and doesn’t take advantage of the multiple cores that might be available within a system. It can actually handle a pretty large volume of requests with a single process due to its event-driven, asynchronous architecture. However, apps that receive heavy traffic stand to benefit greatly from using all available system cores. Node.js ships with a core cluster module, which allows an application to run on more than one core and achieve greater concurrency so that it can handle more load.

Introducing Saucier

With the first party API building tools built into Drupal 8 core, there’s been a lot of talk about building semantic APIs in Drupal; when, how, and why you should or should not. However, a commonly overlooked piece of this picture is how to go about actually consuming these APIs. As it turns out, consuming an API, even a well designed one, can present a number of challenges. That’s why we created Saucier, a Node.js framework for creating web pages using Drupal-based content APIs.

screensizes: visualize viewports in real-time

We talk often about how responsive web design should be fluid and not designed around a limited set of screen sizes. But how do you really drive that point home? Is it possible to physically see how many different shapes and sizes are viewing the web?

Make it Modular

One of the most powerful features of node.js is its package manager, npm, and the wealth of modules it gives you access to. By using node modules you can leverage work done by other members of the community and spend more time focusing on solving your specific problem. There are other benefits to node modules though: they make your code more testable by splitting out non-critical logic, they make your code more maintainable by reducing the code paths through code you’ve written, and they improve the organization of your overall project.