Robert Heinlein's "The Moon is a Harsh Mistress" was published in 1966.
Lunar infrastructure and machinery is largely managed by HOLMES IV ("High-Optional, Logical, Multi-Evaluating Supervisor, Mark IV"), the Lunar Authority's master computer. A computer technician who discovers that HOLMES IV has achieved self-awareness and developed a sense of humour.
A good read.