Blog Archive

Written by Kevin Chisholm on December 19, 2016
Sometimes you want to know where you are. This happens plenty of times in real life, but it also happens in Node.js. If you need to programatically determine the current folder, you may turn to process.cwd() or __dirname. There is a difference between them though. In this article we'll discuss...
Read more...

Written by Kevin Chisholm on December 19, 2016
Functions are first-class citizens in JavaScript. This is one of the most popular aspects of the language. It is also one of the most powerful features. When a function is a property of an object, it is also considered a method of that object. Inside of a method, the this keyword provides value...
Read more...

Written by Kevin Chisholm on November 25, 2016
The Express.js framework simplifies the task of creating a Node.js web server. When crafting your response to the user, the send method of the Express response object is a powerful tool. It provides abstraction for sending the response. This includes setting the appropriate content-type header,...
Read more...

Written by Kevin Chisholm on November 25, 2016
I have found that there are two types of web developers. Those who think Node.js is great, and those who have not realized it yet : - ). To members of the first group, I say: "C'mon back when you realize that Node.js is great". Members of the first group probably realize how overwhelming it can be...
Read more...

Written by Azat Mardan on October 25, 2016
Concurrency and Other Async Node Patterns Most of us learned programming in a synchronous manner and never bothered with asynchronous patterns. Well, you might start learning async now, because asynchronous code is more efficient than synchronous, but to write good async code you need to know at...
Read more...

Written by Kevin Chisholm on October 17, 2016
GET and POST requests are common in web development. GET is one that you see more often. For example, when you load most web pages, the majority of the requests that comprise the page are GET requests. But sometimes, you need to make a POST request. Testing a GET request is easy. Testing a POST...
Read more...

Written by Kevin Chisholm on October 3, 2016
Everyone comes to Node from different angles. Some back-end developers decide to dive into JavaScript. Sometimes a front-end developer will choose Node as their first back-end language. Regardless of your path, getting started with Node can sometimes be a challenge. One of the big reasons for this...
Read more...

Written by Azat Mardan on September 29, 2016
When Bert Belder (one of the early Node core contributors) presented his keynote at Node Interactive Europe 2016 on Event Loop, he started by saying that most of event loops diagrams are WRONG. I'm guilty of using one of them in my talks. :) This is it. In it, event loop is spinning data back at...
Read more...

Written by Kevin Chisholm on September 19, 2016
Compressing one or more JavaScript files is a common front-end tooling task. Developers often consider this to be part of the front-end build process. Tools such as Grunt and Gulp are often used. This is fine. But is also possible to compress JavaScript files using Node. In this article, I will...
Read more...

Written by Kevin Chisholm on September 1, 2016
Node.js has been riding the wave of JavaScript's growing ubiquity. As the default package manager for Node.js, npm has seen a parallel rise in popularity. There is good reason for this. npm is well-built, well documented, and makes Node.js development more seamless. It's hard to imagine using Node....
Read more...

Pages