Boards can be replaced in an afternoon. The frame cannot, so every pound and every hour is better spent below the surface than above it.
Foundations
The frame has to sit on something that will not move.
Concrete pads cast in the ground are the most common: a hole, hardcore, and concrete brought up to just above ground level.
Paving slabs on a compacted sub-base work for low decks with modest loads, provided the sub-base is genuinely compacted.
Posts set in concrete suit raised decks, with the post continuing up to carry the beam.
Ground screws are an alternative where digging is difficult, and they avoid concrete entirely.
Space supports so no beam or joist spans further than the timber section allows, and add supports rather than increasing spans.
Keeping timber out of the ground
This single principle determines the life of the frame.
Use post bases or shoes so posts stand on concrete rather than in it. A post set directly into concrete rots at the interface, and it cannot be replaced without breaking out the foundation.
Where a post must be buried, use a ground contact use class timber and accept it is a consumable.
Keep every part of the frame clear of soil and standing water.
Fixing to the house
A ledger board bolted to the house wall carries one edge of the deck, and it is the most safety critical connection in the whole structure.
Fix into sound masonry with appropriate bolts or resin anchors, never into render or a single skin of brick alone. Deck collapses almost always start at a poorly fixed ledger.
Leave a gap between the ledger and the wall using spacers or washers, so water drains rather than sitting between timber and brickwork.
Keep the ledger and the deck surface at least 150mm below the damp proof course, and never fix through it.
Where the wall is cavity construction, use fixings suited to that, and avoid creating a bridge across the cavity.
Where a suitable fixing is not possible, build the deck freestanding on its own posts against the house instead. This is the safer answer in many older properties.
Beams and joists
Use timber sized for the span rather than what looks adequate. Common joist sections are 47 by 145mm or 47 by 195mm, and deeper joists span considerably further.
Joists usually run at right angles to the boards.
Fix joists to the ledger and to rim beams with galvanised joist hangers rather than skew nailing, and fill every hole in the hanger with the correct nails, not screws.
Fit noggins or blocking between joists at intervals to stop them twisting, particularly on longer spans and at butt joints.
Double the joist anywhere board ends meet, so each board end has its own bearing.
Protecting the frame
Treat every cut end with end grain preservative as you work. Cutting exposes untreated timber and it is the first place rot starts.
Run joist tape along the top of every joist. It is a self adhesive butyl strip that stops water sitting in the screw holes and against the top face, and it is the cheapest life extension available for a deck frame.
Where boards will be fixed, water runs through the gaps and lands directly on the joist below, so the top face is the wettest part of the frame.
Ironmongery
Modern preservatives corrode plain steel quickly.
Use hot dip galvanised or stainless hangers, brackets, bolts and nails throughout, and keep to one metal family.
Use washers under bolt heads and nuts bearing on timber, and expect to retighten after the first year as timber shrinks.
Checking as you go
Check the frame is square by measuring both diagonals before fixing boards.
Check the fall across the frame with a level and a straight edge, since a frame built level drains nowhere.
Walk the frame before boarding. Anything that moves or bounces now will do so permanently.