Mark compares the difficulty of widening the base of dykes, which is necessary for heightening them, to dealing with legacy code in software development, highlighting the constraints imposed by existing structures.