One night, being tired and sleepy, I wrote something like this
if(a == true)
else if (a == false)
In the next morning, when I found this, I decided to leave this code on its place, because it was so embarrassing and stupid, so I monumented it in my code.
ohh... you missed a check for NULL 😂😂
If a can be true, false or null.
In that case the if statement could make sense :-)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.