In the previous episode, some very basic extraction was done to create a few modules within the uploader code. But doing that hasn't significantly changed the way the code looks or works – it just moved a few things around.
However, the basic setup with those modules is providing the basis for the changes that will be made today – to clean up the “handleUpload” function, making better use of parameter, extracting the workflow found within that method, and more. In the end, the code to handle the upload process will look significantly different and ultimately see the “handleUpload” function removed.
To get there, however, we have to take some very small steps, first.
Join me in this episode, and see how to take small steps at the lowest levels of code, allowing for larger changes to be made up the call-stack of functions. It's a winning strategy that ultimately creates compounding benefits over time.