Stop swallowing errors in try-catch blocks. Build safety utilities that preserve context, enable composition, and make errors type-safe. Real refactor from llm4s eliminated 47 try-catch blocks, fixed a streaming bug, and simplified code.
Stop typos from reaching production. Replace string constants with enums, add type classes for effect polymorphism, and let the compiler catch bugs. Real refactor from llm4s prevented message role typos and added type class infra.
Stop letting invalid errors exist. Build smart constructors that validate at creation time, eliminate boolean flags with traits, and simplify code through better abstractions. Real refactor from llm4s removed 263 lines and added structure.