In the article, he mentions examples of positive effects of opiates, particularly surgical anesthesia (via morphine, although ether and nitrous oxide were initially used). Heroin was also used as an antitussive, etc. Other solutions with less serious side-effects were later found, of course, but at the time, they really saved lives. Major surgery without anesthesia was a terrifying ordeal, and, before antibiotics, many conditions meant surgery or death.
Some technology makes me more productive (refrigerators, text editors, bicycles, vaccines), and some makes me less (Flash games, irc, hacker news). Others have a mixed effect (cell phones, books). Technology takes many forms, and it's hard to generalize about them all in any sound way.