Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Khurram Tahir
  Where is Khurram Tahir?
 Karachi
 Pakistan
 Khurram Tahir
 To: Ken Murphy
  Where is Ken Murphy?
 Springhill
 Canada
 Ken Murphy
 Tags
Subject: RE: formset disliking by seniors
Thread ID: 123907 Message ID: 124769 # Views: 46 # Ratings: 0
Version: Visual FoxPro 9 Category: Forms
Date: Wednesday, March 07, 2007 1:12:43 PM         
   


> Pete,
>
> While I have used formsets in the past (typically when I have to do a "quick and dirty" fix to somebody else's procedural code,) I have to say that I normally avoid them like the plague. The same is true of public variables. I have used them in the past, and I will probably use them in the future, but for specific purposes and for specific reasons. Both you and Andy have identified that if you actually understand the pitfalls, go ahead and use formsets or public variables. You know the issues involved, and you understand where problems are likely to occur.
>
> Andy's primary issue with formsets (and public variables) is that they break some of the fundamental rules surrounding OOP coding practices. An object should be self-contained and should not rely on anything outside itself. By their nature, both formsets and publc variables break this rule. I understand the ramifications of what this means, and I am quite sure that you do too. Unfortunately, the average newbie probably doesn't. Your comment:
>
> Un-educated use of formsets and random use of public memory variables are a sure fire way to entertain major debugging issues.
>
> So to those very new to VFP be very careful in how you use formsets until you understand their use. Be careful with public memory variables and how they interact within your application.

>
> gets my rating. I believe that you state the case quite clearly - and in language that the average newbie will understand. If you don't know what you are doing when using formsets or public variables, you are going to get yourself in trouble.
>
> To the newbie:
>
> When I was in the Navy, the navigator would "recommend" course corrections to the Captain of the ship. The Captain does not have to accept that "recommendation" but you can be sure that without VERY good reason, the Captian will never reject the navigator's recommendation. Pete and Andy are like the navigator - you are the Captain. When you find yourself "on the rocks" you will begin to respect your navigator's recommendations.
>
> Ken
> You shall know the truth - and the truth shall set you free. (John 8:33)

You are telling about public memory variables are also not a good choice for new one then the persons who swithed from FPD26 to VFP9 what they do ?
What is the alternative of public memory variables ?



COMPLETE THREAD
formset disliking by seniors Posted by Khurram Tahir @ 3/1/2007 6:43:35 AM
RE: formset disliking by seniors Posted by Boudewijn Lutgerink @ 3/1/2007 12:29:03 PM
RE: formset disliking by seniors Posted by Andy Kramek @ 3/1/2007 1:18:27 PM
RE: formset disliking by seniors Posted by Ken Murphy @ 3/1/2007 1:29:17 PM
RE: formset disliking by seniors Posted by Andy Kramek @ 3/1/2007 3:42:43 PM
RE: formset disliking by seniors Posted by Boudewijn Lutgerink @ 3/1/2007 4:53:07 PM
RE: formset disliking by seniors Posted by Khurram Tahir @ 3/2/2007 12:26:17 PM
RE: formset disliking by seniors Posted by Andy Kramek @ 3/2/2007 1:10:29 PM
RE: formset disliking by seniors Posted by Steve Bloodsworth @ 3/2/2007 4:34:53 PM
RE: formset disliking by seniors Posted by sudhir uppal @ 3/14/2007 3:11:05 PM
RE: formset disliking by seniors Posted by Boudewijn Lutgerink @ 3/6/2007 7:45:34 AM
RE: formset disliking by seniors Posted by Khurram Tahir @ 3/9/2007 6:32:59 AM
RE: formset disliking by seniors Posted by Khurram Tahir @ 3/16/2007 8:47:40 AM
RE: formset disliking by seniors Posted by Andy Kramek @ 3/16/2007 11:03:06 AM
RE: formset disliking by seniors Posted by Ronan Masangcay @ 3/14/2007 5:03:16 AM
RE: formset disliking by seniors Posted by Pete Sass @ 3/6/2007 4:38:13 AM
RE: formset disliking by seniors Posted by Andy Kramek @ 3/6/2007 12:41:23 PM
RE: formset disliking by seniors Posted by Pete Sass @ 3/6/2007 7:26:57 PM
RE: formset disliking by seniors Posted by Andy Kramek @ 3/6/2007 8:09:12 PM
RE: formset disliking by seniors Posted by Pete Sass @ 3/8/2007 12:13:28 AM
RE: formset disliking by seniors Posted by Andy Kramek @ 3/8/2007 11:55:13 AM
RE: formset disliking by seniors Posted by Pete Sass @ 3/8/2007 2:01:20 PM
RE: formset disliking by seniors Posted by Andy Kramek @ 3/8/2007 3:05:22 PM
RE: formset disliking by seniors Posted by Ken Murphy @ 3/8/2007 3:24:32 PM
RE: formset disliking by seniors Posted by Pete Sass @ 3/8/2007 4:27:06 PM
RE: formset disliking by seniors Posted by Ken Murphy @ 3/6/2007 8:42:04 PM
RE: formset disliking by seniors Posted by Khurram Tahir @ 3/7/2007 1:12:43 PM
RE: formset disliking by seniors Posted by Ken Murphy @ 3/7/2007 1:26:22 PM
RE: formset disliking by seniors Posted by Andy Kramek @ 3/7/2007 2:33:34 PM
RE: formset disliking by seniors Posted by Andy Kramek @ 3/7/2007 3:07:13 PM
RE: formset disliking by seniors Posted by Ken Murphy @ 3/7/2007 3:44:54 PM