Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return statements within the with endwith blocks
Message
From
12/01/2017 14:43:45
 
 
To
12/01/2017 13:56:01
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01646361
Message ID:
01646615
Views:
49
>>>>>>>With ... Endwith is a feature I never pined for when I switched to .NET
>>>>>>>.NET's awesome intellisense more than compensates for any additional typing.
>>>>>>
>>>>>>Typing is the least of the problems.
>>>>>
>>>>>If you saw how I type, you might think differently.
>>>>
>>>>Woud you be so kind as to show us a block of .NET code of yours?
>>>Sure
>>>
>>>This is from a menu program
>>>
>>>
>>> private void maintainBillingAddressToolStripMenuItem_Click(object sender, EventArgs e)
>>>        {
>>>            if (commonAppDataMethods.IsRoleAuthorized("MAINT04"))
>>>            {
>>>
>>>                ApplicationMaintenance.MaintainStoreBillAddressMethods maintainStoreBillAddressMethods = new  ApplicationMaintenance.MaintainStoreBillAddressMethods();
>>>                maintainStoreBillAddressMethods.menuform = this;
>>>                maintainStoreBillAddressMethods.ShowParent();
>>>            }
>>>        }
>>>
>>>
>>>Please note that most of the typing was done by intellisesnse.
>>
>>But still... a line with 167 characters for a simple a=createobject("b")? Tsk, tsk...
>
>Yes, it's verbose.
> I could have eliminated "ApplicationMaintenance." with a "using" above, but this is a menu program that references almost a dozen projects and it's more convenient for me to see the project name in the code than look for it elsewhere.
>Again, I didn't have to type it and once this compiles no one will know that I could have shortened this line.

certainly not a problem if code was write-once only.

And on the opposite of verbosity we've got conciseness of APL which sometimes makes it hard for humans to decipher.

Hrm... with numerous different glyphs used in APL, it's almost like trying to read something like Chinese.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform