There was this loop in my JavaScript that kept returning undefined for user names, and I kept patching around it instead of looking at the actual code. Yesterday in my apartment near Union Square, I traced it back to a missing return statement on line 47, something I overlooked since I started learning last month. Renaming my variables from 'x' and 'y' to clearer names like 'userList' and 'filteredNames' made the issue obvious in about 10 minutes. Has anyone else had that moment where a tiny naming change solves what felt like a huge problem?
Wait, you were using x and y for user names? That's wild to me because I can't even keep track of what x means five lines later, let alone build a whole loop around it. Good on you for figuring it out though, naming stuff right is half the battle when you're starting out.