The 2015 MBPs were the last ones that had replaceable drives (it's a proprietary slot, but adaptors to M2 are available).
I still think that the 2015 models are the last laptops Apple actually targeted at pro users. They even added support for PCI NVMe drives in a recent macOS version, so these MBPs got MORE EXPANDABLE after release. It's crazy! (It does have soldered-on RAM though)
The only comparable recent Mac was the 2018 Mac mini -- with user upgradable RAM! It does have soldered on flash, unfortunately. But it has so many ports, and with external thunderbolt enclosures you can add GPUs, SSD Raids, ... It's pretty amazing for a small desktop and surprisingly usable as a developer workstation.
(I'm not counting the current Mac Pro because it is so outrageously expensive that I can't imagine that it makes sense for anyone except the most highest paid professsionals)
I type this on my work MacBook where I've had to press backspace so many times due to the shift key not working and the i key repeating itself, with the touchbar flashing constantly next to the power button.... the battery has a worse rating too even though it's a 2016 versus my 2012. I hate this keyboard.
Are there any hard cold data on how often a mac user gets a new laptop vs a pc user? It would also be interesting to see how common it is for pc users to add ram/disk during their pc:s lifetime.
There are also windows machines that make it hard to replace things mind you.
It may change in the future if Apple introduces planned obsolescence, but so far no issues
What a lot of people neglect to consider is that non-Apple brands have an entire "budget" category that Apple does not participate in. It's wrong to compare this category with devices of another category, no matter the make and model.
Such a waste.
I love my Macs but Apple definitely are not environment focused, for the reasons you state
What you wrote is only a part of the story. Another one happens after using the computer for couple of years. RAM and SSD prices are declining over time, while software developers are finding exciting new ways to use more of them.
It’s more profitable for Apple when users replacing entire computers than just RAM + SSD. Unlike the initial premium upgrades, users have more motivation. Warranty’s expired, and the price difference is way larger.