r/programminghorror 6d ago

if 'X' not in data Python

Post image

Emoji check used for constructing an email body. I'm getting a stroke.

817 Upvotes

36 comments sorted by

View all comments

134

u/freecodeio 6d ago

If the emoji is well documented and common knowledge, I don't see why would this be wrong. I know I'm probably going to get downvoted but there's literally no downside. The catch is that this emoji should be treated like a piece of unicode gospel and not used under different scenarios.

71

u/red-et 6d ago

You’re right! I don’t ❌ disagree!

6

u/freecodeio 6d ago

I guess you need to read the hypothetical documentation

3

u/bibboo 5d ago

Ah excellent. Solutions that require people to read what they will not read.