You have it in your codebase. You’ve tried to clean it up. Heck, you may have written it. It’s the Ball of Mud.
It didn’t start out that way. You just wanted to add some nice interactive functionality to your website. But then one jQuery plugin turns to three, you add a dash of statefulness, some AJAX error handling, and here you are, unable to sleep at night.
But your client-side ball of mud can be tamed! We’ll walk through test-driving a refactor until the code is understandable, usable, and extensible.
We’ll use Ember Components, though the pattern holds for the framework (or no framework) of your choice. It’s time to get excited, not exasperated, when asked to add advanced client-side interactions to your website.