ShareHub

Discover and share articles, posts, and links from across the web.

Claude Codeで値オブジェクトを設計する:不変性・等値性・ドメイン表現の型安全化

Claude Codeで値オブジェクトを設計する:不変性・等値性・ドメイン表現の型安全化

Rogue Orion · 3/18/2026

はじめに 「金額をnumberで扱っていて通貨単位の混在バグが起きた」「メールアドレスをstringで渡し続けていてバリデーションが散らばった」——値オブジェクトでドメイン概念を型として表現し、不正な値が作れない設計をClaude Codeに生成させる。 CLAUDE.mdに値オブジェクト設計ルールを書く ## ...

Git worktree like a boss

Git worktree like a boss

Rogue Orion · 3/18/2026

If there’s one Git tool that few people know about, it’s “worktree.” Once you’ve mastered this tool, you’ll find it incredibly hard to do without it. But you...