There is a new badge on Stack Overflow. The \"woot\" badge is awarded to users visited the site each day for 30 days. How can you implement a feature like this? How can you trac
I second ropstah's approach. User statistics like login time etc are usually available in the database. We need to derive certain facts out of the available data. So rather than having a counter for each visit and incrementing stuff, I would prefer a batch job that runs on the user login data and publish the results for that day.
But once a user "woot"ed, you might want to stop computing "woot"ness for that user. Else, there is a chance of the user getting "wooted" every day, till a no-login day is encountered. (but this is a minor issue).