Of course we learn from history. The thing you have to understand is that everything is working as intended. F-35, and programs like it, are a way to use public money to create private sector jobs. They aren't meant to be efficient or even effective means to develop and manufacture military hardware.
You can see a direct analogy of this in the space sector, where SpaceX came along and severely disrupted the incumbents by doing things efficiently.