Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6098567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:10:22+00:00 2026-05-23T13:10:22+00:00

I am playing around with Object Oriented Design/Database design by creating an application that

  • 0

I am playing around with Object Oriented Design/Database design by creating an application that can pull info from various Sources like Amazon or IMDB to keep info on movies/music/books I have or have watched/read etc… Product objects such as Movie, Book, Album etc.. are composed of attributes from 1 or more sources, with some overlap between the different types of objects(eg all products would have a Title, ASIN to name a few). In addition, various Sources could have some of the same information(eg Release Date), and some different information(for instance IMDB contains more info on cast members that I may want to use, while I would not pull this info from Amazon). I would want to be able to choose which source I get these overlapping attributes from. See the linked image for a simple example:

http://imageshack.us/photo/my-images/194/drawing1r.png/

It seems like redefining all the attributes that I defined in the Parser classes in the Movie class is a bit redundant, and even moreso if I continue to create other classes such as Book, Album(redefining ASIN, IMDBId etc…). It just seems I am approaching this wrong.

Any suggestions for a better design that is easier to extend and maintain?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:10:23+00:00Added an answer on May 23, 2026 at 1:10 pm

    You could create a superclass called ‘Product‘ that holds the common properties between your Movie, Book and Albums. Then each of these particular object types would inherit from the common parent class.

    Shouldn’t Amazon and IMDB parsers create the Product objects? Why do they hold properties of products? If you parse each product individually, you could say that each product parses itself, and include the code in each particular product class (or the parent). Each object should really have a certain function or represent a certain object – do your parsers represent an object or do they perform a function (parsing) which creates an object?

    You could also create a common parent class for each type of Source, or an Interface (IProductSource) and then call methods of that interface, without your particular objects knowing/caring about which actual data source is behind the interface.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm playing around with editing java.lang.Object for the Java Runtime Environment. I realize that
I'm playing around with the <canvas> element, drawing lines and such. I've noticed that
I'm playing around with LinqToSQL using an existing multi-lingual database, but I'm running into
I'm playing around with Ruby's .object_id and noticed that, in several sequential sessions of
I'm just started on playing around with the canvas HTML5-object. For the sake of
I've been playing around storing tweets inside mongodb, each object looks like this: {
Just playing around with some of the APIs in .NET and I can't seem
I've been playing around trying to create a transparent window that will overlay another
I'm playing around with different ways to call a function that is an attribute
Just playing around with the now released Silverlight 2.0. I'm trying to put a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.