I also wrote a short blog about the project at: http://www.trailbehind.com/user/andrewljohnson/blog/
I'm very curious to hear criticism of the code, so let me know if you spot bugs or bad style.
I'm very curious to hear criticism of the code, so let me know if you spot bugs or bad style.
But did you think of security? To prevent automation for example?
For this demo, there is no auth, so a bot could definitely spam it, but it will work ok on your site if you have some sort of auth set up.
Later, I also want to integrate captcha with this, and I'll release my login ajax as an add-on.
You can work around this to prevent automation, by IP detection... like each IP can't submit more than 10 comments in an hour at the same domain name, and such similar techniques.
You can distrebute it, to let anyone use it at their websites.