Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Reminds me of a website that used a random number generator for the "<n> persons are looking at this right now". The random number would be stored in Redis for some time so it wouldn't go randomly up and down upon refresh, at which point it would be obviously fake.


Candy Crush Soda Saga does it with microtransactions. The game is a puzzle in which you need to do something in a limited number of moves and on defeat screens there are notices along the lines of "420455 people bought extra moves to beat this level".


Seems like a waste of redis' capabilities, when localStorage is much easier to implement for something like this.


As a user I can see what you've put in my local storage and create a pr problem.


Also if it's in localStorage then opening the same site on two devices would show very different numbers and quite obviously be fake.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: