Jump to content
Xtreme .Net Talk

When to create a new class of functionality


Recommended Posts

Guest dkode
Posted

I am sort of puzzled when it comes to when to create a seperate class of functionality

 

Here's an example of an app I am creating right now.

 

User clicks a button,

selects year from a combo drop down

clicks a button

code is executed in the click code of the button that connects to an access database, runs a query and then takes the results and inserts it into a new excel spreadsheet.

quite a bit of formatting of the excel spreadsheet occurs in 6 different worksheets

 

Now,

 

I am wondering if i should break the code up into seperate classes that performs the queries, formatting etc.

 

If i do seperate it out, what is the benefits of doing it this way?

 

Is there a performance gain or loss?

 

Thank you.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...