620
Find yourself (lemmy.ml)
submitted 1 year ago by coja@lemmy.ml to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] auf@lemmy.ml 92 points 1 year ago

Thief way is actually the best among all of these imo, in terms of readability and efficiency.

[-] snowe@programming.dev 21 points 1 year ago

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@sh.itjust.works 11 points 1 year ago

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

[-] snowe@programming.dev 7 points 1 year ago

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

load more comments (1 replies)
load more comments (2 replies)
load more comments (15 replies)
this post was submitted on 22 Oct 2023
620 points (95.7% liked)

Programmer Humor

32267 readers
72 users here now

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

Rules:

founded 5 years ago
MODERATORS