The main ingredient of this dish is hor fun noodles, which is also known as Shahe fen, originating in the town of Shahe in Guangzhou. Hor fun wide rice noodles, or GuangzhouShahe fen, is a noodle that is said to have originated in the town of Shahe, now a subdistrict of the city of Guangzhou, China. (Hinsbergh) It is a wide, flat noodle that is cut into shape (qiefen.) The most common methods of cooking hor fun are in soup or stir fried. Hor fun can be dry-fried (fried without sauce) or wet-fried (fried with a sauce).
The meat is marinated first. Then, the beef is seared in the wok. Other ingredients and the hor fun noodles are added, then combined with the beef and sauce. The bean sprouts are then stir fried with the rest of the chow fun until they are tender and the dish is ready to serve. 
An important factor in the making of this dish is "wok hei" (鑊氣). The cooking must be done over a high flame and the stirring must be done quickly. Not only must the hor fun be stirred quickly, it must not be handled too strongly or it will break into pieces. The amount of oil also needs to be controlled very well, if not, the excess oil or dry texture will ruin the dish.  Because of these factors, this dish is a major test for chefs in Cantonese cooking.
The origin of chow fun is unknown, but there is a legend concerning the origin of dry-fried chow fun:
During World War II, a man named Mr. Hui migrated from Canton to Hunan to become a chef. He then was forced back to his hometown due to the Japanese invasion. The story continues: "One night, Mr Hui's food stall ran out of the powder (like a cornstarch thickening agent) for sauces. A military [commander] was hungry and wanted to have his wet chow fun. Due to a curfew [they were] unable to go purchase the powder... It is also said the commander was so mad he was about to take out his gun and kill someone. Mr Hui's mom and brother immediately went to make some tong yuen (sticky rice dessert dumplings) and Mr Hui himself tended to the kitchen. It was there that he thought about doing it dry stir fried style, and thus the stall (and his family) were spared from the bullet [sic].