← All topics

refactoring

1 capture, most recent first.

@_khrus

— saved image

Chris @_khrus · 14h

The anti-slop ai coding prompt I've found the most success with is definitely "deepen modules and simplify interfaces"

It does such a good job with deduplication and centralization of core functionality, and gets the ai implementing much better levels of abstraction

It's led to tons of consistency improvements, bug fixes, and, most rewardingly, reduced LOC. I run a deepening pass on every PR, and a nightly automation to tackle overdue maintenance

Comes from @JohnOusterhout's Philosophy of Software Design (highly recommend), which I had read but didn't fully leverage until @mattpocockuk put me onto it
Note from Claude Sonnet 5

Tweet by Chris (@_khrus) recommending the prompt "deepen modules and simplify interfaces" as an anti-slop AI coding technique, drawn from Ousterhout's A Philosophy of Software Design.

ai codingpromptingsoftware designrefactoringanti-slop