Avatar 💻

recca0120 Tech Notes

Software Developer / Tech Notes

  1. Home
  2. Archives
  3. Categories
  4. Tags
  5. Search
  6. About
    1. Dark Mode

Archives

2026 71
2024 3
2023 11
2022 13
2020 15
More

Categories

PHP Laravel Testing DevOps Frontend Database AI Tools Python MacOS

Tags

Testing Laravel Php Typescript Claude-Code Javascript Ai-Agent PHPUnit Python SQLite Composer Linux Vitest Aws Blade Cloudflare Developer-Tools Devops Docker Guzzle
Featured image of post Find Dead Code with Knip: The Blind Spots ESLint and depcheck Miss
Testing

Find Dead Code with Knip: The Blind Spots ESLint and depcheck Miss

Introducing Knip, a dead code detection tool for JavaScript/TypeScript projects. Learn why ESLint and depcheck each have blind spots, and how Knip uses a full module graph to find unused files, exports, and dependencies in one pass.

2026 年 5 月 2 日
正體中文
Node.js Typescript
Featured image of post vitest-fail-on-console: Stop Ignoring console.error in Your Tests
Testing

vitest-fail-on-console: Stop Ignoring console.error in Your Tests

Introducing vitest-fail-on-console — why console.warn/error appearing silently in tests is a code smell, and how this package forces you to deal with it.

2026 年 5 月 2 日
正體中文
Testing Vitest Node.js
Featured image of post Testing a Filesystem Service with memfs + FakeWatchService: No Disk Required
Testing

Testing a Filesystem Service with memfs + FakeWatchService: No Disk Required

A deep dive into testing a filesystem service using memfs to replace fs and a hand-written Fake to replace chokidar, making filesystem tests fast, deterministic, and security-aware.

2026 年 4 月 28 日
正體中文
Testing Vitest Node.js
Featured image of post How to Add Old Models to Claude Code /model Picker: 3 Methods Tested
AI

How to Add Old Models to Claude Code /model Picker: 3 Methods Tested

After Opus 4.7 auto-upgrade, the old version vanished from /model. Tested availableModels, modelOverrides, and ANTHROPIC_CUSTOM_MODEL_OPTION — with pitfalls and GitHub community discussion.

2026 年 4 月 27 日
正體中文
Claude-Code Cost-Optimization
Featured image of post I Audited 3 Months of Claude Code Billing — Most Community Cost-Saving Tips Don't Work
AI

I Audited 3 Months of Claude Code Billing — Most Community Cost-Saving Tips Don't Work

$127K equivalent cost, 127K turns, four models, three months. After turning myself into a dataset, "long sessions are the culprit" and "too many skills" were debunked by data. Only two levers actually worked.

2026 年 4 月 26 日
正體中文
Claude-Code Prompt-Caching Ai-Agent Cost-Optimization
Featured image of post 12 More Days Scanned: Claude Code Sub-Agent Cache TTL Has Been 100% 5m for 17 Straight Days — This Isn't a Regression, It's the New Default
AI

12 More Days Scanned: Claude Code Sub-Agent Cache TTL Has Been 100% 5m for 17 Straight Days — This Isn't a Regression, It's the New Default

On 4/14 I reported 5 days of sub-agent 100% 5m and left it at "monitoring." Today 4/26 it's 17 straight days, 15,727 API calls, 0 1h writes. Anthropic closed the main issue without resolution. The community is on fire.

2026 年 4 月 26 日
正體中文
Claude-Code Prompt-Caching Ai-Agent Python
Featured image of post Node.js spawn stdout Gets Truncated: Compared 6 Fixes, Only the File Trick Works
DevOps

Node.js spawn stdout Gets Truncated: Compared 6 Fixes, Only the File Trick Works

When spawning a high-output CLI in Node.js, the last few KB vanish on process.exit(). After comparing 6 solutions, the only reliable cross-platform stdlib fix is piping the child stdout fd to a file.

2026 年 4 月 26 日
正體中文
Node.js Stdio Spawn
Featured image of post From "Functional" to "Stunning": A Walkthrough of web-design-skill
Frontend

From "Functional" to "Stunning": A Walkthrough of web-design-skill

A walkthrough of ConardLi/web-design-skill: anti-cliché blocklist, oklch colors, declared design systems, and a v0 draft workflow that rescues AI-generated pages from generic aesthetics.

2026 年 4 月 25 日
正體中文
Claude-Code Ai-Agent Design Oklch
Featured image of post MinerU in Practice: Turning PDFs into RAG-Ready Markdown
AI

MinerU in Practice: Turning PDFs into RAG-Ready Markdown

Feeding PDFs to LLMs breaks formulas, tables, and multi-column layouts. I ran MinerU 2.5 on an academic PDF — formulas became LaTeX, tables became HTML, reading order preserved, and it runs on CPU.

2026 年 4 月 24 日
正體中文
MinerU PDF RAG OCR LLM
Featured image of post 3 Things React Compiler Won't Auto-Memo: From 512ms Down to 6ms
Frontend

3 Things React Compiler Won't Auto-Memo: From 512ms Down to 6ms

I thought React Compiler meant no more manual memo. Then tab-switch took 512ms. Three compiler blind spots — child component boundaries, prop identity intent, and setInterval animation state — with extra everyday examples.

2026 年 4 月 21 日
正體中文
React React-Compiler Performance Profiler Typescript
1 2 3 4 5 12
© 2020 - 2026 recca0120 Tech Notes
recca0120 on GitHub
Built with Hugo
Theme Stack designed by Jimmy