global replace
Скачал осликом одну программистскую книжку (книжка так себе), а там примеры разбавлены байками. Например, вот такая:
A church had just bought its first computer, and the staff was learning how to use it. The church secretary decided to set up a form letter to be used in a funeral service. Where the person's name was to be she put in the word "<name>". When a funeral occurred she would change this word to the actual name of the departed.
One day, there were two funerals, first for a lady named Mary, then later one for someone named Edna. So the secretary used global replace to change "<name>" to "Mary". So far so good. Next she generated the service for the second funeral by changing the word "Mary" to "Edna". That was a mistake.
Imagine the Minister's surprise when he started reading the part containing the Apostles' Creed and saw, "Born of the Virgin Edna."
A church had just bought its first computer, and the staff was learning how to use it. The church secretary decided to set up a form letter to be used in a funeral service. Where the person's name was to be she put in the word "<name>". When a funeral occurred she would change this word to the actual name of the departed.
One day, there were two funerals, first for a lady named Mary, then later one for someone named Edna. So the secretary used global replace to change "<name>" to "Mary". So far so good. Next she generated the service for the second funeral by changing the word "Mary" to "Edna". That was a mistake.
Imagine the Minister's surprise when he started reading the part containing the Apostles' Creed and saw, "Born of the Virgin Edna."
no subject