Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which Is More Readable To You?
Message
From
05/03/2008 17:13:02
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
05/03/2008 13:34:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01298471
Message ID:
01299127
Views:
26
>>As an aside... I've never used Beautify in my life.
>
>I tend to format my own code as I write, but Beautify is a great help when I get someone else's code where there were obviously no formatting rules. Helps me figure out what's going on.

I format it somewhat... but generally try not to. I'm forcing myself to spell every new variable in camelcase, then type it lowercase for the rest of the time. Then if Beautify doesn't convert it to camel, I've misspelled. The beautified code is also a visual closing check (although I use all of those xxxend macros) so if I've butchered some code and am not quite sure whether I got every EndXXX in the right place, I only have to look whether the end of a procedure is not indented exactly one or two tabs (depending on my Beautify settings for the project). To me, it's a great visual clue, sometimes works better than compiling and going for the error line (which doesn't help much with my most frequent error, endif instead of endfor).

Which is why I retrained myself as the key sequence changed from VFP7 to VFP9: in any of them, I know how to run Beautify in a second, without thinking. I do it as a reflex, probably after every dozen lines or so.

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