Trilogy of science fiction novels by David Weber:
The series is 100% Pure Space Opera, complete with galactic empires and moon-sized spaceships.