In time pyramids of doom built from anonymous callbacks and hundreds, nay, thousands of interdependent global functions ruled the day. And the programmers did despair. They cried to put the code under test that it might be refactored. “Add unit tests”, they exhorted. But, lo, there were no units to test, only anonymous functions.
Does this sound like your current application? I know I’ve worked on a lot of codebases just like this one. I’ve come up with some techniques to refactor them and put them under test (so the real refactoring can begin). In this session I will share them with you.