Agile / Technology

Should I start with the OO model or the ER model?

This blog entry is a repost of an answer I wrote at

If I am building an application from scratch, should I start with the OO model or the ER model?

You might want to try to observe the principle of delaying architectural decisions as long as possible. The thought goes, that you will know more in the future about your problem domain than you do right now – so, any decisions you make today are suspect.

Another good principle to pair this with might be to try to attempt the riskiest parts of your requirements first – the thought being that if you do the easy parts, then find that the risky parts move you in a different direction, you don’t have to re-do the easy parts. Risky here meaning things you aren’t sure how you should do them.

Given these two, and given that I often try to approach things from an OO perspective, you might try to start with an OO model of the riskiest parts of your application first, and implement a least possible amount of code that can work that satisfies the risky requirements. Then, begin expanding your OO model as needed to add functionality you are going to need. All the while, you can completely delay your decision on whether to use SQL or NoSQL or flatfiles or cloud storage or whatever … and you may eventually find you don’t want relational at all (obviating the need for an ER model).

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s