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 77
2024 3
2023 11
2022 13
2020 15
More

Categories

PHP Laravel Testing DevOps Frontend AI Database Tools Python DevTools

Tags

Testing Laravel Php Claude Code Typescript Ai-Agent JavaScript Python PHPUnit Sqlite Composer Ai Linux Prompt-Caching Vitest AWS Blade Cloudflare Developer-Tools Devops
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
Featured image of post Why AI Agents Need Good Tests More Than Humans Do: The Agent-Friendly Properties of Fake + MSW
Testing

Why AI Agents Need Good Tests More Than Humans Do: The Agent-Friendly Properties of Fake + MSW

The three-article series on Fake + MSW + shared test infrastructure helps AI agents like Claude Code even more than humans. Five concrete benefits: fast feedback, trustworthy signals, imitable patterns, safe refactors, and context efficiency.

2026 年 4 月 20 日
正體中文
Testing Claude Code Ai
Featured image of post Shared HTTP Mocks Across a Monorepo: When Fakes Aren't the Right Tool
Testing

Shared HTTP Mocks Across a Monorepo: When Fakes Aren't the Right Tool

The previous two posts covered Fakes for internal services — but external HTTP APIs don't fit that pattern. This post shows how to share HTTP mocks across frontend and backend in a monorepo using MSW / msw-fetch-mock, complementing the Fake approach.

2026 年 4 月 20 日
正體中文
Testing MSW Vitest Typescript Monorepo
Featured image of post Shared Fakes Across a Monorepo: One Test Double from Frontend to Backend
Testing

Shared Fakes Across a Monorepo: One Test Double from Frontend to Backend

Writing separate mocks for frontend, backend, and business logic in a monorepo is duplicated effort and produces inconsistent behavior. This post shows how to design shared Fakes so one test double works from React components to API routes to services.

2026 年 4 月 20 日
正體中文
Testing Vitest Typescript Monorepo
Featured image of post DI + Fake + in-memory: Writing Frontend Tests That Survive Refactors
Testing

DI + Fake + in-memory: Writing Frontend Tests That Survive Refactors

A three-part testing approach combining dependency injection, Fakes, and in-memory implementations. Learn why Fakes beat Mocks for maintenance and how to write reusable, trustworthy in-memory Fakes with FakeStorageService as a worked example.

2026 年 4 月 20 日
正體中文
Testing Vitest Typescript
1 2 3 4 5 6 12
© 2020 - 2026 recca0120 Tech Notes
recca0120 on GitHub
Built with Hugo
Theme Stack designed by Jimmy