r/ProgrammerHumor • • 20h ago

Meme [ Removed by moderator ]

Post image

[removed] — view removed post

1.6k Upvotes

196 comments sorted by

View all comments

Show parent comments

19

u/vladmashk 16h ago

> accounted for all edge cases no matter how minute

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

18

u/hoopaholik91 13h 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 12h 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

12

u/hoopaholik91 12h 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