Hacker News new | ask | show | jobs
by johnlopez 4216 days ago
It'd be pretty cool if this actually had leaderboards, perhaps one leaderboard per set of options, limited to clusters so as to minimize the amount of leaderboards. Such as "arithmetic, multiplication+division, arithmetic and mutliplication+division, free for all" Was pretty upset to see that the result for scoring 5xx was the same as my next run of 7920
1 comments

A leaderboard wouldn't be meaningful -- Client-side code isn't secure, and people could set scores to whatever they like. Or, just for fun, I played with the page a bit via dev tools, added in a script to automatically calculate the answer, put it in the input, and trigger the keyup event to run their submit function... worked great.

There is nothing wrong with client-side tools. I have a few on my site that get decent usage. But unless you put some security and validation on the server-side, any data coming back is not trustworthy.