Comprehensive sets of codes—electrical, energy, building, fire, plumbing, and mechanical—were developed to provide understandable requirements that are easily enforced. But codes only work if states and jurisdictions adopt them and designers and builders comply with them.