Shane's Personal Blog

Gain wisdom at dawn; die with no regret at dusk.

  • Home
  • About Me
  • Portfolio
  • Favorite Quotes
  • Think Different
Wait, Even SELECT Starts a Transaction?—A Curious Tour of DB Locks, MVCC, and SQLAlchemy's 'Magic' Sessions
DatabasesPythonFastAPI

Wait, Even SELECT Starts a Transaction?—A Curious Tour of DB Locks, MVCC, and SQLAlchemy's 'Magic' Sessions

A step‑by‑step journey from 'I have no idea what a transaction really does' to 'I can reason about row‑level locks and auto‑begin like a pro,' using simple code, real‑life analogies, and plenty of aha‑moments.

Apr 21, 2025
3 minute read
Async SQLAlchemy Journey: From Confusion to Clarity
PythonFastAPISQLAlchemy

Async SQLAlchemy Journey: From Confusion to Clarity

Exploring the pitfalls and revelations of migrating from synchronous to async SQLAlchemy with FastAPI

Apr 12, 2025
6 minute read
Understanding CORS: A Developer's Journey from Confusion to Clarity
Web DevelopmentSecurityFrontend

Understanding CORS: A Developer's Journey from Confusion to Clarity

Demystifying Cross-Origin Resource Sharing (CORS) through a real developer's perspective - what it actually protects and why it matters

Apr 11, 2025
5 minute read
Understanding FastAPI Parameters: A Complete Guide
PythonWeb DevelopmentAPI Development

Understanding FastAPI Parameters: A Complete Guide

A friendly, comprehensive guide to FastAPI's parameter types, dependency injection, and special cases, with clear examples to help you build better APIs

Apr 7, 2025
4 minute read
How Does SvelteKit Actually Work? A Practical Guide to Its Lifecycle
SvelteKitJavaScriptWeb Development

How Does SvelteKit Actually Work? A Practical Guide to Its Lifecycle

Understand the complete lifecycle of a SvelteKit app, from initial load and hydration to navigation and client-side rendering, with common mistakes clarified.

Apr 3, 2025
4 minute read
Seeing Through Lao Tzu's Eyes: The Dual Nature of Reality
PhilosophyTaoismPersonal Growth

Seeing Through Lao Tzu's Eyes: The Dual Nature of Reality

Dual Perspective Viewing Reality: Presumption-free and functionally, and how this ancient wisdom applies to modern life.

Apr 1, 2025
4 minute read
Ring Attention Explained: How Modern LLMs Remember Long Contexts Without Losing Their Minds
Machine LearningLarge Language ModelsTransformersTechnical Deep Dives

Ring Attention Explained: How Modern LLMs Remember Long Contexts Without Losing Their Minds

A deep dive into Ring Attention—how models like Gemini and Claude handle long contexts using clever memory tricks like sliding windows, compressed memory, and selective token referencing.

Apr 1, 2025
4 minute read
Deep Dive into React: Understanding useEffect, useRef, useMemo, and useState with Real-World Examples
ReactFrontend DevelopmentWeb PerformanceJavaScriptProgrammingTechnical Writing

Deep Dive into React: Understanding useEffect, useRef, useMemo, and useState with Real-World Examples

Explore the intricacies of React hooks through practical scenarios and detailed explanations. Understand how to effectively use useEffect, useRef, useMemo, and useState for robust and performant React applications.

Mar 27, 2025
3 minute read
React Isn't a 60Hz Game Loop: Memoization, Rerenders, and How React Actually Works
ReactJavaScriptFrontend EngineeringPerformanceWeb DevelopmentBlog

React Isn't a 60Hz Game Loop: Memoization, Rerenders, and How React Actually Works

A deep, practical dive into React's rendering behavior, memoization, and event-driven design — what really happens under the hood and how to think like React.

Mar 27, 2025
3 minute read
Context Keeper: How Storing Long but Indexing Short Affects Retrival Accuracy
Natural Language ProcessingInformation RetrievalMachine Learning

Context Keeper: How Storing Long but Indexing Short Affects Retrival Accuracy

How breaking text into chunks can improve similarity detection for question pairs, outperforming traditional full-text embedding methods

Mar 16, 2025
3 minute read
1…789…11

Categories

Technology30Philosophy18Python17Fiction13Web Development12Psychology11Concurrency8Personal Development7Personal Growth7Software Development6Culture5Artificial Intelligence4

Tags

Python(15)Debugging(10)Confucius(9)Asyncio(8)Code Quality(7)Eastern Philosophy(7)Ancient Wisdom(6)Chinese Philosophy(6)Concurrency(6)FastAPI(6)Self-Improvement(6)SvelteKit(6)Docker(5)Personal Growth(5)Storytelling(5)

©2022–2026Shane (Xingeng) Zhang

All Rights Reserved