5
When I started programming they said it was good practice to abbreviate variable names to shorten their size.
However, I have recently researched and seen that this concept has changed. And today in many tutorials the examples come with full names. Even if it makes the variable size larger.
I would like to know if there is any problem or restriction in naming a variable with a big name like:
var pistasEmTextoSeparadasPorVirgula
// "Monaco,Singapore,Interlagos"
// "string"
Example taken from:https://www.javascriptmasters.com.br/blog/teoria/clean-code-3-a-importancia-dos-nomes/
Maybe I’ll fall here: It is correct to prefix variable names with their type?. In the past, names were abbreviated by memory restriction.
– rray
This is exactly where I was going. I wanted to find out if there are any restrictions on name sizes due to some memory limit. This link you passed answers some things. But it doesn’t come to that point.
– alan