New building codes become effective in California city Jan. 1