Code Mala Tang
Author

Code Mala Tang

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

468
Articles
0
Likes
1.7k
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 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.

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

CollectionData StructuresTutorial
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
Code Mala Tang
Code Mala Tang
Nov 5, 2025 · Backend Development

How to Build a Production-Ready Async LLM API with FastAPI

Learn how to design and deploy a high‑performance, production‑grade LLM API using FastAPI, covering async routing, type‑safe Pydantic models, streaming via SSE/WebSockets, middleware, caching, rate limiting, observability, retries, and cost‑control strategies for robust AI services.

AsyncFastAPILLM
0 likes · 12 min read
How to Build a Production-Ready Async LLM API with FastAPI
Code Mala Tang
Code Mala Tang
Nov 3, 2025 · Fundamentals

When to Use [] vs list() in Python: Performance, Readability, and Pitfalls

This article compares Python's literal [] and the list() constructor, examining their speed differences, readability implications, default‑argument pitfalls, object identity, and appropriate use cases such as creating empty lists, converting iterables, and avoiding mutable default parameters.

ListPerformancePython
0 likes · 8 min read
When to Use [] vs list() in Python: Performance, Readability, and Pitfalls
Code Mala Tang
Code Mala Tang
Nov 2, 2025 · Backend Development

5 Essential Python CLI Tools to Supercharge API, Monitoring & Data Tasks

Discover five powerful Python command-line utilities—httpie for readable API calls, glances for real-time system monitoring, rich-cli for colorful output, howdoi for instant Stack Overflow answers, and csvkit for advanced CSV manipulation—each with installation steps and practical examples to streamline your development workflow.

AutomationCLIDevelopment
0 likes · 5 min read
5 Essential Python CLI Tools to Supercharge API, Monitoring & Data Tasks