You parameterize everything and use a hierarchy of modules. Then high level changes flow down through the hierarchy.
OpenSCAD is the Prolog of 3D. It only looks C-ish but it isn't actually imperative which burns some people thinking that variable assignments are sequential.