datacarpentry / stata-economics

Economics Lesson with Stata
https://datacarpentry.org/stata-economics/
Other
27 stars 20 forks source link

E03: provide guidance on variable naming #76

Open korenmiklos opened 4 years ago

korenmiklos commented 4 years ago
sergiocorreia commented 4 years ago

Agreed. On the naming convention, some advice would be to:

Maybe one way of showing these is by examples? Say we have nominal and real GDP as in above. A table would be a way of showing-not-telling:

Definition Nominal GDP Real GDP
Suggested nominal_gdp real_gdp
Too short ngdp rgdp
Too long nominal_gross_domestic_product real_gross_domestic_product
Less readable: CamelCase NominalGDP / NominalGdp RealGDP / RealGdp
Less readable: general-to-specific gdp_nominal gdp_real
Less portable: UTF8 pib_nominale pib_réel