Defense spending is largely a jobs program. The only question is, if you're going to have a trillion dollar jobs program if the rate of return on investment isn't higher in e.g. infrastructure spending than defense.
Also, bridge-building does not produce GPS and Internet as byproduct. We wouldn’t have the means to have this conversation if defense money was spent on infrastructure improvement, and most likely we wouldn’t have our jobs either.