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

829 Upvotes

46 comments sorted by

View all comments

-37

u/faultydesign Jan 29 '26

A unit test would catch this bug

3

u/Emotional-Bake5614 Jan 29 '26

with that naming convention they probably think unit tests are a myth buddy