Solved

data aware vs non data aware

Posted on 2000-04-04
5
281 Views
Last Modified: 2010-04-04
Hello experts,
 
  I have recently started a new job and have some questions.
  The old shop I worked in used Delphi with non-data aware components and just had objects to load data into the forms and write data to the database.
  The new shop uses TDBedit controls and hands over control to the components for data display and database functions etc..

   I personally think that the new shop is being short sighted. Yes, the data aware objects are a RAD tool but the loss of control and reduced flexibility from this is quite a bummer.
   What do you all say about this style of programming? What if any are the benefits of this shoddy programming other than speed of development?

Thank you,
David
0
Comment
Question by:Dsys
5 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 2685234
> but the loss of control and reduced flexibility from this is quite a bummer
? why do you think this ?
0
 

Expert Comment

by:SuperSy
ID: 2685829
Listening...
0
 
LVL 2

Expert Comment

by:mullet_attack
ID: 2685896
My opinion is that it depends on the application and what you are doing. eg a simple browse screen could use data aware fine, maybe complicated entry forms might suit code better. I have used both methods, maintenance can be high in code method, but if you use all data aware components plus like Raize and Infopower to do "tricky" things, the maintenance can be quite high there too due to interactivity between components.

My suggestion is to use data aware where RAD is the requirement, like prototyping. There are some pretty cool components available out there. If you then upscale your app or have performance issues, rework those bits in code.

Lastly, I don't agree with your "loss of flexibilty" comment. How flexible are your custom written objects?

Horses for courses here. Pick the best tool for the job.
0
 

Author Comment

by:Dsys
ID: 2704517
Good comments. I have a bias against Data-aware because it appears that problems occur when using them. I would agree that when making your own object you can have a lot of problems as well. However, when you have finished and added all the functionality you want I believe that self build and controlled objects give you more control over how your data is managed.

When you give the data-aware object control over your data it becomes more difficult to prevent data entry issues. One such example occurred in their financial app on rounding off interest on a loan. Also on that field there are problems -when in some nations standards like decimal place are noted by commas not period or in other odd notations data aware has difficulty in working correctly. I should say that I am not an expert and do not claim to know all about Delphi so I am happy to hear your comments and help me understand some of the benefits, which you have.

Thank you
David
0
 
LVL 27

Accepted Solution

by:
kretzschmar earned 0 total points
ID: 2704662
hmm,
i have to disagree, because i never loose the control about the data given by a dataaware-component.

it is so, because a dataaware-component is just a visualizing and editing tool for the underlying TField, and there you've the events OnSetText/OnGetText, where tricky things could be done, if needed, at the moment where the transfer from/to the dataaware-control happens.

referenced to your rounding problem
(which allways resists also on not dataaware controls),
you, the developer must decide, how to display (displaymask-property on TField) and how to edit (editmask-property on TField) the data-entry.

the decimal-place depends on the regional setting of the workstation, you've no special settings to do, for making decimal-place delimitter correct,
if wanted, you can 'overlad' the settings by adjusting the global formatvars at appstartup.

resume, all the pointed problems are not really dataaware-control problems.

just my 2 cents

meikl
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

827 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question