Arghhh. You are so right. "Take me out to the Holosuite" and "Nightingale" are also appalling examples. Sisko should have understood baseball better, and Harry had had years of tutelage in command under teachers like Janeway, Tuvok, and even Chakotay.
And Hippocratic Oath, Sword of Kahless, Let He Who Is Without Sin.