Monday, April 11, 2011

Poke tracking added

Good afternoon everyone!

I spent today adding the ability to track the number of pokes between the user and their target.  Of course, this count is completely localized, so if you use the script on multiple computers, it will keep different numbers on each computer.  Not sure if this value is carried over if you use Mozilla Firefox Sync and not going to test this.  Portability is not going to be a feature for the 4.0 release.  It may be in the future.

A couple of things worth noting about this feature:

There is always a trade-off between information and space.  While there is no limit imposed by Greasemonkey, the amount of data that can be stored within the browser should be minimized.  While developing the schema, I debated how much information should be tracked: last poke datetime, initial poke datetime, name, count.  Realizing that people prefer speed over information, I've decided to only keep the count.  This makes it very efficient.

I'm sure there are those of you that would like to know when your friend last poked you and when you last poked him.  The fact is that the more information you store, the slower your browser as a whole will be.  The information is stored in your RAM.  Firefox has a fairly large footprint as it is.  So if you want more of this information and are willing to sacrifice speed (and possibly a crash), you will have to edit the script.

I will not expand on the pokewar tracking feature beyond the number of pokes.  I believe the cost will not outweigh the benefits.  If you want me to code this specifically for you, you will have to purchase a license (which will not be cheap).

At this time, the number of pokes will only show for current wars.  If you want to see a list of everyone you've poked, you will have to open the about:config panel.  This feature may be added in the future, thus will not be in the 4.0 release.

No comments:

Post a Comment