Code Mala Tang
Author

Code Mala Tang

Read source code together, write articles together, and enjoy spicy hot pot together.

451
Articles
0
Likes
1.4k
Views
0
Comments
Recent Articles

Latest from Code Mala Tang

100 recent articles max
Code Mala Tang
Code Mala Tang
Nov 16, 2025 · Frontend Development

How NavigateEvent.intercept() Simplifies SPA Routing and Improves Performance

This article explains how the new NavigateEvent API replaces scattered click, submit, and popstate listeners with a single, centralized navigation handler, showing practical code examples, interception logic, cancellation signals, scroll control, and when to adopt or avoid it in modern web apps.

InterceptJavaScriptNavigation API
0 likes · 9 min read
How NavigateEvent.intercept() Simplifies SPA Routing and Improves Performance
Code Mala Tang
Code Mala Tang
Nov 16, 2025 · Frontend Development

How to Build a Robust Speech‑to‑Text Feature in React with Tencent ASR

This article walks through the complete front‑end architecture and implementation details for integrating Tencent Cloud speech‑to‑text into a React app, covering token authentication, SDK initialization, event handling, cursor‑aware text insertion, character limits, permission handling, error management, and state management with MobX.

MobXReActTencent Cloud
0 likes · 11 min read
How to Build a Robust Speech‑to‑Text Feature in React with Tencent ASR
Code Mala Tang
Code Mala Tang
Nov 16, 2025 · Fundamentals

Master Python Sets: Creation, Operations, and Quick Reference Guide

This guide explains Python sets—unordered, mutable collections of unique hashable items—covering their key characteristics, creation methods, set comprehensions, core API for adding, removing, and testing membership, as well as set algebra operations, practical examples, limitations, and a quick reference table.

Data Structurescollectiontutorial
0 likes · 7 min read
Master Python Sets: Creation, Operations, and Quick Reference Guide
Code Mala Tang
Code Mala Tang
Nov 9, 2025 · Frontend Development

How to Customize Rotation Icons and Dynamic Cursors in Fabric.js

This tutorial shows how to initialize a Fabric.js canvas, replace the default rotation handle with a custom SVG icon, create a rotating cursor using data‑URL SVGs, and optimize performance by updating the cursor only at 15‑degree intervals.

CanvasFabric.jscustom rotation icon
0 likes · 16 min read
How to Customize Rotation Icons and Dynamic Cursors in Fabric.js
Code Mala Tang
Code Mala Tang
Nov 7, 2025 · Backend Development

Master Three‑Layer Caching in FastAPI: HTTP, In‑Memory, and Redis

This guide explains the three‑layer caching strategy—HTTP cache headers, in‑memory caching, and Redis—detailing when to use each layer, how to implement them with FastAPI, common pitfalls, performance benchmarks, and best‑practice patterns for production‑grade applications.

CachingHTTPMemory
0 likes · 17 min read
Master Three‑Layer Caching in FastAPI: HTTP, In‑Memory, and Redis
Code Mala Tang
Code Mala Tang
Nov 7, 2025 · Frontend Development

Smooth Canvas Drag & Zoom on Mobile Using Fabric.js and CSS Transform

To enable fluid dragging and zooming of a Fabric.js seat‑layout canvas on mobile, the author replaces costly canvas viewport transforms with CSS transform translate/scale, adds mouse and touch handlers, debounces scaling, disables object caching, caps offsets, and throttles events, achieving smooth performance across browsers.

CSS transformCanvasFabric.js
0 likes · 16 min read
Smooth Canvas Drag & Zoom on Mobile Using Fabric.js and CSS Transform
Code Mala Tang
Code Mala Tang
Nov 5, 2025 · Backend Development

How to Detect and Fix Memory Leaks in Long-Running Node.js Apps

Memory leaks can silently cripple long-running Node.js servers, but by understanding V8’s memory management, recognizing common leak patterns, and using tools like manual monitoring, Chrome DevTools snapshots, clinic.js or memwatch-next, developers can detect, diagnose, and fix leaks to keep performance stable.

Memory LeakV8
0 likes · 8 min read
How to Detect and Fix Memory Leaks in Long-Running Node.js Apps