logoalt Hacker News

UncleMeatlast Tuesday at 10:15 PM3 repliesview on HN

Isn't this a meaningless example? Formatters already exist. Generating code that doesn't need to be formatted is exactly the same as generating code and then formatting it.

I care about the norms in my codebase that can't be automatically enforced by machine. How is state managed? How are end-to-end tests written to minimize change detectors? When is it appropriate to log something?


Replies

etermlast Tuesday at 11:30 PM

Here's an example:

We have some tests in "GIVEN WHEN THEN" style, and others in other styles. Opus will try to match each style of testing by the project it is in by reading adjacent tests.

gck1last Wednesday at 8:58 PM

The second part is what I'd also like to have.

But I think it should be doable. You can tell it how YOU want the state to be managed and then have it write a custom "linter" that makes the check deterministic. I haven't tried this myself, but claude did create some custom clippy scripts in rust when I wanted to enforce something that isn't automatically enforced by anything out there.

show 1 reply
scotty79last Wednesday at 5:24 PM

Memes write themselves.

"AI has X"

"We have X at home"

"X at home: x"