1. Still Writing 35 Lines to Hold Two Values? Java Records A Money class with a constructor, two getters, equals, hashCode and toString is 35 lines, and none of it is your logic. Since Java 16, a record does it in one line. You get a const 10/17 02:02 ♡
2. Your Test Charged a Real Card? Dependency Injection Fixes It A class that builds its own Stripe gateway with `new` can't be swapped, or tested without charging a real card. The fix: take a PaymentGateway interface in the constructor, so you 10/15 23:04 ♡
3. Why Claude Code "Forgets" (and How to Manage Context) Context is everything Claude can see right now, held in one context window with a limit. Before you type, the system prompt, your CLAUDE.md, tool names and skill descriptions are a 10/14 23:03 ♡
4. Hundreds of Lines on the Wrong Assumption? Use Plan Mode Claude didn't write bad code. Nobody checked the plan. Press Shift+Tab until the status bar says plan mode on (or launch with --permission-mode plan), and Claude reads and explores 10/13 02:02 ♡
5. What Happens to Request 201? Java Virtual Threads Explained A platform thread holds an OS thread for its whole life, so we keep a pool, and Tomcat's default is 200. When 200 requests are blocked waiting on the database, request 201 waits. V 10/11 23:02 ♡
6. Make Claude Code Run Your Tests Every Time: Hooks An instruction is a request. A hook is a guarantee: a shell command that runs automatically at a point in Claude Code's lifecycle. Add a PostToolUse hook in settings.json with the 10/11 02:02 ♡
7. You Put It in a HashSet. Now You Can't Find It. You add an Email to a HashSet, check for the same address, and get false. A HashSet is a row of buckets: hashCode picks the bucket, and equals compares inside it. Override equals w 10/09 23:03 ♡
8. Stop Repeating Yourself to Claude Code: Use CLAUDE.md Telling Claude Code the same thing every session? CLAUDE.md is a file it loads at the start of every session. Run /init and Claude scans your project and writes a starter file, the 10/09 02:03 ♡
9. 100 Orders, 101 Queries: The N+1 Problem A page lists 100 orders: 1 query loads the orders, and then each order.getItems() in the loop fires another query, because @OneToMany items are lazy by default. That's 101 queries, 10/07 23:05 ♡
10. What Is MCP? Plug Tools Into Claude Code Claude Code can read your repo, but what about your database, issue tracker or docs? The Model Context Protocol is an open-source standard for connecting AI apps to tools and data. 10/07 02:03 ♡