Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which Is More Readable To You?
Message
From
05/03/2008 23:16:07
 
 
To
05/03/2008 10:51:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01298471
Message ID:
01299202
Views:
19
I seldom mess with code that I'm modifying unless it can really be improved by doing so (accuracy, speed, readability, et al) because many programmers are very sensitive about that. However, I'm afraid that if I was reading through that code the first thing I would do is run Beautify!


>>Beautify is your friend!
>
>Yes, it is, until you work for someone who wants the ending commands to be indented. For example
>
>
>do while somecondition
>     if thiscondition
>          process this
>     else
>          process that
>          endif
>     command
>     command
>     select data
>     scan
>          if anothercondition
>               process thisstuff
>               endif
>          endscan
>     enddo
>another condition
>
>
>
>also had the habit of having Case statements do things.....as in
>
>
>do case
>     case !seek('key','file')
>          (commands)
>     case file.field = value
>          (commands)
>     endcase
>
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform