News for hackers. Stuff that matters.

good_regex

My experience is similar to this. I literally just had this interaction with Claude:

Me: Why do we have these static methods when the whole cobebase uses factories?

_claude refactors to use a factory_

Me: Claude why does this factory create two unrelated objects?

_Claude: you're right, they're unrelated they should be separate_

_proceeds to create extraneous factory_

Me: Claude we don't need a factory for the second object. Those kinds of objects aren't created with factories anywhere else in the codebase. We can just use it's constructor directly.

_Claude: you're right, the second factory is not needed_

Like, I'm probably just prompting badly but I definitely feel like I'm constantly having to course correct even on relatively minor details.

And Claude's ideas for higher-level or more complex features are sometimes way off course. And not because it's dumb per se, usually it's because it is missing key bits of context. Business context, technical context, whatever. Or it's overfitting the solution to one requirement that isn't that important.

That is true. Although a product person can still rely on other humans that understand the code. With AI taking over coding, no human will understand the code anymore.
Good to know, I didn't realize 5.x has that API available. Why it's only available in 5.x makes no since ES has had the API since at least 1.x