Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GLGDW 2006 - April 21-24, Milwaukee
Message
From
18/01/2006 14:11:44
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Conferences & events
Miscellaneous
Thread ID:
01078694
Message ID:
01088122
Views:
49
>>>Again, HOW does it make the code less maintainable and what possible bug could be introduced? The nano-seconds (if that) of execution time?
>>
>>Maybe it's when the scan's alias is changed upstream. For instance, we used to Scan For through our table, but now have a cursor derived from it... and then we also have to remember to select the new alias at the end of the loop, where it still says Select MyTable. That's one more thing to maintain, and IMO, without a good reason.
>
>Actually, the SCAN will work just fine even if you change its alias but not the SELECT at the end. The ENDSCAN still carries an explicit SELECT.

I know - and that select can be completely wrong, but any adverse effect would be nullified by the implicit select. So we have a bad line of code which now only serves to confuse the reader.

>But like you, I'd be wondering "what's this doing here?". I'd be wondering if there wasn't some other block of code that was removed and the developer who removed it forgot to take a line.

Exactly - this is, IMO, clearer than what I wrote.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform