this post was submitted on 28 Oct 2024
505 points (98.3% liked)

Programming Humor

2612 readers
10 users here now

Related Communities [email protected] [email protected] [email protected] [email protected]

Other Programming Communities [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 10 points 1 week ago (2 children)

That's not even the worst part. What the fuck does a function named Compare_anything do? Does it return anything? It sounds like nothing but a side effect.

[–] [email protected] 11 points 1 week ago

Usually comparison functions are supposed to return an integer and are usually useful for sorting. However this one returns a bool so it's both useless and terribly named.

[–] [email protected] 7 points 1 week ago (1 children)

The unnecessary and confusing functions are horrible, yes, but I'd still say that the fact that they're wrong is the "worst" part.

[–] [email protected] 3 points 1 week ago

That's enough chit-chat, nerds. Back to work.

  • Management