this post was submitted on 07 Jul 2023
419 points (98.6% liked)

Programmer Humor

19544 readers
709 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 1 year ago
MODERATORS
 

you are viewing a single comment's thread
view the rest of the comments
[–] towerful@programming.dev 21 points 1 year ago (4 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.

[–] dave@feddit.uk 37 points 1 year ago (1 children)

Use stringly-typed everything

Instructions unclear. Now 1+2=12.

[–] LordTrychon@sh.itjust.works 16 points 1 year ago

I got 000001000002.

[–] kuneho@lemmy.world 22 points 1 year 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 15 points 1 year ago (3 children)

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.

[–] coloredgrayscale@programming.dev 5 points 1 year ago (1 children)

Iirc they require 5 votes with the same response. Your effort won't do anything, other than flag you as unreliable.

Afaik 4chan (of course) did that poisoning correctly, "classifying" the unknown words as "penis" (of course).

[–] TWeaK@lemm.ee 2 points 1 year ago (1 children)

I'm happy enough being classed as unreliable, either way they don't get good training data.

[–] RobotToaster@infosec.pub 7 points 1 year ago

Just don’t do maths. Simple.

That's a good rule for life in general, really.

[–] oessessnex@programming.dev 3 points 1 year ago

Turn JavaScript into Bash with these easy steps...