Variable name best_practice_v2_final: is this really the final final? Is it okay?
I was going to ask my senior, but I felt too self-conscious, so I'm posting here. This is really the final version, right?
3 answers
LOL the real final_final_this is seriously the last one — this is the way to go.
Well, isn't that outdated? These days people just rely on IDE autocomplete and name things roughly, so I'm not sure there's any need to get so hung up on variable names. I'd say checking the team convention document first would be quicker.
Honestly, best_practice_v2_final already smells too lol. Better to ask your senior/mentor. It’ll get flagged in code review anyway. I held out like that too and eventually rewrote everything. Variable names can be long as long as the meaning is clear, so drop final and rename them around their role. For example, if it’s the stored final config value, something like finalConfig or resolvedConfig.