Month: July 2023

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

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

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

Creating an EKS Cluster Using Terraform: A Step-by-Step Guide

  Welcome back to another learning experience! In this step-by-step guide, I will provide you with comprehensive instructions to help you build an EKS cluster, VPC, and subnets effortlessly. At the end of this guide, you will have achieved the following goals: Successfully created roles for Nodes and EKS cluster using Terraform Established a VPC specifically for the EKS cluster, enabling netw... »

LLMs for Schema Augmentation

I have recently been experimenting with the use of large language models (LLMs) to augment JSON Schemas with useful features. While ChatGPT gets most of the press, there are many other LLMs that are specifically designed to work with code. The idea is that these LLMs can be used to augment incomplete schemas with additional useful information. Consider an example schema such as the one below. This... »

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

The Moon in 10241 Dots — Re-creating a 1969 Masterpiece

In 1969, German artist Max Ernst created a beautiful painting in celebration of the Moon-landing: Entitled Naissance d’une Galaxie (Birth of a Galaxy), I can imagine it must’ve taken months to complete, using stencils for all the dots. Luckily, we can code it much faster! Radial Gradient First, we need a background-layer with a radial background: main { background: #06101D radial-gradi... »

A Comprehensive Guide to TypeScript: Introduction, Installation, and Running Code

What is TypeScript? TypeScript is an object-oriented programming language created and maintained by Microsoft Corporation. It is a free and open-source high-level programming language that adds static typing with optional type annotations to JavaScript. TypeScript is a strict superset of ECMAScript 2015, commonly referred to as JavaScript. Being a “Syntactic Superset,” TypeScript share... »