InStackademicbyKavindu Kokila (Kavi Castelo)·Apr 25Maximizing Distance on a Square: Turning Geometry into a Linear ProblemAt first glance, this problem looks geometric: points on the boundary of a square, Manhattan distances, and selecting a subset that stays…
InJavaScript in Plain EnglishbyKavindu Kokila (Kavi Castelo)·Jan 15Exploring the Quadrant Drift Cipher: An Interactive Encryption AdventureHey there! I’m Kavi Castelo, and I just open-sourced something I’m really excited about: the Quadrant Drift Cipher (QDC) Security Lab. It’s…
InStackademicbyKavindu Kokila (Kavi Castelo)·Nov 23, 2025Construct Target Array With Multiple Sums — A Deep Dive Into Reverse Math, Heaps, and Modulo…By KaviCastelo Algorithms • Data Structures • Math • TypeScript
Kavindu Kokila (Kavi Castelo)·Nov 20, 2025Track Your Total Medium Stats Automatically (Updated Script for 2025)If you’ve been writing on Medium for a while, you’ve probably noticed that Medium keeps changing the layout of the Stats page. Because of…
InJavaScript in Plain EnglishbyKavindu Kokila (Kavi Castelo)·Nov 19, 2025Data Stream Processing in TypeScript — A System Design Perspective with Real ExamplesModern backend systems increasingly rely on real-time data streams: log pipelines, fraud detection engines, analytics dashboards, IoT…
InJavaScript in Plain EnglishbyKavindu Kokila (Kavi Castelo)·Nov 18, 2025Beyond LRU & LFU: Modern Cache Design Strategies for High-Performance SystemsCaching isn’t just an optimization anymore — it’s a foundational requirement for modern distributed systems. In the previous article, we…
InJavaScript in Plain EnglishbyKavindu Kokila (Kavi Castelo)·Nov 18, 2025Designing High-Performance System Caches: A Practical Guide Using LRU & LFU (with TypeScript…Caching sits at the heart of almost every high-performance system you use daily — databases, browsers, CDNs, and even CPU pipelines. A…
Kavindu Kokila (Kavi Castelo)·Sep 24, 2025Progressively Enhancing Static Sites with Serverless FunctionsBuild dynamic power into your Astro site without breaking its static speed
InArtificial Intelligence in Plain EnglishbyKavindu Kokila (Kavi Castelo)·Sep 9, 2025Simulating Reality: Can We Build a World Controlled by Thought?Imagine stepping into a world where you don’t need a controller, a VR headset, or even a keyboard. You just think, and your character…
InJavaScript in Plain EnglishbyKavindu Kokila (Kavi Castelo)·Aug 29, 2025How to Build Your Own Result Type for Better Error Handling in TypeScriptThe Problem with try/catch