
Five-Step Refactoring Algorithm

Brain Refactoring: Overcoming Your Common Bugs & Obstacles in Tech Career - Dagna Bieda
Topic 7 of 12
Published Sep 23, 2024 · Clip 25:26–33:45 (8:19)
Dagna details her five-step mental refactoring algorithm. Step one, identify root causes by examining beliefs, thoughts, and memories rather than lines of code. Step two, plan out the refactor, deciding what to replace the buggy behavior with and anticipating side effects. Step three, script new responses—consciously implementing new behavior, like her shift from aggressive to assertive communication. Step four, build libraries of evidence: repository of past experiences, visualization, third-party perspectives, and outside models to make new beliefs believable. Step five, continuously execute, since neural pathways take time to form and new programming only sticks with repetition.