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