Programming

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

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

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

🚀 7 open-source projects you should contribute to in 2023 ⭐️⭐️

I love seeing so much innovation in open-source. There are a few raising libraries I thought I should share. 1. Snapify Snapify allows you to record and share recordings asynchronously Make unlimited recordings of your tab, desktop, and any application Share recordings with anyone using a public link Delete or un-list recordings after a specific timeframe Upload and share existing videos to Snapif... »

Dockerizing a Node.js App: A Comprehensive Guide for Easy Deployment🐋

Dockerizing a Node.js app is a useful technique that allows you to package your application and its dependencies into a container, making it easier to deploy and run consistently across different environments. In this blog post, we’ll walk through the steps to dockerize a Node.js app. Let’s get started! Prerequisites Before we begin, make sure you have the following installed on your m... »

Building a ChatGPT custom plugin for API Gateway

ChatGPT Plugins serve as bridges linking ChatGPT to external APIs to use these APIs’ data intelligently. These plugins let ChatGPT undertake a range of tasks, such as retrieving up-to-date information from other APIs including sports results, stock market data, or breaking news, and assisting users in performing actions like flight booking or food ordering. Meanwhile, API Gateway is a powerful too... »

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

The Future Unleashed: Fully On-Chain Gaming and Its Implications for the Gaming Industry

The gaming industry is on the cusp of a groundbreaking revolution with the emergence of fully on-chain gaming. By leveraging the power of blockchain technology, this innovative concept introduces a new era of gaming experiences, marked by true ownership, decentralized economies, and unparalleled transparency. In this article, we explore the transformative potential of fully on-chain gaming and del... »

Integrating Jest Testing into an Existing Vue 3 Project with ViteJs

In my recent experience, I faced the challenge of integrating the Jest testing framework into an existing Vue3 js project that was built with Vite. I encountered difficulty finding helpful installation guides on various blogs. However, after multiple attempts and putting in a lot of effort, I eventually found a solution. In this blog post, I aim to provide a step-by-step installation guide that ca... »