Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enabling/Disabling
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00652488
Message ID:
00656970
Views:
22
>I also like white space - it seems some developers have an aversion to putting a space or two between logical blocks of code. I haven't figured out why, since I think it goes a long way to showing the "flow" of the code. For example, which code do you find easier to read:
>
>
>llVisible1=oLeftPane.Visible
>llVisible2=oRightPane.Visible
>oLeftPane.Visible=.F.
>oRightPane.Visible=.F.
>IF thisform.lWebView
>	thisform.oleWebBrowser.Visible=.F.
>ENDIF
>lnLeft=this.Left
>lnOldLeft=oRightPane.Left
>lnMinCol=oLeftPane.Left+(this.Width-1)
>lnMaxCol=oRightPane.Left+oRightPane.Width-4
>lnMCol2=lnMCol1
>this.FillStyle=0
>
Just as an aside, I have been told by a colleague of a trainee programmer who produced a fairly large module (in C) with marginally less white space than your example (he used single space indenting). When I asked why he hadn't used spacing to aid reading the code he explained, in all seriousness, that he was told that a good programmer produces "compact code" & this was what he had aimed to do.
Len Speed
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform