Hello, in college during our software development, our professors taught us to first create a data schema from where we could base our object schema/architecture and source code. But then, when there are changes to the data schema or to the physical database, we have to also change our objects. Is this approach right or should the object schema drive the data schema and source code?
4 replies to this topic
#1
Posted 03 February 2011 - 09:40 PM
|
|
|
#2
Posted 04 February 2011 - 02:18 PM
It tends to depend a LOT on what's going on. If you add a new feature, you often have to update both the object and data schemas. All of it boils down to changing how you store information.
#3
Posted 05 February 2011 - 03:14 AM
I agree with your professor, based on the following reasonings.
- You must optimize database as much as you can for speed. This especially true for database server (used by many applications at once). Therefore you must pick the best data schema for your data, not by the behavior of your objects.
- It's much easier to change behavior of the objects than changing the database structure respecting the above reason.
- You can use views or stored procedure/functions should you need complex entity structure, if you want to avoid complex queries in your objects.
#4
Posted 07 February 2011 - 10:05 PM
Thank you for the reply LuthfiHakim. I was just curious if you do this approach when you are developing systems or applications. Do you design the data schema first then objects? When do you identify object behaviors?
#5
Posted 09 February 2011 - 02:59 AM
mouse said:
Do you design the data schema first then objects?
Quote
When do you identify object behaviors?
Lately I started designing by identifying the basic object behavior first. In UML (unified modeling language) this step usually called domain modelling. It's identifying needed classes/objects and their relationships with each other. No fine details done in this phase, but I think it's qualifying as identify object behaviors.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









