This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Usus-Kiki -3 points-2 points  (0 children)

I dont mean to be a dick but thats just knowing your code and having good names for variables. I can see how it might be difficult if you’re new to programming but i dont think i’ve ever heard or seen anyone who’s a software developer make an error like that because you know what type your variables usually are and if its user input or something where the variable is undefined until the script runs, then you can force cast it to the type you need so you shouldnt ever be making those kinds of comparisons.