DDT was invented in the 1860’s. It was use for insecticide much earlier than 1940.
As to what is being used now we are being blasted with neurotoxins and genetically enhanced mosquitoes. What could be worse?
DDT was first synthesized in 1874. It's insecticide properties were not discovered until 1939.