I read some code by FriendFeed guys. They are great. The Tornado code is neat. You can take a look here:

https://github.com/facebook/tornado

One of the test I ask my developer is, do you feel comfortable to open source your code. If they do, they are pretty in good shape.