How Do You Decide on Variable Names? Any Tools or Tips?
SooMin Sung
1 reply
Naming variables can sometimes feel like the hardest part of coding. Whether it’s trying to make them clear, concise, or aligned with the team’s conventions, it always seems like a balancing act.
I’m curious to know:
What’s your process for deciding on variable names?
Do you have any specific rules or guidelines you follow?
Are there tools or resources you use to make naming easier (like linters, AI suggestions, or style guides)?
Personally, I try to keep variable names descriptive but not overly verbose, and I often refer back to the project’s coding standards. Still, it can sometimes feel like an art as much as a science.
I’d love to hear how others approach this—share your tips, tools, and naming philosophies below! 🚀
Replies
HEEJOO@hjjang
To make it easier to search for variable names within the code, you want to determine a name that contains a specific keyword.
and if you refer to Google's coding style guide, you can improve not only the name of the variable but also the overall code quality.
Share