Using an electric mixer, cream the sugar, butter and salt at high speed until well blended, about 3 minutes. Scrape down the bowl, add the egg and vanilla and beat for 1 minute.
Beat in the cocoa at medium speed until thoroughly blended. Add the flour and mix at low speed just until incorporated.
The Do's and Don'ts of Cooking with Chocolate