2 ms·
Someone here said don’t name your variables x, or a, etc. I argue that you do name them ambiguously to start. Normally when you’re writing code you’re thinkin
by brad0 4y ago
Someone here said don’t name your variables x, or a, etc.
I argue that you do name them ambiguously to start.
Normally when you’re writing code you’re thinking about the right hand side of the statement. What is the next step in my code? But most of the time we write the left hand side first. If you’re focused on naming, you lose your flow. You’re switching contexts.
By choosing x or a as your variable name, it unblocks your flow to write the right hand side.
Once you’ve written the code, go through and rename your variables. Use your IDE refactoring features to make this easy and change it everywhere at once.