This is why Apple needs to let their iOS and Mac operating systems be installed on any hardware, not just their own. That way, if one particular manufacturer was constantly screwing up their quality control, you could always choose another to replace it with, provided they all met a particular universal standard (e.g., the ATX standard for desktop PC's, and variants thereof like Mini ATX, etc.). Personally, I'd like to see smartphones and tablets fully customizable and build-able from the ground up as well, using a similar universal standard (maybe with their own variants for different sizes, etc.).
Finally, companies need to stop being so darned CHEAP to squeeze every last bit of profit out of buyers, and electronics manufacturing needs to come back to Japan and away from China, who's well-reputed for shoddy quality control. At least from what I've known from products in the 80's, and the one week I spent in Japan at an electronics factory in the late 90's, they've always been truly committed to quality control, through a meticulous and methodical mindset, a rarity these days.