r/programminghorror
•
u/Leonnee
•
Jun 12 '25
•
1
Javascript Javascript is filled with horror
2.4k
Upvotes
View all comments
Show parent comment
1
u/roughstonerollin Jun 12 '25
Bug: Wildly unexpected behavior
As an engineer, I wouldn't call something a bug unless it was a missed acceptance criteria on a shipped feature. As a product person, I would call anything that is wildly unexpected behavior and confuses 99% of users a bug. I agree with you that the team that created this decided this was an acceptable trade-off.
Native: By default, out of the box, does not require custom code to get to work. I understand there is a default comparator function under the hood that defaults the values to strings. The default comparator idea creates buggy behavior, wildly unexpected, and should not have been an acceptable trade-off in my view.