Information générale
Catégorie:
Codage, syntaxe et commandes
>I use 2 spaces for my tab, others use 5, some 4. Yes, they WILL line up eventually - and make almost everyone coming after you crazy when they have to modify that section.
>
>People tend to type in patterns, most tend towards the xspace=spacey, not necessarily xtabtabtabtabtab=spacey - you got me hitting the damn tab key, why are you switching to the freakin' SPACE key?
I made no statement as to which I prefer (I'm happy with either) - but feel free to argue with those who prefer a different style. I simply suggested that most replies seemed to favour the tabbed layout and *consistency* in a code base is a more important than personal preference.
A far as VFP goes most issues like this can be resolved by common 'beautify' settings.
Regards,
Viv
>
>
>>>Because not everyone uses the same indent or tab size and it's a major pain in the posterior to line everything up.
>>
>>Huh? Your CHR(9) may not be my CHR(9( - but the tabs should still line up.
>>
>>>
>>>>Why is the first one easier to maintain? To me, it's the inverse.
>>>>
>>>>>I prefer the first. It's easier to maintain. Also, if you're looking for readability, add white space around * and +
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement