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 3242176
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:17:04+00:00 2026-05-17T18:17:04+00:00

as a beginner, I have formulated some ideas, but wanted to ask the community

  • 0

as a beginner, I have formulated some ideas, but wanted to ask the community about the best way to implement the following program:

It decodes 8 different types of data file. They are all different, but most are similar (contain a lot of similar fields). In addition, there are 3 generations of system which can generate these files. Each is slightly different, but generates the same types of files.

I need to make a visual app which can read in any one of these, plot the data in a table (using datagridview via datatable at the moment) before plotting on a graph.

There is a bit more to it, but my question is regarding the basic structure.

I would love to learn more about making best use of object oriented techniques if that would suit well.

I am using c# (unless there are better recommendations) largely due to my lacking experience and quick development time.

I am currently using one class called ‘log’ that knows what generation/log type the file that is open is. it controls reading and exporting to a datatable. A form can then give it a path, wait for it to process the file and request the datatable to display.

Any obvious improvements?

  • 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-17T18:17:04+00:00Added an answer on May 17, 2026 at 6:17 pm

    As you have realised there is a great deal of potential in creating a very elegant OOP application here.

    Your basic needs – as much as I can see from the information you have share – are:

    1) A module that recognises the type of file

    2) A module that can read the file and load the data into a common structure (is it going to be common structure??) this consists of handlers

    3) A module that can visualise the data

    For the first one, I would recommend two patterns:

    1a) Factory pattern: File is passed to a common factory and is parsed to the point that it can decide the handler

    2a) Chain-of-responsibility: File is passed to each handler which knows if it can support the file or not. If it cannot passes to the next one. At the end either one handler picks it up or an error will occur if the last handler cannot process it.

    For the second one, I recommend to design a common interface and each handler implements common tasks such as load, parse… If visualisation is different and specific to handlers then you would have those set of methods as well.

    Without knowing more about the data structure I cannot comment on the visualisation part.

    Hope this helps.

    UPDATE

    This is the factory one – a very rough pseudocode:

    Factory f = new Factory();
    ILogParser parser = f.GetParser(fileName); // pass the file name so that factory inspects the content and returns appropriate handler
    CommonDataStructure data = parser.Parse(fileName); // parse the file and return CommonDataStructure. 
    Visualiser v = new Visualiser(form1); // perhaps you want to pass the refernce of your form
    v.Visualise(data); // draw pretty stuff now!
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am beginner so have some doubt about Adobe AIR. How do I install
I have a beginner question. What is the best way to address the change
I have two questions - I'm a beginner in Java but have a huge
I am beginner.I have the following div structure in zend layout.phtml <div id='outer'>//start outer
I'm a beginner i have some problem with NSArray. I created an array and
:D I'm a Qt beginner and I have some problems. Generally, all the languages
I'm a beginner but have been working really hard to build this application. Working
I have a beginner question about dates and String in Haskell. I need to
sorry for the beginner's question, but I find it hard to understand: I have
I'm a beginner and have just about managed to put together this website with

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.