My.ADVISOR.com Sign-In
ID
Password

Member Center / Sign-Up
Go to Article
Advanced Search 

ADVISOR VIEW

Why Should You Use a Framework with Microsoft Visual FoxPro?

Frameworks have a significant learning curve, so are they worth the trouble? And some comments on Visual FoxPro 7.

By Tamar E. Granor, Technical Editor

I've been working with a commercial framework for Visual FoxPro. There's a third-party book about this framework, as well as a Help file and some tutorials, so I've been able to get some quick results. Nevertheless, when working with this product, I often feel like I'm programming with gloves on.

If all I want is "standard" stuff, the framework has tools to create it for me. But whenever I want to do anything a little bit differently, I can't just knock out the code like I usually would. Instead, I have to dig into the book, Help file, examples, or even the class libraries that comprise the framework to figure out how this particular task is accomplished through the framework, rather than working around it.

Overcoming a steep learning curve

This exercise has led me to think about the learning process in software development. I've spent many years learning VFP (and FoxPro and FoxBASE+ before it). More than a dozen years of experience with the product means that I have large chunks of both syntax and semantics at my fingertips. When I want to do something straightforward, I can generally sit down at the keyboard and know exactly which commands to use. Obviously, more complex tasks require more forethought, but it's rare for me to encounter a problem in VFP for which I need to look up more than syntax (and, of course, with IntelliSense in VFP 7, I rarely even have to do that).

Several years ago, I became intrigued by Automation. Since then, I've spent a a lot of time writing code to automate Microsoft Office products. Although I've barely scratched the surface of the various object models, I've reached the point where I can write a great deal of fundamental code without looking up more than syntax. My last few client projects have involved writing VBA code within the Office products, and my experience automating them from VFP has made this transition fairly easy (though I don't think I'll ever remember to put THEN at the end of an IF statement).

My experience with VFP and Office products means I've been able to work with other object models comfortably. But somehow, using this framework is much more difficult. If I spend enough time with it, I'll reach the point of comfort, but the learning curve is still steep.

Why bother?

Why is learning a framework different from learning the object model for an automation server? I think it's because a framework requires you to rethink the whole structure of your application—and even the process by which you create it.

When you automate a server, it's a side process in some sense. You're still writing VFP (or VBA) code; you're just using it to talk to another object and you can view the server's commands much like UDFs you've written yourself.

Working inside a framework means getting your head around the way someone else has structured an application. It's much like maintaining an existing application. You have to get a feel for the way the application is organized. At first, you only make little changes, to see what repercussions they have. The longer you work with the application, the more confident you become in your knowledge of its structure and operation.

If it's this hard to do, why bother learning a framework? That's easy. The framework contains code to handle all kinds of things I need in almost every application I write -- things such as conflict resolution, validation of data, and so forth. Never writing that code again seems worth some initial struggles.

If you've already implemented your own framework for your applications, and it does what you need, stick with it. If you haven't, you'd be well-advised to look at the various frameworks available. You'll find ads for many of them in FoxPro Advisor magazine.

Still haven't upgraded?

You probably know VFP 8, code-named Toledo, is in development. (See the August 2002 Advisor View column for some new features.) In fact, all Visual FoxPro DevCon 2002 attendees will go home with a copy of the beta. However, it will be some time before it hits the street.

If you haven't upgraded to VFP 7, what are you waiting for? As I said in the July 2001 issue, IntelliSense alone is worth the upgrade. Besides IntelliSense, VFP 7 includes increased support for XML, the ability to create and consume Web Services, better tools for COM development, improvements in interface creation, and more. (For a detailed list, check out "What's New" at http://msdn.microsoft.com /vfoxpro/technical/documentation.asp.)

So, don't wait for VFP 8. Upgrade to VFP 7 now, download the service pack from http://msdn.microsoft.com/vfoxpro/downloads/updates.asp, and find out what you're missing.

Why Should You Use a Framework?

No reader comments ... yet.

    What do YOU think about this topic? Share your advice and thoughts using this form.

    Your Name

    REQUIRED : PUBLIC

    Your E-Mail

    REQUIRED : PRIVATE

    Job, Company

    OPTIONAL : PUBLIC

    City, State, Country

    OPTIONAL : PUBLIC

    Your Web Site

    OPTIONAL : PUBLIC

    Your Comment

    Please help everyone by keeping your comments on-topic, using clean language, and not defaming or making personal attacks.


    Your e-mail address is required, but it will not be displayed to the public or given to anyone. See our Privacy Policy. Comments become visible after they pass our spam filter, and spammers and abusers are permanently blocked. Please report spam or abuse.

    Technical Editor Tamar E. Granor, Ph.D., is the owner of Tomorrow's Solutions, LLC, a company that works with other developers through subcontracting and consulting. She is a Microsoft Certified Professional and a Microsoft Support Most Valuable Professional. Tamar is co-author of Hacker's Guide to Visual FoxPro 7.0 (Hentzenwerke Publishing), Microsoft Office Automation with Visual FoxPro, and other books. She is the Technical Editor of Visual FoxPro Certification Exam Study Guide. Tamar speaks frequently about Visual FoxPro at conferences and user groups in Europe and North America. tamar@thegranors.com.

    Printer-friendly
    page layout

    Keyword Tags: Database Development, Development, Microsoft, Microsoft Visual FoxPro

    ARTICLE INFO

    DataBased Advisor

    Print Edition: October 2002, Page 7

    FREE ACCESS FREE ACCESS

    SUBSCRIPTION STATUS
    You are not signed-in. If you are a subscriber to this publication, sign-in above to access locked articles. To subscribe or renew go to www.AdvisorStore.com.

    Subscribe to DATABASED.ADVISOR.com

    Get it all -- every current and past ADVISOR tech/business publication, now all-in-one subscription, with new articles and a huge reference library packed with expert advice, how-to and downloads. Subscribe now to get it all.

    DataBased.Advisor.com

    Subscribe to FileMaker Advisor Magazine

    Read the advanced guide to creating custom business database solutions with FileMaker software. Subscribe now to gain access to all the archives and downloads.

    FileMaker.Advisor.com

    Subscribe to Advisor Basics of FileMaker Pro

    Learn the fundamentals of using FileMaker Pro software. Every issue gives you step-by-step instructions on creating the databases you need. Subscribe now!

    FileMaker.AdvisorBasics.com

    Showcase Your Smarts

    Submit your tips, techniques and advice and let Advisor promote your business and build your career. Show the world what you know!

    AdvisorTips.com

    Use of this or any other site, content, product or service of Advisor Media constitutes acceptance of Terms of Use.
    Portions copyright ©1983-2008 Advisor Media, Inc. All Rights Reserved.
    Reuse or reproduction of any portion or quantity of Advisor Media's copyrighted content, in any form, for any purpose, requires written permission.
    ADVISOR®, the ADVISOR logo, and other names and logos that incorporate ADVISOR are registered trademarks, trademarks or service marks of Advisor Media, Inc. in the United States and/or other countries.
    Other trademarks are used for identification, editorial or descriptive purposes and are the property of their owners.
    Hosted by Prominic.NET Website powered by
    LOTUS SOFTWARE
    GRANT116 posted 09/09/2002 modified 01/07/2009 03:38:23 AM ztdbms/ztdbms
    domino-144.advisor.com my.advisor.com 01/07/2009 01:24:51 PM