What I learned refactoring a codebase with a 7,558-line constants file" (opens in new tab)
If you've ever opened a file to fix a bug and spent forty minutes just figuring out where the bug lives, this post is for you. Not because the bug was hard. Because the code had no home. I've been the sole frontend developer on a sports data platform serving 5+ professional sports clubs. I've worked on this codebase for a few years now, across everything on the frontend — auth flows, build configuration, product features, UI design implementation. When I joined, there were other developers on...
Read the original article