For the cake: add the butter and sugar to a bowl and using electric hand mixer or stand mixer, beat until light and fluffy, then beat in the egg. sift together the flour, baking powder, baking soda, and cocoa in a medium bowl. beat 1/3 of the flower mixture, and 1/2 of the buttermilk into the egg mixture. repeat, ending with the flour mixture. blend until well incorporated.