In some ways, things used to be worse.
My 1986 Mac Plus, purchased new, broke three times: a bad RTC chip, and two power supply failures. I had to pay for all because of Apple's crappy 90 day warranty at the time along with there being no effective consumer protection law. I was lucky only in that I didn't pay for any labor as I did all the repair work myself.
Apple knew about the problems with its poorly designed Mac power supplies. That's why from the 1987 Mac SE to this day, every Mac has had a discrete power supply; I believe all of them being made by third party companies with somewhat decent experience. I have no doubt this happened because Apple was forced by the marketplace to offer a full year warranty on its hardware.
These third party power supplies were a major improvement, and I think they may actually have lowered the total cost of production because of a smaller labor cost of assembly. In any case, these supplies have been far more reliable. Apple's original Mac power supplies used in the 128K, the 512K, the 512KE, and the Plus all had some components with only 1,000 hour in-use life ratings. That's just six months of 40 hour per week usage. Fortunately for most early Mac owners, component ratings are usually fairly conservative, so not everyone experienced the stinky smoke pouring from the case vents above a freshly blown power supply. But many did, some like me more than once.
Back in the 1980s, there was no web and so no easy way for victims to compare notes on a large scale. Now we have the web and better consumer protection law. Without these, I have no doubt that Apple and perhaps other companies would return to their past practices of using cheap, short lived components.