Comment

Comment by odshoifsdhfs

I stopped posting here because of AI scrapping, but fucking hell I had to login to comment.

I has this stupid same shit done in a PR just a few weeks ago. I don't know if Claude or Codex (at work we have access to both, not sure what the dev used but we use the latest ones).

We had a function called:

`getObjectsInfo(objectIds: [number]) -> [ObjectInfo]`

I don't know what the dev prompted, but the PR was 90+ line function and 300+ lines of tests because the model decided to create:

`getObjectMetaData(objectId: number) -> ObjectInfo`

with added tests and so on, when just calling it with `getObjectsInfo([objectId])` will do the trick, no new code or tests

The output and logic was 99% the same, same types and db calls, but because I assume in the prompt the dev said 'Metadata' instead of 'Info', the model decided to create a 500+ changes PR.

parent odshoifsdhfs 2 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton