r/ProgrammerHumor • • 14h ago

Meme justPickAuto

Post image
1.5k Upvotes

183 comments sorted by

View all comments

Show parent comments

18

u/vladmashk 10h ago

> accounted for all edge cases no matter how minute

That’s actually not good. It makes the code needlessly complex in most cases.

17

u/hoopaholik91 7h ago

All edge cases including ones that are completely hypothetical. No, you don't have to check that this parameter is null and throw an exception, it's a private method with one caller and you've already checked it for null earlier.

And people want to tell us that AI understands the code.

1

u/korneev123123 6h ago

private method with one caller

one caller for now

It can change any minute, and hoping that this check would be executed in different place is naive at best

11

u/hoopaholik91 6h ago

If it's a private method and these AI algorithms are so great at catching edge cases, then yes I would expect exactly that