Tendai Mutunhire started out doing Java development for large corporations, then taught startup teams how to code at the MEST incubator, and is in the process of launching a few startups of his own.
How to use Timers and Events in Node.js
Node.js has multiple utilities for handling events as well as scheduling the execution of code. These utilities, combined, give you the ability to reactively respond at the right time, for example: Clearing session data when a user logs out Scheduling a timeout for receiving results from an API call...
Python Metaclasses and Metaprogramming
Imagine if you could have computer programs that wrote your code for you. It is possible, but the machines will not write all your code for you! This technique, called metaprogramming, is popular with code framework developers. This is how you get code generation and smart features in many popular...
How to Start a Node Server: Examples with the Most Popular Frameworks
Did you know that there are multiple ways to start a Node.js server and keep it running? In this post, we will explore various ways to start an HTTP Node server. A Node.js server makes your app available to serve HTTP requests. It provides the interaction between users...
How to get your IP Address on Linux
IP addresses are an essential part of modern networked communications. In this guide, we will show you how to find your own IP address. These instructions will work for most of the various Linux distributions like Ubuntu, Debian and Linux Mint, among others. BSD systems like FreeBSD and NetBSD, as...
Hapi vs Express: Comparing Node.js Web Frameworks
Chances are you've heard of Hapi by now. And you might be wondering how it compares to the Express web framework in Node.js development. In this article, we will compare the frameworks head-to-head and explore the differences in experience for the developer. Both Express and Hapi aim to be...
How to Permanently Set $PATH in Linux
In this tutorial, we will show you how to permanently set your PATH on Linux. First off, why should you care? The $PATH variable, or just PATH, without the $ indicating variables, specifies a list of directories that impacts your computing platform's functionality in a critical way. This is because the...
How to Exit in Node.js
In this tutorial we will show you the various ways of how to exit Node.js programs. You need to understand first that Node.js works on a single thread or main process. You can spawn additional child processes to handle extra work. Exiting the main process lets us exit...
Serving Static Files with Flask
Flask is a great choice for building web applications in a modular way using Python. Unlike Django and other analogues like Ruby on Rails, Flask is a micro-framework. This means it includes only what is necessary to do core web development, leaving the bulk of choices beyond that minimal subset...
Differences Between .pyc, .pyd, and .pyo Python Files
In this article we go over the Python file types .pyc, .pyo and .pyd, and how they're used to store bytecode that will be imported by other Python programs. You might have worked with .py files writing Python code, but you want to know what these other file types do...