The earliest instance of programming was in 1883. However this likely is not what you are referring to. You are likely referring to computers around 80s, 90s, when modern programming stuff was invented.
They used punch cards. And assembly. And also C and Fortran and the other early programming languages. Nowadays the current programming languages we have, have been written in C and/or C++. Specifically their compilers or interpretters.