Avatar 😃

Shane's Personal Blog

Gain wisdom at dawn; die with no regret at dusk. 朝闻道,夕死可矣

  1. About Me
  2. Home
  3. Search
  4. Archives
  5. Think Different
    1. Dark Mode

Archives

2025 47
2024 5

Categories

Python Technology Concurrency Philosophy Web Development Personal Development Psychology Software Development Artificial Intelligence JavaScript

Tags

Asyncio Python Debugging Concurrency AI Tools Confucius JavaScript SvelteKit Ancient Wisdom Chinese Philosophy
Featured image of post Understanding Graph-Based AI Agents: From Concept to Code
AI Development Agent Architecture Python

Understanding Graph-Based AI Agents: From Concept to Code

How graph-based approaches make AI agent workflows more manageable, resumable, and understandable - explained with kitchen analogies and practical PydanticAI examples

Apr 27, 2025
9 minute read
简体中文
Featured image of post Wait, Even SELECT Starts a Transaction?—A Curious Tour of DB Locks, MVCC, and SQLAlchemy's 'Magic' Sessions
Databases Python FastAPI

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
4 minute read
简体中文
Featured image of post Async SQLAlchemy Journey: From Confusion to Clarity
Python FastAPI SQLAlchemy

Async SQLAlchemy Journey: From Confusion to Clarity

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

Apr 12, 2025
8 minute read
简体中文
Featured image of post Understanding CORS: A Developer's Journey from Confusion to Clarity
Web Development Security Frontend

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
6 minute read
简体中文
Featured image of post Understanding FastAPI Parameters: A Complete Guide
Python Web Development API 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 07, 2025
7 minute read
简体中文
Featured image of post How Does SvelteKit Actually Work? A Practical Guide to Its Lifecycle
SvelteKit JavaScript Web 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 03, 2025
4 minute read
简体中文
Featured image of post Ring Attention Explained: How Modern LLMs Remember Long Contexts Without Losing Their Minds
Machine Learning Large Language Models Transformers Technical 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 01, 2025
4 minute read
简体中文
Featured image of post Seeing Through Lao Tzu's Eyes: The Dual Nature of Reality
Philosophy Taoism Personal 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 01, 2025
5 minute read
简体中文
Featured image of post Deep Dive into React: Understanding useEffect, useRef, useMemo, and useState with Real-World Examples
React Frontend Development Web Performance JavaScript Programming Technical 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
4 minute read
简体中文
Featured image of post React Isn’t a 60Hz Game Loop: Memoization, Rerenders, and How React Actually Works
React JavaScript Frontend Engineering Performance Web Development Blog

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
4 minute read
简体中文
1 2 3 4 … 6
© 2022 - 2025 Shane Zhang (张欣耕)