How to make “consecutive days of Khan Academy activity” badges

  1. Think how cool it would be if users were rewarded after learning for X consecutive days.
  2. Think about implementation for a second and then go, “Sweet! This’ll be trivial Let’s knock it out Here we go I’ve got things to do!”

  3. Write a line of code or two.
  4. Get sucker-punched by the gruesome specter of timezones when realizing that a student doing work at 8am on Thursday and 9pm on Friday should probably still earn their badge even though over 24 hours of non-work elapsed.

  5. Think “How does Stack Exchange do this?” and discover that while they suffer from the timezone bug, passionate Stack Exchange users have written actual code to do the trick without asking users for timezone information.
  6. Follow those passionate users’ suggestions, knock it out, and enjoy a few weeks later when the most dedicated users start earning badges for 30 days of consecutive learning.

Comments 11/29/11 — 10:17pm Permalink