Development

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... »

Creating a YouTube Tags Generator Website: The Making of ResearchedTags

Step-by-Step Guide to Creating a YouTube Tags Generator Website: The Making of ResearchedTags See Demo :- https://codexdindia.blogspot.com/2023/07/researchedtags-free-tag-generator-for.html Introduction: YouTube tags are essential for enhancing the discoverability of your videos and reaching a broader audience. Having relevant and effective tags can significantly impact the visibility of your cont... »

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 ... »

Soft Delete: Dealing With Unique Constraint in Real-World Case

ntroduced how to achieve soft delete in ZenStack in the previous post. The solution appears quite elegant with the help of the access policy in the schema. model Post { ... deleted Boolean @default(false) @omit @@deny(‘read’, deleted) ... } There are users who come to ZenStack specifically for the soft delete feature after reading the post: This was an “aha” moment in building ZenStack for me to b... »

15 Advanced TypeScript Tips for Development

1.Optional Chaining (?.): Optional chaining allows you to safely access nested properties or methods without worrying about null or undefined values. It short-circuits the evaluation if any intermediate property is null or undefined. const user = { name: 'John', address: { city: 'New York', postalCode: '12345' } }; const postalCode = user.address?.postalCode; console.log(postalCode); // Output: 12... »