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.Use stringly-typed everything
Instructions unclear. Now 1+2=12.
I got 000001000002.
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…
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.
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).
I’m happy enough being classed as unreliable, either way they don’t get good training data.
deleted by creator
Based
o7
Just don’t do maths. Simple.
That’s a good rule for life in general, really.
Turn JavaScript into Bash with these easy steps…
Note if you put the image link in the url bar of the post rather than the body it lets people see it while scrolling (url + title can be edited so you can edit it to do that still if you want)
thanks!
using 3rd party client (and first “image post” I’ve made on this platform) and wasn’t sure how image post should be made.
JavaScript knows my truest fears too LOL
JavaScript: You chose this path, now I have a surprise for you
Deploying surprise in 3, 2… Hold up for a seco d that wasn suppossed to happen.
Ugh, I just ran into this in Terraform. Why is this a thing?
deleted by creator
I don’t think JS works that way
Array.prototype.sort
if no callback is passed to it will coerce non-undefined
elements to strings when sorting. It does do that.To sort numbers passing a function like
(a, b) => a - b
is good enough.Fuck JS is stupid.
Source: use JS regularly