The failure of the long-term structural adequacy of a deck can be attributed to bad workmanship, design, unsuitable materials, deterioration, and lack of proper maintenance of the structure. These issues are not all addressed in the IRC and much is left to the knowledge and expertise of the builder.
As a builder well past the age of retirement who has seen and repaired structural degradation in buildings and decks over many years, I think that all timber that is subject to moisture and exposure to the elements should be further protected with a paint coating, whether it has been preservative-treated or not. Opaque paint preserves and enhances the appearance of timber, and the lifespan of a painted finish is longer than that of transparent or translucent stain finishes. Before painting, I ease the edges with a 1/4-inch-diameter roundover bit mounted in a laminate trimmer or router, which reduces the surface tension of the paint on opposing surfaces. I recommend priming all edges and faces with an oil-based primer, and finishing with two coats of a water-based high-gloss acrylic exterior paint before cutting to length and installing. Be especially careful to coat all end cuts and butt joints with an oil-based primer or—better still—a bituminous coating to seal out moisture. I also recommend painting the back face of the deck ledger with the bituminous coating as well, as the ledger flashing alone will not prevent the ingress of moisture and dust behind the ledger.
Painting protects wood from the effects of sun and rain, but it also creates a barrier that prevents the corrosion that happens when the chemicals in pressure-treated timber come in contact with joist hangers and other metal connectors. When a metal connector must come in contact with treated raw lumber, then I recommend placing a piece of self-adhering (SAF) or damp proof course (DPC) flashing paper between the lumber and the connector. Metal hardware should be hot-dip galvanized, of course, and I also recommend painting the connectors after installation. I also coat all fasteners with a paste that I make from melted beeswax and pure turpentine. Not only does it provide added protection, but the coating makes the fastener easier to install. Finally, framing should be sloped so that surfaces can always drain freely away to the outer edge of a deck.
Dave Barrowcliffe (from online comments)