In my opinion, pricing is based on the perceived value to the customer, not the manufacturing price. It doesn't matter whether Apple pays $1, $50, or $100 for the RAM, as long as the customer is willing to pay their upgrade prices, it's just basic business. And you know, if it works, it works. People were grumbling a bit about Apple's high prices, but they were still happy to pay them.
Agreed with the exception that I'd say if the customer is willing to pay the system price.
Apple prices their systems where they do because they have different customers with different perceived value of the system. Parents buying their high schooler a machine for writing papers and companies equipping staff for web apps value the hardware less, and people working on bigger projects, writing code, content creation, etc value it more.
Turns out that those customers also have diverging needs for memory and storage and that's how Apple addresses those different customers. They sell different priced systems to those different customers. It just so happens that the specification that varies is memory so people think that's what's driving the price difference because people can't get past thinking of a Mac as a bag of parts.
However, the recent discussions suggest that the attitude is shifting a bit and customers find it more and more difficult to justify the prices. This likely means that Apple will have to adapt. Historically, they like their $200 upgrade points, which makes sense, but maybe the hardware can be distributed a bit differently across them. Maybe we'll see 12GB RAM jumps for 200$ instead of the current 8GB. Maybe there will be some other pricing structure. The only think I'm fairly sure about is that Apple will have to change things a bit, because their laptops having half the RAM and SSD of the closest competitors just doesn't look good.
And herein lies the problem. People keep insisting on looking at it as upgrade prices. It's not. They are different systems aimed at different markets.
What I expect will happen is that people will keep complaining, at some point the available memory parts will change in way that allows them to raise the memory at each price point, and the people complaining won't realize this is one of the two times their broken clock is right and believe that Apple changed because of customer pressure.
Another alternative is that Apple raises the price of their most discounted model and outfit it with more RAM. People will still complain about price but they'll somehow be satisfied that the "base model" specs increased and tie the price increase to a new process node, supply chain something, or inflation.
If Apple needs to find another way to differentiate machines, I feel it's worse for everyone. They could, for example, charge cost for RAM but modify the system in some other way, such as differentiating more granularly by processor performance.
At the moment all machines in a particular class have the same level of performance which is a great bargain for the low end market. YouTube seems to have people hypnotized into believing that memory restrictions are impacting their Chrome performance. People will find that scaling down the processor performance actually will.
What Apple has done with their pricing is rather remarkable. They've saved a ton of engineering effort to keep their products as low cost as possible because they really only need to design a fixed number of variants and customers of the lowest cost Mac get the same killer single core benchmarks that the highest end pros do.
People just need to stop thinking of the Mac as only the cost of its parts.