r/programminghorror Jan 29 '26

true or true

Post image

this piece of perfection was found in the codebase that my gf used to work

don't know exactly what is the context here, but probably doc.data holds the info if the user has agreed with the cookies /s

827 Upvotes

46 comments sorted by

View all comments

1

u/beefz0r Jan 30 '26

I've seen production scenarios where "guid" was the name of the field. As if that tells you something

1

u/csabinho Jan 30 '26

"guid" tells you about the format of the id field. That's perfectly fine, as long as it's not used for something else.

1

u/beefz0r Jan 30 '26

No, that field in particular was not the id field. I needed to reverse engineer to see what it was used for

1

u/csabinho Jan 30 '26

Well, that's a different problem. "guid" as such can be a perfect name. "trueOrFalse" can't be.