Apply software engineering principles to write readable, maintainable, and self-documenting code.
Take a deeply nested, poorly named 100-line "spaghetti" function and iteratively refactor it into smaller, single-responsibility functions with clear names.