Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP and .NET Data Comparison
Message
De
08/01/2006 14:26:21
Mike Yearwood
Toronto, Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
01080965
Message ID:
01084537
Vues:
30
Hi Craig

What I think you missed is the reason for this thread. It was an application that demonstrated some rather unorthodox design. This demo was heralded as a new way of building systems and as something that would put .Net and all other VFP apps to shame. Some of the ideas that person proposes are interesting. The least of which is to think outside of the box.

Rod only tried to duplicate that app to prove it could be done.


>Hi Rod,
>
>I'm a little late to this thread. I downloaded your example today and for whatever it's worth, I duplicated it in Visual FoxPro (just to show that I'm not trying to get out of anything by what I'm about to say). I don't know if I'll go any further with this - probably not. The problem I have is the the functionality on the form seems very odd to me. I've never seen a form even remotely like this in a real world application. Seems like some weird cross between a query-by-example and something else. Also, it seems we will be switching to seperate screens for the Add and Modify? Why is that necessary? Also, there aren't easy ways to clear the filter, State filter, or the sort in your example (I've added a little bit to this in my reproduction of your example so that the user doesn't end up in a state they can't get back from without requerying the backend). I just don't get it I guess. I mean I loved the idea of seeing a side-by-side comparison of .NET and Visual FoxPro as it pertains to
>data-centric applications, and I'm not here to bash .NET in anyway. I just wish that the example used was a little more real world.
>
>Why not a quick and simple MDI application. One parent screen with a toolbar and menu. A child screen docked on the left with a grid for navigating customers, and some controls for searching and filtering the grid's contents (customers). Then allow multiple Customer windows to be spawned from the docked navigation screen. These customer screens would just be child MDI windows that would come up for whatever customer was selected in the grid (selection could be via 'Enter' being pressed while in the grid or we could have a button to facilitate this. The buttons on the Customer screen(s) that are brought up would just be the standard OK, Apply, Cancel. Etc. Etc. Etc... It would take about the same amount of time to build as what you're doing now anyways. Also, why the need for a custom database with a single table in it? Couldn't we just use the Northwind database for SQL Server? We could then later expand the example showing joins, possibly reports, and even show how to access different
> backends via OLEDB - VFP database, MySQL, and even Oracle. I mean there are plenty of ports of the Northwind database.
>
>I guess I think that the idea of side-by-side examples for .NET and Visual FoxPro would be very useful, but I am very doubtful about the success or value given what is being presented. For me it's like some people are able to learn OOP from an example of a car, but I'm not one of those developers. I learn a lot more from a real world example (something we might actually do for a customer). I know as I said that I am getting here late with these suggestions (wish I had taken the time to read through this thread earlier and see what you were up to), but I did reproduce what you have so far just to show you that I'm ernest in my interest in what you are doing here. In any event, thanks for taking the time on what you've done so far. If you would like to work on a more real world example (doesn't have to be big or cost us much time), then let me know because I am more than game to create two exact duplicate applications with you (not as a competition but for learning and comparison...
>those are worthwhile goals). If not, well then you've got another volunteer in this thread who I am sure will do fine with what you're presenting here.
>
>Notes on my reproduction example: I've just used a simple database with a single parameterized remote view in it (I marked it as updateable given some of your other requirements such as Add and Modify coming up). The connection gets created from a text file (connstr.txt) containing a connection string as in your example. I limited myself to the SET FILTER TO command for filtering and INDEX ON for sorting since that seemed to be what you wanted to show with local data. I didn't think it would be a fair comparison if I just used SQL Selects everywhere with dynamic order by and where clauses for everything. There are many ways this could have been done, I chose remote view for simplicity, but as you know SPT, XMLAdapter, CursorAdapter etc. are all viable solutions for Visual FoxPro. If we both had more time to burn, we could create a client-server example and use XML for transport. My example requires the VFP9 SP1 runtimes and source code is included. Here's the download link (Note to
>others: You will need access to SQL Server so you can restore that backup of customer data that Rod provided on his site):
>
>http://www.sweetpotatosoftware.com/files/UTCustomerDemo.zip
>
>>OK I posted alpha 1 of the .NET version of our sample app.
>>
>>http://www.dashpoint.com/downloads.aspx
>>
>>I have implemented the search capabilities and a lot of the local filtering, sorting and manipulation code.
>>
>>I'll be putting the add and edit customer code up soon.
>>
>>
>>Let me know whatch think...
>>
>>Happy 2006!!!!!!!!!!!!!!!!
>>
>>Rodman
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform