A gandy dancer was someone who worked for the railroad, but only if he also worked on track maintainance. There had to be constant inspection of the rails, because the rails are
a bit flexible, and spikes can work loose. Enough loose spikes, and train can derail.