this post was submitted on 22 Oct 2023
600 points (95.6% liked)

Programmer Humor

31800 readers
244 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 19 points 10 months ago (1 children)

They’re setting a variable to a function. Just use the original function. All thief does is obfuscate for literally no gain except character count.

[–] platypode 13 points 10 months ago (2 children)

I presumed it to be a standin for just directly using Math.max, since there's no nice way to show that in a valid code snippet

[–] [email protected] 7 points 10 months ago

well it's called Thief. They're stealing the function and making it look like they wrote it. hence max1.

[–] [email protected] 3 points 10 months ago

Yeah, that's my reading as well.