this post was submitted on 17 Jul 2023
4 points (100.0% liked)

Found Satan

1726 readers
1 users here now

Individuals displaying mischievous, spiteful, or teasing behavior in a playful manner, rather than engaging in genuinely cruel actions.

founded 1 year ago
MODERATORS
 
top 10 comments
sorted by: hot top controversial new old
[–] Swedneck@discuss.tchncs.de 1 points 1 year ago (1 children)

Don't languages generally tell you about potential look-alike characters specifically for this reason?

[–] Monsieur@lemmy.world 1 points 1 year ago (1 children)

The code editor I use would say something like syntax error ';', expected ';' and underline the character in red. That might lead to some head scratching as apparently the Greek character is literally the same, but with a different Unicode value.

[–] Swedneck@discuss.tchncs.de 1 points 1 year ago

I'm talking about when you try to run/compile code, not in the editor.

[–] pineapplelover@lemm.ee 1 points 1 year ago

You're fucking diabolical

[–] perviouslyiner@lemm.ee 1 points 1 year ago* (last edited 1 year ago) (1 children)

#DEFINE TRUE (__LINE__ % 100)

The real Satan is always in the comments

[–] rtxn@lemmy.world 1 points 1 year ago* (last edited 1 year ago) (2 children)

How this plays out in reality:

"This line at this character is giving me a syntax error... I'll just delete and rewrite it, maybe there's a stray whitespace. Oh, it runs now. Weird. Whatever."

[–] JollyTheRancher@lemmy.world 1 points 1 year ago (1 children)

While I imagine this is typically true, I once spent a couple hours on something like this.

[–] tdawg@lemmy.world 1 points 1 year ago

spoken like someone who hasn't been bitten by codepoints before

[–] julianwgs@discuss.tchncs.de 1 points 1 year ago

Or you would spot the changed line in git immediately and revert it