Solved

data aware vs non data aware

Posted on 2000-04-04
5
273 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

757 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now