This is probably a perfect example of how a social network should NOT be written. Enjoy.