Skip to content
SparkTime, home

Tagged #testing

GuideTechnology

30 min read

Project 2: Move the Expense Tracker to PostgreSQL with JDBC

Take the Expense Tracker CLI and add a PostgreSQL repository behind the same interface: an idempotent schema, a transactional bulk import, a connection pool, one shared contract test for every implementation, a fat jar, and an honest review.

GuideTechnology

10 min read

Testing, Reviewing and Refactoring AI-Generated Code

AI-written code often passes AI-written tests, because both come from the same assumptions. This article shows how to write tests that check what the code should do, how to use AI as a second reviewer without relying on it, what to look for in AI-generated diffs, and how to refactor safely.

GuideTechnology

9 min read

How to Use AI to Debug Code Safely

Pasting an error into an assistant can solve a bug in a minute, or produce a patch that hides it. This article gives a safe debugging workflow: reproduce, share safely, ask for hypotheses, test them, review the fix, add a regression test, with a worked example and a list of dangerous 'fixes'.