354
submitted 4 days ago* (last edited 4 days ago) by cypherpunks@lemmy.ml to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] sepiroth154@feddit.nl 22 points 4 days ago* (last edited 4 days ago)

You could simplify it even further by removing the int x parameter of the function...

[-] needanke@feddit.org 3 points 1 day ago

Even better, do the work at compile time to respect the customers resources:

const bool isPrime = false
[-] sepiroth154@feddit.nl 3 points 1 day ago

My gosh, you always feel so stupid when someone points out something so obvious! Thanks

[-] obelisk_complex@piefed.ca 15 points 4 days ago

So elegant! This is too valuable for GitHub, sell this directly to the Saudi government.

this post was submitted on 22 Feb 2026
354 points (100.0% liked)

Programmer Humor

41153 readers
38 users here now

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

Rules:

founded 6 years ago
MODERATORS