I've been dumpster diving several times. Dumpsters with food tend to be awful - they smell, have flies, mold, and grease everywhere. If you want free food, just go to a programmer meetup and eat their free pizza.
We'd also find whole, healthy avocados and stuff there but we left those for the homeless.