News for hackers. Stuff that matters.
Re:Twitter's UID associated to each tweet will very soon exc... by Steve0 on Tuesday June 09, 2009 @07:09AM (#648874)
Meh, anyone who's coding for this platform must have put those id's in a unsigned integer, wouldn't they?
Re:Twitter's UID associated to each tweet will very soon exc... by patio11 on Tuesday June 09, 2009 @08:54AM (#648960)
I suspect for a lot of people coding against Twitter the notion of integers being signed or unsigned is about as foreign to their experience as pointer arithmetic. I do not consider that a bad thing.

irb > "2,147,483,647".gsub(",","").to_i + 1

2147483648

(Forgive the extra code necessary to strip out the commas. The Windows irb console leaves a little to be desired in terms of midline editing.)

Re:Twitter's UID associated to each tweet will very soon exc... by there on Tuesday June 09, 2009 @12:32PM (#649334)
you know ruby supports _ as a comma separator, right?

irb(main):002:0> 2_147_483_647 + 1

=> 2147483648

Re:Twitter's UID associated to each tweet will very soon exc... by tjogin on Tuesday June 09, 2009 @08:03AM (#648910)
It's such a low barrier of entry and almost non-existant learning curve to code for Twitter, so I expect quite a lot of services to have made that mistake. Not the big ones, though.