314
Pure evil (lemmy.world)
submitted 1 year ago by [email protected] to c/[email protected]
top 14 comments
sorted by: hot top controversial new old
[-] [email protected] 56 points 1 year ago* (last edited 1 year ago)

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."

[-] [email protected] 18 points 1 year ago

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

[-] [email protected] 4 points 1 year ago

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

[-] [email protected] 4 points 1 year ago

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

[-] [email protected] 12 points 1 year ago* (last edited 1 year ago)

#DEFINE TRUE (__LINE__ % 100)

[-] [email protected] 5 points 1 year ago

The real Satan is always in the comments

[-] [email protected] 7 points 1 year ago

You're fucking diabolical

[-] [email protected] 5 points 1 year ago
[-] [email protected] 3 points 1 year ago

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

[-] [email protected] 5 points 1 year ago

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.

[-] [email protected] 1 points 1 year ago

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

[-] [email protected] 3 points 1 year ago

Go make a bunch of improvements to someone's github

[-] [email protected] 1 points 1 year ago* (last edited 1 year ago)

Should go and mess with that Google website drm thing if it's still active

[-] [email protected] 0 points 1 year ago

I would just delete it since js is better without semicolons

load more comments
view more: next ›
this post was submitted on 17 Jul 2023
314 points (93.4% liked)

Found Satan

1724 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