Turborepo: Scaling Your TypeScript Monorepo
As your project grows from one app to multiple apps sharing packages, a monorepo becomes the natural architecture. Turborepo makes monorepos fast and manageable by orchestrating builds, caching result...
43 posts tagged with “TypeScript”
As your project grows from one app to multiple apps sharing packages, a monorepo becomes the natural architecture. Turborepo makes monorepos fast and manageable by orchestrating builds, caching result...
Drizzle ORM is a TypeScriptfirst database toolkit that generates SQL you can actually read. Unlike Prisma (which has its own query engine) or TypeORM (which uses decorators), Drizzle maps directly to...
Continuous Integration and Continuous Deployment (CI/CD) automates the journey from code push to production. GitHub Actions makes this accessible with YAMLbased workflows that run on every commit, PR,...
Wallet integration is the front door of any web3 application. Users connect their wallet, sign transactions, and interact with smart contracts — all through your frontend. Two libraries dominate: ethe...
Ethereum processes about 15 transactions per second. Visa handles 65,000. That gap is why Layer 2 solutions exist — they execute transactions off the main chain while inheriting its security guarantee...
A Decentralized Autonomous Organization (DAO) replaces traditional corporate governance with smart contracts. Token holders vote on proposals, and the code executes the outcome. No board of directors,...
Smart contracts are selfexecuting programs that live on a blockchain. Once deployed, they can't be modified — every function call is a transaction, and every state change is permanent. That's both the...
If you're a frontend developer who's never touched Docker, you're not alone. But as fullstack development blurs the lines, understanding containers is becoming essential — not just for deployment, but...
A welldesigned GraphQL schema is the foundation of a maintainable API. Unlike REST, where endpoints evolve independently, your schema is a contract — every type, field, and argument is part of a publi...
The App Router in Next.js is a groundup rethink of routing, layouts, and data fetching. If you're coming from the Pages Router, some conventions will feel familiar, but the underlying model is fundame...
Runtime type checking has always been a pain point in TypeScript projects. You write beautiful interfaces, but the moment data crosses a boundary — an API request, a database row, a JSON file — all be...
The core idea behind an LLM inference gateway is deceptively simple: intercept LLM API calls, forward them transparently, and capture data along the way. Implementing it cleanly took more thought than...
I've been building with Model Context Protocol since around early 2025, first integrating tools for an AI agent security platform, then building a multiMCP gateway. Here's where I actually stand after...
Everyone talks about prompts. The more I build on top of LLMs, the more I think context management is actually the harder and more important problem. What I mean by context management A language model...
We were burning through LLM API budget faster than expected. After a few weeks of profiling and experiments, we got costs down by about 20%. Here's what actually worked versus what sounded good in the...
We hit about 200k daily active users on our platform at peak. Most of the stack held up fine. Kafka was where we learned the most. Here's what I wish I'd known before we got there. Partition count mat...
Before I joined my current company, I had exactly zero production Solidity experience. I'd read the docs, deployed a toy contract on a testnet years ago, and that was it. Three months in, I've shipped...
Disclaimer: this is a reflection, not a complaint. A year and a half goes by faster than you'd think. When I joined, I was still fairly new to the kind of scale that a big tech company brings — hundre...
I've been writing C professionally for about a year now on the backend of some ad serving systems, while also writing TypeScript on the frontend. Switching between the two throughout the day is intere...
Running A/B tests was never something I thought I'd be doing this much. But at my current gig, we ship new experiments almost every week. After doing this for about a year, I've picked up a few things...

Disclaimer: this post is all about my personal experience, only representing my point of view, take it with a grain of salt. About three years ago, I was graduating from college with a CS degree. Drea...
Just another day, I was making memes on reddit, and writing code in the interval. It suddenly struck me, why can't I do both at the same time? Making memes inside code is totally possible, just make a...

Today we are going to try to sort 1 billion numbers. To be exact, they are 1 billion 32bit signed integers. Which have a size of around 4GB. Loading all of them into memory at once is possible, but no...

Intro Remember those days when your school system suck so much that you can never pick the course you want? Well, those days are no more. After learning how to design a high concurrency student course...

Every 60 seconds passed in Africa, a new javascript library is created. There are a plethora of js libraries out there, and today I made another one. What Recently, I need to build some function revol...

Yesterday I built an android app in 2 hours with without even knowing how to write in before starting to work on it. Granted, the app is really simple and I've written some demo app at around 2014 whe...
Typescript is all fun and games until you want some behaviour based on runtime values, recently I encountered a tricky problem: How do I type a function's return type based on the parameter value? I k...

About a year ago I wrote a guide on how to migrate to typescript from javascript on node.js and it got more than 7k views. I did not have much knowledge on javascript nor typescript at the time and mi...

Recoil is a hot new state management tool from Facebook that handles the state sharing problem gracefully with a minimal API. I recommend everyone check it out. It's an amazing tool that feels very re...

What is a design pattern Design pattern is a method of solving specific problems through definition, use, and testing. It is a universal and reusable solution proposed for the repetitive problems in s...

After a day of diligently copying from Stackoverflow and Google searches, you finally ready to build that 10GB Frankenstein project. You type into the console then went home and enjoy the rest of your...

Recently I've migrated one of my personal projects from Javascript to Typescript. The reason for migrating will not be covered here, since it's more of a personal choice. This guide is for those who k...

Problem Recently when writing a project of mine, I've written some javascript like this: I'd really like some syntax like this: Turned out there's this called that goes like: and it's supported by all...

Disclaimer: the mentioned in this article is limited to admiration of a singer at the level of art, which means I appreciate their songs and other artworks and that's it. It's been a long time since I...
By learning computer networks, I've gather some most useful knowledge and put them here. What is a threeway handshake? The first handshake: Client sets SYN to 1, randomly generates an initial sequence...

What is the difference between a process and a thread? Process (Process) is the basic unit of system resource allocation and scheduling, and thread (Thread) is the basic unit of CPU scheduling and dis...

What is a Python generator? generator, there are two ways to generate generator objects: one is to add parentheses to the list generator: One is to include the py def fib(max): n, a, b = 0, 0, 1 while...

What are the concepts and characteristics of transactions? Concept: Transaction is a sequence of operations, an indivisible unit of work, starting with BEGIN TRANSACTION and ending with ROLLBACK/COMMI...
Git Common Commands Push to the dev branch of the remote warehouse: After commit, a small bug was changed, but you don't want to add a commit, you can use: git pushgit pulltouch .gitignoregit tag v1.0...

第二章 1. 2.1 We mentioned in Section 2.8 that some of the primitive system data types are defined in more than one header. For example, in FreeBSD 8.0, sizet is defined in 29 different headers. Because...

闲来无聊,想学习一个,提高一下自身的知识水平,据说Unix方面的神书主要有两本,分别为 Advanced Programming in the Unix Environment 和 Unix network programming 均为W. Richard Stevens所著,那么,闲话不多说,开始读书吧。 第一章 被誉为神书总是有道理的,从第一章就可以看出来,本书的作者显然不像贝尔实验室中的大触...

环境搭建 鉴于我使用的是OSX系统,那么只需要把下的这一行取消注释,即可使用PHP了 可以在自己的下放一个这样的PHP页面检测是否成功, 如果成功出现PHP相关的信息,则说明PHP启用成功 基础语法 本文建立在你已有 等传统语言基础,并且知道数据库是什么的前提之下 与完全相同的部分被省去,仅讨论不同部分。 首先 PHP 是服务端语言,和系的 系的 对应 主要用作动态页面显示,服务端操作等,由于其完...

实验环境 硬件环境 处理器: i55257U 2.72.9GHz 内存: 8 GB 1867MHz DDR3 硬盘: APPLE SSD SM0 256G 软件环境 操作系统: OSX 10.11.4 DBMS版本: MySQL 5.7.12 Community Server (GPL) DBMS图形界面: MySQL Workbench 6.3 实验内容 基本表 基本表的定义 语法 定义基本表的...