Digg had some poor product decisions along with a buggy rewrite that coincided with Reddit's surge in popularity. These along with other factors contributed to its decline (though it still exists but one could deem it a business failure). But for poor code alone, hard to think of any notable cases.