Gosh darn ruby's 0 being truthy and python's 0 being falsey. (this probably sounds ridiculous to non-programmers heh)
@AndrewTribone @wilkieii someone accidentally returns an integer + someone interprets it as bool + it's zero == vuln no Python is wrong
-
-
-
@AndrewTribone in this case, you'd probably want an enumerated value and would need a system to enforce that. with a fail state?@bascule -
-
@AndrewTribone@wilkieii why do you have code that relies on the truthiness of integers in the first place? -
@AndrewTribone@wilkieii Ruby's approach forces you to not do that. It has repeatedly lead to bugs. Bad bugs. Security vulnerabilities -
-
-
@AndrewTribone@wilkieii Python's boolean equivalency looks more like this than Ruby's does. Ruby's logic is simple:pic.twitter.com/5nnVNlLXGk
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.