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 35
2024 5

Categories

Python Concurrency Philosophy Web Development Personal Development Psychology JavaScript Machine Learning Personal Growth Artificial Intelligence

Tags

Asyncio Concurrency Python Confucius Debugging FastAPI JavaScript Relationships Ancient Wisdom Chinese Philosophy
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
3 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
简体中文
Featured image of post Context Keeper: How Storing Long but Indexing Short Affects Retrival Accuracy
Natural Language Processing Information Retrieval Machine 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
7 minute read
简体中文
Featured image of post Beyond Intelligence: Confucius on Social Harmony and Hidden Meanings
Philosophy Eastern Thought Classical Literature

Beyond Intelligence: Confucius on Social Harmony and Hidden Meanings

A fresh look at Confucian philosophy revealing how concepts like wisdom (智) are about social relationships rather than intellect, and how poetry served as a vehicle for moral teachings.

Mar 12, 2025
3 minute read
简体中文
Featured image of post Within the Four Seas: Finding Brothers Everywhere
Philosophy Confucianism Cultural Understanding

Within the Four Seas: Finding Brothers Everywhere

Exploring a timeless Confucian teaching about universal brotherhood and how it applies to modern relationships across cultural boundaries.

Mar 11, 2025
3 minute read
简体中文
1 2 3 4
© 2022 - 2025 Shane Zhang (张欣耕)