I have a B.A. in History (Pre-industrial Europe and Far East, and post-WWII American Foreign Policy) degree from UC Davis, and I ended up full-stack programming for the last 12 years.
I use those History skills daily from writing documentation, synthesizing concepts into a coherent work, and figuring out the intent of the original coder.
My History degree is definitely not useless.