Affichage des articles dont le libellé est Re: Naming conventions for _settings variables. Afficher tous les articles
Affichage des articles dont le libellé est Re: Naming conventions for _settings variables. Afficher tous les articles

Re: Naming conventions for _settings variables

vendredi 26 décembre 2014

It could have been a Mary Poppins website and tried to add Supercalafajalistickespeealadojus_settings lol! :)



Re: Naming conventions for _settings variables

Re: Naming conventions for _settings variables

We can't do it now but it wouldn't have been better if the variable name was limited to x amount of characters to prevent issues like this occurring then trying to figure out what is going on.



Re: Naming conventions for _settings variables

Re: Naming conventions for _settings variables

Because making it longer impacts every single call to updateSettings() in a negative way.



Re: Naming conventions for _settings variables

Re: Naming conventions for _settings variables

I encountered it once before and this person here as well. Is there any reason why could be 50 at least?



Re: Naming conventions for _settings variables

Re: Naming conventions for _settings variables

Would it be bad to request that index length be increased for 2.1?



Re: Naming conventions for _settings variables

Re: Naming conventions for _settings variables

I use camelCase, an acronym and a single underscore:



eiu_enable



eiu_someSetting



Where eiu stands for "Email Inactive Users".



Lately I use the name of my primary class so the name becomes uppercased:



ActivityBar_enable



ActivityBar_someSetting







Re: Naming conventions for _settings variables
 

Lorem

Ipsum

Dolor