Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Xbase DO CASE indention
Message
 
 
À
31/01/2013 05:44:19
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Humor
Catégorie:
Autre
Divers
Thread ID:
01564657
Message ID:
01564833
Vues:
36
>>
>>DO CASE
>>CASE blah
>>     ....
>>CASE blah
>>     ....
>>ENDCASE
>>
>>
>>Personally, I prefer the latter. I see no reason to have an extra level of indents.
>
>When the code is long, and there's another doCase or IfEndif block immediately after it, if DoCase is not indented, I have trouble finding where it ends. So I'd rather suffer one slightly heated debate every other year with someone on the team, than suffer moments of confusion and repeated scrolling several times a day.

IMO nested structures are not my friend. If there is a performance issue, namely only having to SCAN a table once instead of more than once, fine, I will do it that way, but in general I try to avoid being too clever. One of the best pieces of programming advice I ever received, many years ago, was "Write boring code."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform