Can you please explain what you mean by "database driven applications"? Thanks!
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Originally posted by Ilja Preuss:
Can you please explain what you mean by "database driven applications"? Thanks!
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Originally posted by Edward Chen:
This question has haunted a while.
Usually, we firstly check the porject requirements and set up tables, and then do 1/2/3-NF normaliztion.
I don't like this way, because it is not Object-oriented way. So any body could share exprience how we use OOP to design complicate table schema/relationship ?
Even a link/book ISBN is welcome. That is very important for me.
Thanks
Eric LEMAITRE
CNAM IT Engineer, MS/CS (RHCE, RHCX, SCJA, SCJP, SCJD, SCWCD, SCBCD, SCEA, Net+)
Free Online Tutorials: http://www.free-tutorials-online.net/
Eric LEMAITRE
CNAM IT Engineer, MS/CS (RHCE, RHCX, SCJA, SCJP, SCJD, SCWCD, SCBCD, SCEA, Net+)
Free Online Tutorials: http://www.free-tutorials-online.net/
Originally posted by Stan James:
But stateless web servers are totally different animals.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Murasoli Maran:
"database driven applications" means applications which needs persistance most.for example,a CRM application.everything is stored in database and insert-retrieval is the basis of application.data is colleced from user and inserted into DB with some calculations or modifications in domain layer.Later data will be retrieved from DB and shown to the user with some view coding.
Most applications are like this.concider a web shopping cart application,what the system doing?.collecting data from user and inserting to DB and vice versa.what else?.there will be some calculations in middle and some web container settings.
Yes, there will be "some" calculations in the middle, and probably "some" decisions to be made. And I would actually argue that this part - the business logic layer - is a quite important part. After all, only storing and displaying data is quite trivial, the value comes from *doing* something with the data, doesn't it? And that layer most often can benefit from OO.
And one member said "costomer will take care only functionalities".what i say is "what functionality you will loose if u start with database design"?.
None. You only loose flexibility in implementing it - at least if you let the business logic code be driven by the database design, as you seemed to suggest iirc.
Functionalitied does'nt need OOAD.Probloms can be solved in many ways.And there is not much "Patterns" for all the probloms.It should be dealt with intelligence.
I fully agree. OOAD is just a tool to manage dependencies. A quite important tool, in my opinion. That's why I typically want to use it.
Applications like web-shopping cart should be said as "database driven application".database design is most important for an application like this.
What's so important about the database design for those applications?
Plz tell me "what benifits you get by starting it with OOAD??".
Simpler code by better dependency management. For example, introducing a new variation of behavior by pluging in a new class, instead of having to change if- and switch statements in a bunch of places scattered over the code.
How you are going to map subclasses into DB tables?
Depends on the specific case. Do you want to imply that this is hard?
Most POS applications still run in Foxpro and other databases with non window based UI and OS.a POS system can also an example of "database driven applications".as i told,90% business applcations are.Even if you provide a wrapper of GUI windows to POS,it's still "Database Driven".
Yes, those applications exist. But, are they easy to maintain and extend?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
But stateless web servers are totally different animals.
Are they? Are they also "behaviourless"? Or are they just a different frontend to the same behaviour/business logic?
Perhaps I am misunderstanding what you mean by "stateless"?
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
<a href="http://www-306.ibm.com/software/rational/bios/ambler.html" target="_blank" rel="nofollow">Scott W. Ambler</a><br />Practice Leader Agile Development, IBM Rational<br /> <br />Now available: <a href="http://www.ambysoft.com/books/refactoringDatabases.html" target="_blank" rel="nofollow">Refactoring Databases: Evolutionary Database Design</a>
Originally posted by Rikard Qvarforth:
how does Prevayler fit in to this ?
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Originally posted by steveq9t4:
I think that OR mapping tools are around mostly because it is a neat thing to do that appears to make the programmers life easier at the expense of performance
and proper design.
the DB schema is one of the requirements that the OO design must meet. In other words, the OO design is outside the scope of the DB design, but the DB design is a consideration in the OO design. Hence, these tools, while convenient to the OO designer, should not be used for large scale production systems.
A much better solution, I've found, is using DB schema to Java code generators. I'm working on such a tool right now that provides a basic scripting language that allows one to use the DB schema to generate Java code. This allows precise control of the code generated and allows the creation of an intermediate layer so that the OO design can use it and be that much more (but never entirely) free of DB design considerations.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Steve Quintana:
A couple of things though, the hardware cost argument is an interesting one in that it basically states that the customer is willing to live with a suboptimal design as long as the costs are "lower" (lower than what?).
It could be applied to anyones convenience at any point regarding any design decision that leads to a little less development time.
the framework cannot possibly know anything about the context of the data. In particular, normalizing too much degrades performance, sometimes greatly, sometimes insignificantly. Would a framework know where to draw the line?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |