I have a similarly-old laptop. I think what @WayneG is getting at is that a modern MacBook or iMac is a completely different animal from a 2010 MacBook Pro.
The 2010 has a battery that’s much, much easier to service. $20-$50 gets you a third-party replacement battery, and installation is easy enough to do yourself. Failed RAM can be replaced, or even upgraded. The hard drive is replaceable if there’s an issue. For example, I had a drive failure in my 2012 Mac Mini, and I just bought an off-the-shelf SSD, replaced it, and called it good. It’s still kicking today, running Plex.
Take any of those three problems on a modern MacBook. The battery can still apparently be serviced by Apple, but an out-of-warranty replacement is a couple hundred bucks. Failed RAM or SSD means a failure on the die of the M1, so at that point the laptop is basically junk.
In general, I still agree with:
The overall industrial design seems to be built to last. I don’t think they’re designing things to be thrown away in a year or two. But the trend toward more and more integrated stuff makes them less repairable when things do fail.