Five years ago, we hosted our 10 full-time staff members at The Kitchn for a weekend retreat in the country, and I was in charge of the cooking. We were hungry worker bees, stretching our brains all day, decoding the secrets of site design, traffic analytics and reader satisfaction. Try as I did to push the healthy snacks to my coworkers, it was a plate of Dark Chocolate Walnut Cookies that won for best snack.

Digging back into the archives, I found the post about these cookies with some broken code and one of the worst food photographs I ever made. Five years on, they are still one of my favorite tea-time snacks.

I want to emphasize what a difference it makes to use high-quality cocoa, bittersweet chocolate chips or pieces and fresh nuts in this recipe. Ingredient quality and freshness always make a difference, but in this case, with such intense flavors, that is even more the case. Always give walnuts a sniff before using them; they can go rancid quickly if not stored properly, even in the grocery store.

The tiny sprinkle of salt on top of the cookies before they bake is the crowning jewel — the pop of flavor that ties it all together. Besides, aren’t you eating salt on all your desserts these days?

Preheat oven to 375 degrees with a rack in the center of the oven. Line a cookie sheet with a piece of parchment or a baking mat.

Sift the flour, cocoa powder, baking soda and salt into a mixing bowl.

In a stand mixer or with a hand-held electric mixer on medium speed (or by hand), beat together the butter, brown sugar and vanilla until fluffy and uniform in color. Add the eggs one at a time, beating until combined. Reduce the speed to low and add the dry mixture, mixing until just combined. Add the chocolate and walnut pieces and stir to combine.

Drop heaping tablespoons of dough onto the baking sheet, leaving at least 2 inches of space in between. Sprinkle a small pinch of salt on top of each cookie.

Bake until puffed but still soft and slightly shiny in the middle, about 12 minutes. Transfer the cookies to a cooking rack. Serve warm, or store at room temperature for up to three days in an airtight container.

Sara Kate Gillingham is the founding editor ofTheKitchn.com, a nationally known blog for people who love food and home cooking. Submit comments or questions tokitchn@apartmenttherapy.com.