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
Oct 26, 2025 · Databases

Why Parameterized Queries Supercharge SQL Performance (And Prevent Injection)

This article explains how using bound (parameterized) queries in SQL Server improves performance by enabling execution plan reuse, reducing compilation overhead and memory usage, while also preventing SQL injection, and discusses potential pitfalls like parameter sniffing and how to mitigate them with OPTION (RECOMPILE).

Parameterized QueriesPerformance optimizationSQL
0 likes · 6 min read
Why Parameterized Queries Supercharge SQL Performance (And Prevent Injection)
Code Mala Tang
Code Mala Tang
Oct 26, 2025 · Backend Development

Auto‑Clean Python Dependencies with pipreqs and Pre‑Commit

Learn how to automatically remove unused Python packages from your virtual environment by generating an accurate requirements.txt with pipreqs and enforcing clean dependencies on every commit using a pre‑commit hook, improving build size, speed, and security.

dependency-cleanuppipreqspre-commit
0 likes · 5 min read
Auto‑Clean Python Dependencies with pipreqs and Pre‑Commit
Code Mala Tang
Code Mala Tang
Oct 19, 2025 · Fundamentals

Why Python’s += Operator Isn’t Just Sugar: Mutable vs Immutable Secrets

Python’s augmented assignment operators like += look simple, but their behavior varies dramatically between mutable and immutable objects, affecting performance and causing surprising bugs; this article explains the underlying data model, demonstrates with tuples, lists, and mixed structures, and reveals the hidden mechanics behind in‑place and object‑creation operations.

Data ModelImmutablePerformance
0 likes · 14 min read
Why Python’s += Operator Isn’t Just Sugar: Mutable vs Immutable Secrets
Code Mala Tang
Code Mala Tang
Oct 16, 2025 · Fundamentals

Unlock Zero‑Copy Performance in Python with memoryview

This article explains how Python's memoryview object eliminates costly data copies when slicing large binary or numeric arrays, offering zero‑copy views, reinterpretation via .cast(), and multi‑dimensional slicing, with practical code examples and guidance on when to use it.

Buffer ProtocolPerformancePython
0 likes · 11 min read
Unlock Zero‑Copy Performance in Python with memoryview
Code Mala Tang
Code Mala Tang
Oct 15, 2025 · Backend Development

Master Automatic Restarts for Node.js: From Nodemon to PM2 and Docker

Learn how to ensure your Node.js applications stay alive by configuring automatic restarts for both development and production environments, using tools like Nodemon, PM2, Docker restart policies, systemd, and advanced PM2 features such as clustering, log management, and crash handling.

DockerNode.jsProcess Management
0 likes · 14 min read
Master Automatic Restarts for Node.js: From Nodemon to PM2 and Docker
Code Mala Tang
Code Mala Tang
Oct 15, 2025 · Fundamentals

Master Python List Comprehensions: From Basics to Advanced Tricks

This article explains Python list comprehensions, comparing traditional for‑loop constructions with concise one‑line expressions, covering basic syntax, filtering, conditional transformations, performance benefits, and an introduction to generator expressions, all illustrated with clear code examples and diagrams.

PerformancePythoncoding
0 likes · 13 min read
Master Python List Comprehensions: From Basics to Advanced Tricks
Code Mala Tang
Code Mala Tang
Oct 14, 2025 · Fundamentals

Master Python 3.10's Structural Pattern Matching: From Basics to Advanced

This article introduces Python 3.10's powerful structural pattern matching, showing how the new match/case syntax replaces complex if/elif/else chains, supports pattern deconstruction, guards, type checks, and works with sequences, dictionaries, and objects to write clearer, safer, and more expressive code.

GuardsPattern MatchingPython
0 likes · 13 min read
Master Python 3.10's Structural Pattern Matching: From Basics to Advanced