HACKER Q&A
📣 andrewstuart

Do you change variable names as you cross language boundaries?


Do you switch to camel case when passing a snake case variable between python and javascript for example?

After years of inconsistency and backing and forthing I’ve decided to give up and use the exact same variable name across the code base regardless of language.


  👤 h2odragon Accepted Answer ✓
"all variable names shall be 1 to 3 letters of the set [a-z]"

i think that works across almost all languages.

if you really need more than 17,500 variable names you are in some kind of hell already and stretching the spec to allow a 4th character will not increase your suffering.