10

tfw a true/false field in the database is set to char instead of boolean.

Comments
  • 0
    My former boss insisted on using string literals for all true/false comparisons, which led to some fun moments. Had to teach him about constants, foreach, and that you didn't have to create an instance of every class you write at the beginning of a script to globalize whenever you need it...
  • 1
    @Kaji dear god, im sorry
  • 0
    Egads! My condolences.
    You're in a good spot tho. I earned the reputation of 'wizard' when I introduced my coworkers to bitwise operators, fields and masking.

    You can do the same thing here!
Add Comment