The provisions of the resolutions or ordinances of the county and all proceedings under them are to be construed with a view to effect their objects and to promote justice.