Preheat your oven to 350°F (175°C). Thoroughly grease and flour three 8-inch (20 cm) round cake tins. Optionally, place a circle of parchment paper at the bottom of each for additional insurance against sticking.
In a large mixing bowl or the bowl of a stand mixer fitted with the paddle attachment, blend together the flour, granulated sugar, baking powder, baking soda, and salt until fully combined.
With the mixer set to medium speed, incorporate the butter one portion at a time, allowing each piece to blend fully before adding the next. The resulting mixture will have a sandy texture once all butter is mixed in.
In a separate vessel, whisk together the buttermilk, eggs, vanilla extract, and almond extract until homogenous.
Reduce the mixer speed to low and slowly stream the liquid mixture into the dry ingredients. Pause occasionally to scrape down the sides and base of the bowl with a spatula, ensuring everything is thoroughly mixed.
Using a spatula, gently fold in the shredded coconut and chopped pecans until uniformly distributed throughout the batter.
Evenly divide the batter among the three prepared cake tins. Place them on the center rack of the preheated oven and bake for 30 minutes, or until a toothpick inserted into the center of the layers comes out clean or with a few moist crumbs attached.
Let the cakes rest in their tins for 10–15 minutes post-baking. Then, carefully run a knife around the edges and invert each cake onto a wire rack to cool completely before frosting.