Okay, I've got to respond one last time.
In defense of myself, I tried to use the "it's just fun fantasy" reason earlier, but you shot it down with "that's a lame excuse", which I guess is just your opinion. So, I tried to use another argument instead. Anyway, I said it was fun fantasy. I never said the fun revolved around good guys. I get a kick out of some of the evil deeds villains pull, and Jack's side-switching was kind of enjoyable, if only for it's sheer unpredictability.
As for Tolkien, I mentioned that time was the factor, not thought. And, not that I dislike Tolkien's works (I reread the books at least once every 3 months or so), but they do tend to be filled with a lot of prose. It's not that bad, but it can get in the way. That's just my opinion.
As for the writing, I have to agree that the writers must not have put much thought into the film, but I also understand that they had 3 years (or less, depending on when Disney wanted 'em ready) to write, shoot, and edit 2 movies. That's not that much time for one team.
You know, I don't really know why I'm defending this film. It's my least favorite out of the Pirates films (although it's got better music than Dead Man's Chest), and it's pretty mediocre overall. I do object to comparing it to The Lord of the Rings and the Dark Knight, if only because those works are on a whole different level, and Pirates was primarily a cash cow, not a work of art.
Anyway, I guess I'm just not as much of a perfectionist as you are.