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?

by 궁금한사람318

3 answers

LOL the real final_final_this is seriously the last one — this is the way to go.

by 스타트업러46 · ▲0

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.

by 문과출신개발자76 · ▲0

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.

by 코딩하는곰577 · ▲0