Skip to content
Code Farmer Manor Chronicle
Author

Code Farmer Manor Chronicle

A heart like drifting clouds, ever at ease; a mind like flowing water, free to roam.

36
Articles
0
Likes
164
Views
0
Comments
Recent Articles

Latest from Code Farmer Manor Chronicle

36 recent articles
Code Farmer Manor Chronicle
Code Farmer Manor Chronicle
Oct 14, 2026 · Frontend Development

Enforce Code Standards at Commit with husky + lint-staged

This article explains how to use husky and lint-staged to automatically run ESLint and Prettier on staged files before each Git commit, preventing non-compliant code from entering the repository, with step-by-step setup for husky v9, configuration details, common pitfalls, and the complete commit workflow.

code qualitycommit lintingeslint
0 likes · 8 min read
Enforce Code Standards at Commit with husky + lint-staged
Code Farmer Manor Chronicle
Code Farmer Manor Chronicle
Oct 13, 2026 · Frontend Development

ESLint + Prettier Config Deep Dive: Enforce Code Standards in Three Steps

This guide clarifies the distinct roles of ESLint (code quality) and Prettier (code formatting), walks through minimal installation, configuration of .eslintrc and .prettierrc, resolves rule conflicts with eslint-config-prettier, adds npm scripts for linting and formatting, and lists common pitfalls with solutions.

Configurationcode formattingcode quality
0 likes · 8 min read
ESLint + Prettier Config Deep Dive: Enforce Code Standards in Three Steps
Code Farmer Manor Chronicle
Code Farmer Manor Chronicle
Oct 12, 2026 · Frontend Development

JavaScript Event Loop & Async Programming: Promise & async/await from Theory to Practice

This article explains JavaScript's single-threaded event loop model, detailing microtask and macrotask queues, Promise chaining, async/await mechanics, common pitfalls, and practical concurrency control patterns with code examples. It covers classic output prediction exercises, Promise.all/race/allSettled/any usage, async/await error handling, loop await traps, and a reusable limited-concurrency pool implementation for batch requests.

Event LoopJavaScriptMacrotasks
0 likes · 12 min read
JavaScript Event Loop & Async Programming: Promise & async/await from Theory to Practice
Code Farmer Manor Chronicle
Code Farmer Manor Chronicle
Oct 11, 2026 · Frontend Development

ES6+ Core Features Cheat Sheet: Destructuring, Arrow Functions, Modules & Array Methods

A practical cheat sheet grouping the 20+ most-used ES6+ features by daily coding scenarios — scope declarations, template strings, destructuring, arrow functions, spread operator, optional chaining, nullish coalescing, Map/Set, modern array methods, and dynamic imports — with code examples, common pitfalls, and decision guidelines.

Array MethodsArrow FunctionsDestructuring
0 likes · 12 min read
ES6+ Core Features Cheat Sheet: Destructuring, Arrow Functions, Modules & Array Methods
Code Farmer Manor Chronicle
Code Farmer Manor Chronicle
Oct 10, 2026 · Frontend Development

Debounce vs Throttle: Practical Guide for High-Frequency Events

This article explains the core differences between debounce and throttle, provides hand-written implementations for both including immediate-execute and cancellable versions, compares timestamp vs timer-based throttling, maps each technique to common high-frequency scenarios like search suggestions and scroll loading, and demonstrates Vue 3 integration using VueUse or custom composables with cleanup.

JavaScriptPerformance OptimizationVue 3
0 likes · 8 min read
Debounce vs Throttle: Practical Guide for High-Frequency Events
Code Farmer Manor Chronicle
Code Farmer Manor Chronicle
Oct 9, 2026 · Frontend Development

Master TypeScript Generics & Utility Types: From Basics to Production-Ready Patterns

This practical guide covers TypeScript generics, constraints, keyof, index access types, nine essential utility types (Partial, Pick, Omit, Record, ReturnType, etc.), conditional types with infer, and distributive conditional types, demonstrating real-world patterns for API responses, form handling, and permission mapping with executable code examples.

Conditional TypesGenericsIndex Access Types
0 likes · 13 min read
Master TypeScript Generics & Utility Types: From Basics to Production-Ready Patterns
Code Farmer Manor Chronicle
Code Farmer Manor Chronicle
Oct 7, 2026 · Backend Development

Mastering High-Concurrency Caching: Penetration, Breakdown, Avalanche & Hot Keys

This article explains four classic high-concurrency caching problems—cache penetration, breakdown, avalanche, and hot keys—their root causes, differences, and practical solutions including empty-value caching, Bloom filters, mutex locks, logical expiration, TTL jitter, multi-level caching, and cache-database consistency patterns.

Bloom FilterCache AvalancheCache Breakdown
0 likes · 12 min read
Mastering High-Concurrency Caching: Penetration, Breakdown, Avalanche & Hot Keys
Code Farmer Manor Chronicle
Code Farmer Manor Chronicle
Oct 6, 2026 · Databases

Chinese Domestic Databases: Three Generations Compared for Selection

This article compares five major Chinese domestic databases across three technical generations—traditional centralized (Dameng, Kingbase), open-source modified (openGauss), and self-developed distributed (OceanBase, TiDB)—detailing their kernel origins, compatibility targets, strengths, weaknesses, and a decision framework based on compliance requirements, existing workload, scale, and operational readiness.

DamengHTAPKingbase
0 likes · 9 min read
Chinese Domestic Databases: Three Generations Compared for Selection