this post was submitted on 07 Jul 2023
20 points (100.0% liked)

Programmer Humor

22134 readers
1351 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

top 6 comments
sorted by: hot top controversial new old
[–] cupcakezealot@lemmy.blahaj.zone 3 points 2 years ago

Programming Javascript is roughly the equivalent of hitting your head with a hammer or trying to uninstall McAfee.

[–] towerful@programming.dev 0 points 2 years ago (2 children)

Use stringly-typed everything, and always padStart your numbers.
Saves running into issues with numbers outside the 52-bit integer range.
And padding start means you don't have to worry about pesky sort functions.

Just don't do maths. Simple.

Maybe you could do a manual sort.
Provide a "captcha" prompt, and ask which comes first in the list... You know, to make sure the user is a human! And you get free sorting.

[–] kuneho@lemmy.world 1 points 2 years ago (1 children)

Provide a "captcha" prompt, and ask which comes first in the list... You know, to make sure the user is a human! And you get free sorting.

I mean, this strangely is a compelling idea...

[–] TWeaK@lemm.ee 1 points 2 years ago

I always try to prove myself human with wrong answers. Typically the first screen is an AI training screen, then the next screen is one the computer knows but wants to see if you know. By answering the first one wrong and the second correct, I'm hoping to poison the data.

[–] dave@feddit.uk 0 points 2 years ago (1 children)

Use stringly-typed everything

Instructions unclear. Now 1+2=12.

[–] LordTrychon@sh.itjust.works 1 points 2 years ago

I got 000001000002.