**Edit 02/26/2016.** I am now convinced that resting the beans is necessary. There are just too many roasters I've heard from (on here and in person) that believe it is necessary, and I have seen with my own eyes changes in the appearance of the beans a day after the roast (they seem to darken a bit).

**Previously (while still unconvinced).**
John Snow's and Nathan's answers sound very plausible, but I'm still not convinced that resting fresh-roasted coffee (past the point of cooling) improves its brewed taste. As far as I can tell, no one has ever proven this. DISCLAIMER - I don't *want* to believe it, because I think brewing after roasting is fun. But I will eventually listen to reason if strong enough arguments present themselves. Below are a couple of points that allow me to remain in disbelief.

There's a guy on YouTube [claiming the resting fresh-roasted coffee principle is a myth][1] due to a mistaken case of cause and effect from unskilled coffee shop employees. He goes so far as to tell his own myth of a teenage kid (suffering from acne - nice touch) who sees his employer resting the beans and makes the conclusion that they're better after they sit. But really, the employer is letting the coffee rest because it's impossible to brew large amounts of really fresh roasted (it will explode or something) and the teen is just too lazy to ask. He just wants to smoke weed.

Now if you're not convinced by the explanation above, the only scholarly source I could find is Michael Sivetz's *Coffee Processing Technology*, Volume 1, where on [page 248][2] he writes, 

> Beans cannot be ground directly after roasting as they are too soft and would be crushed, flattened, and scarred. When the beans are cool, hard, and brittle, they may be ground.

So I just have to cool them down? Ok, I may be extrapolating a bit since this book is about getting coffee to the masses. And it's very old.

Finally, I'm not a scientist, but I just don't see how carbon dioxide escaping from a bean is going to change the flavor of brewed coffee, especially considering the bean is about to be pulverized and soaked in near boiling water. 

**Edit 05/13/2021.** *Someone proposed the following edit. I, Ben, am not a commercial roaster (not even a roaster at all in 2021!), but how could I reject the edit of a real commercial roaster?*

I am also a commercial coffee roaster & although i will admit i 'm not an expert at tasting & cupping while at a Coffee Culture show in London a highly skilled barista next to us claimed our coffee (espresso)  was probably still a bit too fresh( it had degassed for about 48 hours-our boss thinking that fresher the better. He showed us the excess carbon dioxide ( bubbles!) as the coffee was under extraction. We have always known to degas coffee before packing -too fresh & the pack will blow up like a balloon & could burst causing a mess! I'm sure a scientist could give you the reason why excess Co2 in coffee is a bad thing & is best to degas as much out as possible. I can definitely say though from drinking LOTS of coffee that i think most coffees are at their best after after 3 or 4 days if degassing/resting. Also a factor is how old the green beans are because some can sit about in a warehouse for years before sold. Coffee S ience is a thing & you can get lost down the rabbit hole! But the MAIN thing is drink it how you like best. Use clean equipment & filtered water with good coffee & you can't go wrong!☕️🍩

  [1]: https://www.youtube.com/watch?v=tYyVGuluuaU
  [2]: http://babel.hathitrust.org/cgi/pt?id=mdp.39015002932617;view=1up;seq=268