Marcus

Marcus is a fullstack JS developer. He’s passionate about the hapi framework for Node.js and loves to build web apps and APIs. Creator of Futureflix and the “learn hapi” learning path.


Node.js — for…of vs. for…in Loops

Node.js ships with the for…of and for…in loops. These two loops provide a convenient iteration besides the common for loop. Both loops give you a clean syntax for iterations and quick access to keys or values. This tutorial explores both loops in more detail and shows you …

Continue Reading

nginx — Remove an App/Domain from Sites-Enabled

Application hosting can become messy over time. You may shut down applications, move applications to a new domain, or you need a subdomain for a limited time. You may need to clean up your nginx configuration here and there to keep your lean setup. Nothing is worse than keeping every …

Continue Reading

Node.js — How to Reset and Empty an Array

When emptying an array in JavaScript/Node.js you’ll surely think of reassigning your array’s value to a new array. There’s another way to reset an array: set the length to zero. Let’s have a look at both ways. {{outline}} Assign an Empty Array A common …

Continue Reading
Page 1 of 34

Explore the Library

Find interesting tutorials and solutions for your problems.