Ada Lovelace is often credited as the first computer programmer. She died in the late 1800s. Programmable electronic computers didn't come along until the mid 1900s.
Though it obviously depends a bit on what you are willing to count as computer, or as code.