r/programminghorror
•
u/Leonnee
•
Jun 12 '25
•
1
Javascript Javascript is filled with horror
2.4k
Upvotes
View all comments
Show parent comment
4
u/arto64 Jun 12 '25
irb(main):001> [1, 2, "3", 4, "book"].sort
(irb):1:in `sort': comparison of Integer with String failed (ArgumentError)
What's wrong with this? This makes perfect sense.
You will miss errors in your business logic, because nothing will indicate that something is wrong.