Preheat the oven to 350.
Combine flour, salt, baking powder, baking soda and the cocoa powder in a bowl and whisk until well combined.
In the bowl of a stand mixer add the butter and sugar and beat until well combined. Add the eggs one at a time, beating well after each egg, scraping the bottom of the bowl between additions.
In a microwave safe bowl, add the 72% chocolate. Microwave for 30 seconds, remove and stir. Repeat until the chocolate is melted.
Add the melted chocolate to the sugar/egg mixture and blend well. While the mixer is on a medium-low setting, add the stout and then the coffee, continue to combine until well mixed, then add the flour mixture a little at a time until well combined.
Grease and flour two 9 inch cake pans. Bake for between 25 and 35 minutes (for cupcakes about 18 minutes) or until the cake springs back when lightly touched. Remove from oven and allow to cool.