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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:01:20+00:00 2026-05-20T13:01:20+00:00

I saw in an application where it had interfaces such as: IHasContent IHasValue IHasMesh

  • 0

I saw in an application where it had interfaces such as:

IHasContent
IHasValue
IHasMesh
IHasGeometry
IHasTransformation

Should they not be?:

IHaveContent
IHaveValue
...

Or?:

IIncludeContent
IIncludeValue
...

Personally I am leaning towards just making them:

IContent
IValue
IMesh
IGeometry
ITransform

Because isn’t ISomething already implies that it has that something?

As for the last one, should I make it ITransformable instead?

I think using I + (Has/Have/Include/Exist, etc) + Name makes the interface names more confusing.

Any ideas on how to come up with better interface names that doesn’t feel awkward, is to the point, and gets the meaning across?

  • 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-20T13:01:21+00:00Added an answer on May 20, 2026 at 1:01 pm

    Some of these names (Content, Value, etc) are vague, and do little to describe the content/behaviour of an item. In general, names should be as specific and distinct as possible – IScriptParameter might be more descriptive than IValue. As your project grows, having more descriptive names will make your types much easier to distinguish (if you’re not careful you could end up with IValue and INumber and IAmount to handle variations of “values”!)

    If your interface (e.g. IMesh) means “provides the properties of a mesh”, then IMesh is a perfectly fine name – it describes the fact that you can treat the object as if it were a Mesh.

    If your interface is used to apply an action (eg. to render the object as a mesh, or to apply a transform to the object), then consider using a verb/adjective rather than noun naming (e.g. IRenderable, ITransformable) – this is a common pattern in .net (IEnumerable (verb/adjective) rather than ICollection (noun), for example)

    To me, “IHasMesh” sounds more like IMeshContainer – i.e. it is an object that contains a mesh, and the interface allows me to “get the mesh”. So it would not allow me to act on or query data within the mesh, but simply fetch an entire Mesh object through the interface.

    So I would use:

    • ITransformable if the object can be transformed via the interface
    • ITransform if the object can be used directly as if it is a Transform
    • IHasTransform/ITransformContainer/ITransformProvider if the object is a container that can be queried to extract a Transform object
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

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.