Re:38% of bugs at Airbnb could have been prevented by using ...
by mrfusion on Sunday February 10, 2019 @09:31PM
(#19131625)
Can you explain that idea a bit more? Sounds interesting.
[ Parent
| on HN ]
Re:38% of bugs at Airbnb could have been prevented by using ...
by int_19h on Monday February 11, 2019 @12:06AM
(#19132212)
In JavaScript, "1"+2 is 12.
In Python, it's a TypeError.
Same goes for most other types. JS is generally happy to convert everything to everything, often via strings. So even utter nonsense, like multiplying a function by an array, still works (the result is NaN). Conversely, in Python, such implicit conversions are rarely in the play - the one you see most is int/float.