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

  • Home
  • SEARCH
  • 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 804337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:54:11+00:00 2026-05-14T23:54:11+00:00

In my design I am using objects that evaluate a data record. The constructor

  • 0

In my design I am using objects that evaluate a data record. The constructor is called with the data record and type of evaluation as parameters and then the constructor calls all of the object’s code necessary to evaluate the record. This includes using the type of evaluation to find additional parameter-like data in a text file.

There are in the neighborhood of 250 unique evaluation types that use the same or similar code and unique parameters coming from the text file.

Some of these evaluations use different code so I benefit a lot from this model because I can use inheritance and polymorphism.

Once the object is created there isn’t any need to execute additional code on the object (at least for now) and it is used more like a struct; its kept on a list and 3 properties are used later.

I think this design is the easiest to understand, code, and read.

A logical alternative I guess would be using functions that return score structs, but you can’t inherit from methods so it would make it kind of sloppy imo.

I am using vb.net and these classes will be used in an asp.net web app as well as in a distributed app.

thanks for your input

  • 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-14T23:54:11+00:00Added an answer on May 14, 2026 at 11:54 pm

    Executing code in a constructor is OK; but having only properties with no methods might be a violation of the tell don’t ask principle: perhaps instead those properties should be private, and the code which uses (“asks”) those properties should become methods of the class (which you can invoke or “tell”).

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

Sidebar

Related Questions

I am generating a sequence of Step objects that differ by Type and data
I'm looking for feedback on the Data Access Object design pattern and using it
I'm using a design pattern that uses the return statement to expose public class
http://betawww.helpcurenow.org/about/financial-accountability/ http://blog.helpcurenow.org/ I'm using a design that incorporates lots of 1px dashed borders. I
Design question for using Business Objects as formBackingObjects in a Spring SimpleFormController. Our controller's
Lets say I have some domain objects that will need to be serialized/packed using
I've been running into a problem where using objects from two datacontexts that are
Well, I have developed a java application using several objects relationships that make the
I've been thinking recently on using the Object Oriented design in the sorting algorithm.
I created the Layout design using java code only not from the XML Layout

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.