1843
Ada Lovelace publishes the first program
While translating an article about the Analytical Engine, Ada Lovelace adds seven notes. Note G sets out a method for calculating Bernoulli numbers, regarded as the first complete program. And a warning still debated today: "The Analytical Engine has no pretensions whatever to originate anything. It can do whatever we know how to order it to perform."
Source: Full 1843 text (Fourmilab)