Paul Allen has said that Bill's particular gift when it came to programming was the ability to find the way to get to the needed outcome in the absolute fewest lines of code necessary.
The definition of 'useful' and 'beautiful' varies based on circumstances.