Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Xbase DO CASE indention
Message
 
 
To
31/01/2013 05:44:19
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Humor
Category:
Other
Miscellaneous
Thread ID:
01564657
Message ID:
01564833
Views:
34
>>
>>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."
Previous
Reply
Map
View

Click here to load this message in the networking platform