In a saucepan, combine sugar, cornstarch, and salt. Gradually whisk in milk until smooth.
Cook over medium heat, stirring constantly, until mixture thickens and boils. Boil for 1 minute, then remove from heat.
Stir in butter and vanilla extract. Pour into a bowl and cover with plastic wrap directly on the surface of the pudding to prevent a skin from forming.