Martin Dibner wrote this story as an autobiographical novel from his WWII naval experiences on a USN cruiser.