this post was submitted on 14 Aug 2025
182 points (95.5% liked)

Programmer Humor

25699 readers
1256 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] jbrains@sh.itjust.works 10 points 10 hours ago (1 children)

What if role is FILE_NOT_FOUND?!

[–] foxglove@lazysoci.al 12 points 9 hours ago (1 children)

if it's 'FILE_NOT_FOUND' then the string will be read as truthy and you will get 'User is admin' logged.

[–] bjoern_tantau@swg-empire.de 23 points 9 hours ago

Ackshually three equal signs check for type as well. So mere truthiness is not enough. It has to be exactly true.

Also, everyone knows FILE_NOT_FOUND isn't a string but a boolean value.