Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Design and Architecture
  4. Namespaces naming policy (English vs. native language)

Namespaces naming policy (English vs. native language)

Scheduled Pinned Locked Moved Design and Architecture
questionc++visual-studio
9 Posts 4 Posters 7 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Oshtri Deka
    wrote on last edited by
    #1

    I'm early in the process of designing a new application... to make it shorter as possible, what naming convention or policy do you prefer for your namespaces (and classes and other)? In my last company we were somewhat "xenophobic" and mostly used Croatian words, while in company where I work now we use English almost exclusively. I've been in both camps and I cannot decide to where should I turn. What is your experience with naming in your native tongue?

    P L 2 Replies Last reply
    0
    • O Oshtri Deka

      I'm early in the process of designing a new application... to make it shorter as possible, what naming convention or policy do you prefer for your namespaces (and classes and other)? In my last company we were somewhat "xenophobic" and mostly used Croatian words, while in company where I work now we use English almost exclusively. I've been in both camps and I cannot decide to where should I turn. What is your experience with naming in your native tongue?

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Well, I'm English so it makes sense for me to do this in English. However, why not follow Microsoft's naming recommendations for namespaces? CompanyName.TechnologyName[.Feature][.Design]

      Deja View - the feeling that you've seen this post before.

      My blog | My articles

      O 1 Reply Last reply
      0
      • O Oshtri Deka

        I'm early in the process of designing a new application... to make it shorter as possible, what naming convention or policy do you prefer for your namespaces (and classes and other)? In my last company we were somewhat "xenophobic" and mostly used Croatian words, while in company where I work now we use English almost exclusively. I've been in both camps and I cannot decide to where should I turn. What is your experience with naming in your native tongue?

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        Hi, I would suggest you use the same language for code as you do for comments. So if you plan on commenting in English, choose English namespaces, classes, methods, etc. And if you comment in Croatian, use Croatian identifiers for everything you create (of course the .NET Frameword classes will remain English, as in File.Open). Personally I program in English exclusively, although it isn't my native language. And I tend to buy technical books in English, not in Dutch/French/German/whatever, since that only generates delays, confusion, less choice, and more errors. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.


        1 Reply Last reply
        0
        • P Pete OHanlon

          Well, I'm English so it makes sense for me to do this in English. However, why not follow Microsoft's naming recommendations for namespaces? CompanyName.TechnologyName[.Feature][.Design]

          Deja View - the feeling that you've seen this post before.

          My blog | My articles

          O Offline
          O Offline
          Oshtri Deka
          wrote on last edited by
          #4

          I would usually do that, but this my side project. To me it looks too vain if you would make something like this Deka.UI.Web . I still have some time to think about it.

          P 1 Reply Last reply
          0
          • O Oshtri Deka

            I would usually do that, but this my side project. To me it looks too vain if you would make something like this Deka.UI.Web . I still have some time to think about it.

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #5

            Oshtri Deka wrote:

            I would usually do that, but this my side project. To me it looks too vain if you would make something like this Deka.UI.Web .

            It's not vanity. It's there to prevent namespace collisions. Suppose you have two companies producing a project called Widget, then you would have Company1.Widget and Company2.Widget. In this way, the namespaces and classes won't collide.

            Deja View - the feeling that you've seen this post before.

            My blog | My articles

            O 1 Reply Last reply
            0
            • P Pete OHanlon

              Oshtri Deka wrote:

              I would usually do that, but this my side project. To me it looks too vain if you would make something like this Deka.UI.Web .

              It's not vanity. It's there to prevent namespace collisions. Suppose you have two companies producing a project called Widget, then you would have Company1.Widget and Company2.Widget. In this way, the namespaces and classes won't collide.

              Deja View - the feeling that you've seen this post before.

              My blog | My articles

              O Offline
              O Offline
              Oshtri Deka
              wrote on last edited by
              #6

              That's obvious choice when you are working for a company, but this is a hobby project. I'll put my nickname as part of basic namespace, vain or not... and people will know of whom they should make fun, if it ends as a pile of crappy code. :-D I am paying too much attention to some details.

              P B 2 Replies Last reply
              0
              • O Oshtri Deka

                That's obvious choice when you are working for a company, but this is a hobby project. I'll put my nickname as part of basic namespace, vain or not... and people will know of whom they should make fun, if it ends as a pile of crappy code. :-D I am paying too much attention to some details.

                P Offline
                P Offline
                Pete OHanlon
                wrote on last edited by
                #7

                Oshtri Deka wrote:

                That's obvious choice when you are working for a company, but this is a hobby project.

                Still unimportant. If your code has the potential for any form of namespace collision then this is the obvious way to avoid it.

                Oshtri Deka wrote:

                I'll put my nickname as part of basic namespace

                That's fine unless your nickname is Microsoft.

                Deja View - the feeling that you've seen this post before.

                My blog | My articles

                1 Reply Last reply
                0
                • O Oshtri Deka

                  That's obvious choice when you are working for a company, but this is a hobby project. I'll put my nickname as part of basic namespace, vain or not... and people will know of whom they should make fun, if it ends as a pile of crappy code. :-D I am paying too much attention to some details.

                  B Offline
                  B Offline
                  Brady Kelly
                  wrote on last edited by
                  #8

                  Oshtri Deka wrote:

                  I am paying too much attention to some details.

                  Welcome to the analysis paralysis club.  I'm a founder member.

                  O 1 Reply Last reply
                  0
                  • B Brady Kelly

                    Oshtri Deka wrote:

                    I am paying too much attention to some details.

                    Welcome to the analysis paralysis club.  I'm a founder member.

                    O Offline
                    O Offline
                    Oshtri Deka
                    wrote on last edited by
                    #9

                    :laugh: Perhaps we should organize a support group.

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups