Facebook is showing a real time like count on Mark Zuckerberg's status updates
facebook.com
facebook.com
This is different. Facebook is showing the actual like count change in real time. This is fantastic feedback for big brands.
http://www.wolframalpha.com/input/?i=May+14%2C+1984+to+today...
It says 9855 days, which is 365 * (2011 - 1984), which is obviously not right and missing leap years.
As an aside, floor(365.25x(2011-1984))+138 gives 9,999 days elapsed which would make today the 10,000th day, as stated by Zuckerberg.
EDIT: this formula only works when you begin on a day after a leap day during a leap year, thanks hennypenny
http://www.wolframalpha.com/input/?i=May+14+1984+to+Septembe...
Which would be 10000 days inclusive of May 14. (Wolfram says in this case that it was Sept. 29, which is correct. (ie Mark is celebrating the wrong day. But kudos to him for being aware of it in the first place. I celebrated mine July 23.))
>>> datetime(2011, 9, 30) - datetime(1984, 5, 14)
datetime.timedelta(10000) irb(main):017:0> (Time.utc(2011, 9, 30) - Time.utc(1984, 5, 14)) / 60 / 60 / 24
=> 10000.0 echo date_diff(date_create('1984-05-14'), date_create('2011-09-30'))->format('%a days');
=> 10000 days
Is this silly yet? ;)http://www.wolframalpha.com/input/?i=May+14%2C+1984 shows it being 10,000 days ago (if you view it before midnight on the 1st), but performing explicit ranges shows a different number.
http://www.wolframalpha.com/input/?i=days+since+May+14%2C+19...
[edit] just took a closer look at the network activity. this really is the worst way to implement this feature. polling several times a second, sending back a bloated response, and updating much more of the DOM than necessary. this is just terribly hacky. probably done very quickly at the last minute though.
[1] http://techcrunch.com/2010/04/14/apparently-mark-zuckerberg-...
This excerpted anecdote indicates it was mainly a leadership gesture to rally the troops. Still pretty cool that he'd bother, though.
Not really. Between Firefox and Chrome's market share, the "right way" is far more in line with WebSockets. Facebook doesn't use WebSockets. It's not even an issue of browser support but rather the lack of proper progressive enhancement on Facebook's part. Also, sorry, but I laugh at the notion that "long polling is easy to implement". Even if it is on some level, it doesn't make the right strategies any harder (nor does it excuse the flaws or performance issues of current long-polling techniques), nor does it excuse the lack of progressive enhancement.