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 — Convert a String to Buffer

When working with Node.js’ crypto module you sometimes need to provide Buffer instances as an argument. For example, the timingSafeEqual function accepts two buffer arguments for comparison. Sometimes your raw values are strings and you need to convert them before using them in your application code. This tutorial shows …

Continue Reading

JavaScript — Sort a Set

Modern JavaScript comes with a built-in Set class. A set instance stores unique values of any type. You can use sets with primitive values and more complex data structures, like objects. A downside of sets in JavaScript is that they don’t provide the same methods as arrays. Sets don’ …

Continue Reading

JavaScript — Check if a String is a Number

In web applications, you can transfer data using the URL. For example, here on Future Studio, we have a listed overview of all published tutorials. This overview is paginated using limit-offset pagination. Users read through this tutorial list by paginating through the pages using a page query parameter. This page …

Continue Reading

JavaScript — Get URL Query Parameters

Sometimes you want to retrieve the URL query parameters when using JavaScript on the client side. JavaScript in the browser provides a global window.location object providing you with all the URL parts. The query parameters are available in window.location.search. This tutorial shows you how to access and …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.