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

The Uncreative Software Engineer’s Compendium to Testing

Testing is an integral part of software engineering, specifically for all the stakeholders involved. The users get to enjoy software that is user-friendly and satisfies their needs, while the engineers enjoy building software that is error- and bug-free. Benefits of Testing Bug detection and prevention: developers can identify bugs, errors, and defects in the software during development and get th... »

Create an URL Shortener Using Rebrandly API and LocalStorage

URL shorteners are handy tools that allow you to condense long and complex URLs into shorter, more user-friendly versions. In this step-by-step guide, we will show you how to build your own URL shortener using Rebrandly API for shortening URLs, LocalStorage to store and display the links, Bootstrap for styling, and jQuery for handling form submissions and AJAX requests. This SEO-friendly URL short... »

My first dev job was for a surgeon!

At the beginning of 2023, this was my first customer, he knew that it was my first project as a developer. STEP 1 Project description: “” Creating an application allowing surgeons to automatically generate their surgery reports, with chatGPT help. I love this idea! It meets a real need, to not lose time on administrative tasks It’ll allow them to spend more time to take care of t... »

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

AI Tooling For Your Dev Team: To Adopt or Not to Adopt?

Amid the escalating buzz surrounding AI tools, many development teams grapple with deciding which ones suit their needs best, when to adopt them, and the potential risks of not doing so. As AI continues to pose more questions than answers, the fear of falling behind the competition lurks for many. This week’s episode of Dev Interrupted aims to dispel these uncertainties by welcoming CodiumAI... »

Benchmarking String Literal (“”) vs Template Literal (“) – using

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

How we made the new report feature of sls-mentor

TLDR In this feature insight, we explain how we generate the new reporting feature from sls-mentor, getting inspiration from jest-html-reporter. And we show you how to code your own report tool using react. Getting a fresh new report for sls-mentor ? With my team we have been building sls-mentor, a free and open source tool to audit your serverless stack on AWSand to give you tips to improve it! T... »

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

Understanding TypeScript Types: Primitives, Objects, and Type Manipulations

TypeScript Types TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale. TypeScript types are categorized into primitive types and object types. The basic types in TypeScript include string, boolean, number, array, tuple, and enum. TypeScript’s type system allows you to build new types out of existing ones using a large variety o... »

  • 1
  • 2