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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:48:48+00:00 2026-05-11T18:48:48+00:00

I’d like to have your opinion on a specific case, please. This is about

  • 0

I’d like to have your opinion on a specific case, please. This is about Service Layer vs. Helper Objects – and I’m not looking for idealistic patterns, but merely a good understanding of what my dear programming colleagues think about this:

In my current application I have a full domain model (Linq to Sql, extremely lightweight repositories and then use extension methods across IQueryable<> to filter/sort/order based on business requirements), and then a service layer which contains services based on grouping of responsibilities, such as IRegistrationService (register users, check availability of login names etc.)

Now the caveat. I also have some “Helper” classes which do things like encryption, and I’ve also stuffed other otherwise ungroupable elements in that directory (such as custom enums etc.)

I need to create a new class now which will handle the generation of custom links for my application, which is barely more than String.Format with different objects and taking their properties into account. The inner workings are irrelevant. However, I have a hard time instantiating some kind of “LinkService” now that’ll do that – I feel like I’m going to end up with 100 services (and their interfaces + implementation) when I’m done.

At the same time I don’t feel like I want to create some loose mix of classes and other stuff in my “Helpers” namespace/directory (e.g. LinkManager).

What to do? Where do you guys put stuff that’s still somewhat business layer level, but at the same time how do you limit the number of items in your business/service layer? Where do you stick all those little helper classes, such as intermediate objects that simplify and manage Session access (I assume you want to have this strongly typed – at least I do)?

Let me know what you think? Thanks !

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

    To me, using the right tool for the job is key. If you need some kind of facility to generate links, which is basically a mapping of entity properties to formatted strings, then write a facility to do that. It doesn’t have to be a service…on the contrary, having a full blown service for something like that is probably overkill. However, I wouldn’t just lump this into your general “helpers”. It sounds like this is something that has a specific purpose and intent, with a specific kind of behavior behind it. As such, put it in a location appropriately suited for that behavior…even if thats a new project.

    I try not to have a huge lump of “general” code in my applications. Everything has a purpose and implements a specific behavior. Sometimes that purpose and behavior are highly reusable, but I still try to organize those reusable elements of my domain logically. From a high level, I see most of my applications divided into the following:

    1. Client
    2. API/Service
    3. Domain
    4. Data Access (Optional)
    5. Framework

    A lot of this kind of reusable functionality falls in sort of a nether region between Framework and Domain. Part of it may exist as some base classes and/or interfaces and supporting types in Framework, with the other half, the concrete implementations, residing within my Domain. It sometimes seems odd, but organizing it this way helps me keep my domain as clean as possible (dedicated to business concerns), while still allowing me to abstract common and reusable concepts into lower level “framework” types.

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

Sidebar

Related Questions

I need to clean up various Word 'smart' characters in user input, including but
i want to parse a xhtml file and display in UITableView. what is the
public static bool CheckLogin(string Username, string Password, bool AutoLogin) { bool LoginSuccessful; // Trim

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.