James D. Macdonald was in the Navy for more than fourteen years, both enlisted and as an officer, before he cashed out and started writing.