Because it worked.
Sometimes it’s so easy to worry about finding the most elegant or efficient solution to a coding problem. There’s almost a Zen-like feeling of peace achieved when functions and arguments are stripped away, leaving you with script that’s as tight as a drum. Code Golf-worthy, even. And that’s great. Especially if you’re operating at scale.
But don’t let the paralysis of planning take over before you even get a working version of your code. You can always strip things out later, but you can never feel the joy of hitting command-R and seeing an animation ease in perfectly unless you dive right in and make a mess.