Memory is not cheap
The thing is, these mantras are always taken out of context.
"Memory is cheap" is in comparison to other options. For example, if you have a the choice between optimizing for CPU or memory, you should optimize for CPU almost every time because it's a lot cheaper to add more RAM than add more CPU.
But for some reason, we've taken this to mean, "I don't need to optimize memory or CPU because I can just upgrade them." That's only true until it isn't, and it's generally easier to optimize things as you go than optimize once everything is broken.
Good post. I really don't understand how apps have gotten so terrible.
The app I work on is slow, but that's because we're doing pretty heavy things (3D canvas stuff), but even then we do a really bad job of lazy loading stuff (e.g. images used for that 3D stuff are loaded way before you get to the 3D part, and many users don't use the 3D feature at all in a session).
But at least we have an excuse. Why does the bank app take forever to load when it just needs to query around balances and submit tasks to their backend to process? That should be incredibly lightweight.