Currently a lot of the flaws of the F-35 program have been fixed. Even the cost per fighter is reasonable now, its approaching a sub $100M cost per aircraft. Its a much better plane than its contemporaries, and its costs are in the same category.
Designing an advanced fighter aircraft in the 21st century is hard and expensive. Designing one to do 3 roles and built in the thousands is even harder. But its easier and cheaper than the alternatives. The F-35 is going to end up being a good aircraft and will fulfill what it was designed to do.