Backend

Danni, Johny and the Java Feature Flag Problem

What is Feature Toggle Imagine you are building a new feature for your Java application. You want to test the feature with a small group of users before you roll it out to everyone. You could do this by creating two versions of your application, one with the new feature enabled and one with the new feature disabled. But this would require you to deploy two different versions of your application to... »

Assertions: How to Assert Conditions and Types

The asserts statement was introduced in TypeScript 3.7. It’s a special type of function signature that tells the TypeScript compiler that a particular condition is true from that point on. Essentially, assertions serve as macros for if-then-error statements, allowing us to encapsulate precondition checks at the beginning of function blocks, enhancing the predictability and stability of our c... »

Self-Hosting Your Own Cloud Storage on AWS using NextCloud

Introduction Ever thought of self-hosting your own private cloud server?? Nextcloud is a popular open-source file hosting and sharing platform that allows you to store, sync, and share your files, contacts, calendars, and more. Feel free to checkout the below video I made for this tutorial as well. In this tutorial, we will walk you through the process of self-hosting Nextcloud on AWS using EC2 an... »

Benchmarking String Literal (“”) vs Template Literal (“) – using Performance.now()

Let’s talk about String in JavaScript. There are 2 ways developers can define a string: a. Using String Literal const str = "Hello " + "world!"; b. Using Template Literal const worldText = "world!" const str = `Hello ${worldText}`; So, have you ever wondered what the difference between the tow? Which one do you usually use? Is the one you’re using better? Let’s find out by doing ... »