?
Solved

data aware vs non data aware

Posted on 2000-04-04
5
Medium Priority
?
285 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

743 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