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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:45:47+00:00 2026-05-27T04:45:47+00:00

Currently I’m working on the project that is just born. Previous developers used to

  • 0

Currently I’m working on the project that is just born. Previous developers used to name each class prepending a shorten vendor name i.e. CssMainWindow. (Css stands for Cool Software Solutions).

My question is: Shouldn’t namespaces be used here? Then names of classes become much nicer.

That is:

namespace Css {

    class MainWindow {
        //...
    };
}

What are the (ad|dis)vantages of both methods?

  • 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-27T04:45:47+00:00Added an answer on May 27, 2026 at 4:45 am

    Appending a prefix makes the class name longer and it takes longer to type. That’s the only disadvantage I can think of.

    Using namespaces…. well you can just put

    using namespace Css;
    

    at the beginning of your files and file origin will be lost along with that.

    I guess in the end it’s up to the developer. There are 2 reasons I can think of why someone would want to identify classes:

    1) For a sense of ownership. In that case, appending a prefix is, IMO, the way to go. People using your code will know it’s YOUR code :).

    2) For grouping classes together – in which case a namespace makes more sense.

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

Sidebar

Related Questions

Currently, my MVC 3 app has a dependency on a static class that is
Currently working on database part of android project. The main aim of the project
Currently I have an ActionFilter that gets the current users name from HttpContext and
Currently i m working on a project where there are users with four roles
Currently we have a project with a standard subversion repository layout of: ./trunk ./branches
Currently, I am developing a product that does fairly intensive calculations using MS SQL
Currently, I have: <html> <div class=yes1><span><img src=img></span></div> </html> <script> var x = ='yes1' var
Currently I am adding object by creating it like: type TRecord = class private
Currently, Enum.Parse supports only the comma as the value separator, so that MemberOne,MemberThree will
Currently, I use an abstract factory to allow the specification of a custom class

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.