
When comparing to booleans, we perform magic castings and get unexpected results. TL;DR: Don't compare against true. Either you are true, or false or you shouldn't compare Problems Hidden castings The least surprise principle violation. Fail Fas...
Software Engineer
I’m a senior software engineer loving clean code, and declarative designs. S.O.L.I.D. and agile methodologies fan.
Markdown supported · ⌘↵ to post
No responses yet.