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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:34:11+00:00 2026-05-26T06:34:11+00:00

I’m just starting out refactoring my code into multiple assemblies, and feel a bit

  • 0

I’m just starting out refactoring my code into multiple assemblies, and feel a bit lost on what to put where and how to name them. Up to now I’ve just placed all common classes in a single library, but it’s time to advance on that.

So a few examples/questions to get my head started:

  1. Two classes, IMessageBus and MessageBus, which is generic EventAggregator that allows subscription and publishing of messages of any type. Can be used of any project. Where to put these classes? What to name the libary, and what else would belong in that library?

  2. What about modules of extension methods of common .net types, would you put all these in a single library?

  3. Perhaps I’m lost on exactly what justifies to move something into a library or not, I’m basically just thinking “reuse”. So if some more intelligent brief rules could be noted, would be helpful.


EDIT:

Yes my reasons are kind of vague, that’s why I look for advice. Of course one common library satisfies reuse, so there should be other justification. I’m making a handful of applications that all use the same common library. One app will be distributed to external users, and hence I must force them to update when I find bugs. For this reason I thought sometimes I may be unable to know if a bug affects that program, as I don’t remember exactly what part of the common library is utilized. So if I instead have many smaller libraries, it may be easier to identify which programs are affected, to avoid pushing unnecessary updates. (?) Btw I’m not programming for costumers, so I manage all distribution myself.

  • 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-26T06:34:12+00:00Added an answer on May 26, 2026 at 6:34 am

    Only split when you need it.

    As with naming types, variables, files, etc: do not create it if you do not know how to call it. It is a sign of not knowing what it is and what its purpose is.

    Reasons to split are: separate versioning, separate deployment and hiding types using ‘internal’

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have just tried to save a simple *.rtf file with some websites and
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I am currently running into a problem where an element is coming back from
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I am trying to loop through a bunch of documents I have to put
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out

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.