0x10code
0x10code copied to clipboard
Views are not correctly measured
Hello,
I've been using 0x10co.de for some time, and I think it is a very good place to test programs. But I didn't wrote this 'issue' thingy to do a review. I am writing this, because I noticed that, when I refreshed the page, a view added up to my program. I couldn't belive it, I did it again. Then I realixed that whenever I refreshed the page, I had a view more. So I said " Wow, I could be first in the top list! ". Of course, I made a bash script, visiting my program 1 time per 0.5 secs . And if you want to see the result: Program is called Text Editor made by SamTechnologeek. http://www.0x10co.de/top
The site should add views only the first time you visit a program. How? Probably you want to save a program log saving there the ip's that have visited that program, and whenever the site gets a new request to see that program, it will check your ip and so on...
Hope you make something to fix this, Cheers. Sam.
I thought about that when I first implemented the views, and I thought it would be a waste of resources because of the extra writes the database has to do. I guess it already needs to make 1 write every time anyway to update the view count (which should be changed before I get any serious traffic), so you're right, it's probably worth it.