Initial preparation would be to preheat the oven to 350°F (175°C). This is a very important step as this ensures proper even baking. Also, grease and flour two 9-inch round cake pans. Line bottoms with parchment paper. This will make its removal easy later.
Sift together in a large bowl 1¾ of cups all-purpose flour, 1½ teaspoons baking powder, 1½ teaspoons baking soda, ¾ cup cocoa powder, and a pinch of salt.
In the meantime, take another bowl and add in it 2 cups granulated sugar, 2 large eggs, 1 cup buttermilk, ½ cup vegetable oil, and 2 teaspoons pure vanilla extract. Beat this mixture with an electric mixer to make a smooth and well-combined uniform mixture of these wet ingredients. Do not overmix, as this will incorporate too much air and result in a coarse crumb cake.
Add the wet mixture to the dry ingredients slowly, stirring just until combined. Do not overmix
Slowly add hot coffee or 1 cup boiling water to the batter whilst mixing continuously. Your batter will be thin but that's what makes your cake moist.
Remove the cakes from the oven and cool them in the pans for about 10 minutes. Afterward, run the knife around the edges of each pan and tip onto a wire rack to cool completely. At this stage, the cakes can become dense if it is left in the pan, hence the removal has to be done as quickly as possible.
While the cakes are cooling, prepare your favorite chocolate frosting.
When the cakes are fully cooled, place one of the completely cooled layers on a serving platter. Add enough frosting generously so that it evenly spreads. Place the second layer of the cake on top, then go ahead to frost both at the top and on the sides of the cake.
You should let the frosting set before slicing and serving the cake.