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. The Lounge
  3. How do you name your spaces?

How do you name your spaces?

Scheduled Pinned Locked Moved The Lounge
comquestion
38 Posts 20 Posters 0 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.
  • Sander RosselS Sander Rossel

    Let's say you're starting a new project and you pick your own name (or your company name) as default namespace, how would you do it? In my case: Sander.Rossel or SanderRossel? I'd go for SanderRossel as Sander.Rossel would imply I'd actually have Sander.SomethingElse, which clearly isn't the case. Judging from what I've seen the Sander.Rossel style is the more frequently used though. I've seen both methods and I was wondering which people prefer.

    Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.

    Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

    Regards, Sander

    N Offline
    N Offline
    Nagy Vilmos
    wrote on last edited by
    #10

    I follow the Java standard for package names, so everything is under com.vilmos. Actually that's a lie, it's mostly `com.lexa`, but that's because there is a master project called Lexa.

    veni bibi saltavi

    I Sander RosselS 2 Replies Last reply
    0
    • N Nagy Vilmos

      I follow the Java standard for package names, so everything is under com.vilmos. Actually that's a lie, it's mostly `com.lexa`, but that's because there is a master project called Lexa.

      veni bibi saltavi

      I Offline
      I Offline
      Ian Shlasko
      wrote on last edited by
      #11

      Bleh, I hate that convention... Why, when I'm searching through my endless list of dependencies (Don't get me started...), should I have to remember whether it's a com, net, or org? .NET just does it better (Like so many things)... Anything in the basic framework is System.*, anything Windows-specific is Microsoft.*, and anything else is CompanyName.* or LibraryName.*

      Proud to have finally moved to the A-Ark. Which one are you in?
      Author of the Guardians Saga (Sci-Fi/Fantasy novels)

      1 Reply Last reply
      0
      • Sander RosselS Sander Rossel

        Let's say you're starting a new project and you pick your own name (or your company name) as default namespace, how would you do it? In my case: Sander.Rossel or SanderRossel? I'd go for SanderRossel as Sander.Rossel would imply I'd actually have Sander.SomethingElse, which clearly isn't the case. Judging from what I've seen the Sander.Rossel style is the more frequently used though. I've seen both methods and I was wondering which people prefer.

        Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.

        Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

        Regards, Sander

        S Offline
        S Offline
        Slacker007
        wrote on last edited by
        #12

        I use the alphabet. a.b.c etc... j/k CompanyName.SoftwareProjectName.VisualStudioProjectName (ACME.RoadRunner.DAL) or something like that. or SoftwareProjectName.VisualStudioProjectName (RoadRunner.DAL) or something like that.

        N Sander RosselS 2 Replies Last reply
        0
        • Sander RosselS Sander Rossel

          Let's say you're starting a new project and you pick your own name (or your company name) as default namespace, how would you do it? In my case: Sander.Rossel or SanderRossel? I'd go for SanderRossel as Sander.Rossel would imply I'd actually have Sander.SomethingElse, which clearly isn't the case. Judging from what I've seen the Sander.Rossel style is the more frequently used though. I've seen both methods and I was wondering which people prefer.

          Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.

          Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

          Regards, Sander

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #13

          PIEBALD
          PIEBALD.Lib
          PIEBALD.Data
          PIEBALD.Type

          etc.

          1 Reply Last reply
          0
          • Sander RosselS Sander Rossel

            Let's say you're starting a new project and you pick your own name (or your company name) as default namespace, how would you do it? In my case: Sander.Rossel or SanderRossel? I'd go for SanderRossel as Sander.Rossel would imply I'd actually have Sander.SomethingElse, which clearly isn't the case. Judging from what I've seen the Sander.Rossel style is the more frequently used though. I've seen both methods and I was wondering which people prefer.

            Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.

            Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

            Regards, Sander

            J Offline
            J Offline
            Jorgen Andersson
            wrote on last edited by
            #14

            According to standard[^].

            Wrong is evil and must be defeated. - Jeff Ello

            C P Sander RosselS 3 Replies Last reply
            0
            • Sander RosselS Sander Rossel

              Let's say you're starting a new project and you pick your own name (or your company name) as default namespace, how would you do it? In my case: Sander.Rossel or SanderRossel? I'd go for SanderRossel as Sander.Rossel would imply I'd actually have Sander.SomethingElse, which clearly isn't the case. Judging from what I've seen the Sander.Rossel style is the more frequently used though. I've seen both methods and I was wondering which people prefer.

              Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.

              Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

              Regards, Sander

              K Offline
              K Offline
              Kevin Marois
              wrote on last edited by
              #15

              Since a solution can contain projects directly related to an app, as well as commonly shared projects, I use the following. Note that not all are needed: ** For the app itself Company.Project.Core Company.Project.DAL Company.Project.BL Company.Project.Entities Company.Project.Shared Company.Project.Tools Company.Project.UI.WPF.Controls Company.Project.UI.WPF.Desktop Company.Project.UI.WPF.Phone Company.Project.UI.WPF.Tablet Company.Project.UI.Web.MVC ** Projects shared by many apps Company.WPF.Controls Company.WPF.Entities Company.WPF.Themes Company.WPF.Utilites

              If it's not broken, fix it until it is

              1 Reply Last reply
              0
              • J Jorgen Andersson

                According to standard[^].

                Wrong is evil and must be defeated. - Jeff Ello

                C Offline
                C Offline
                CHill60
                wrote on last edited by
                #16

                Me too. If I get the chance. As a contractor I either have to be "whiter than white" (which is why I follow the M$ way whenever possible) or have to adhere to local convention, regardless of how silly it might be :sigh:

                1 Reply Last reply
                0
                • Sander RosselS Sander Rossel

                  Let's say you're starting a new project and you pick your own name (or your company name) as default namespace, how would you do it? In my case: Sander.Rossel or SanderRossel? I'd go for SanderRossel as Sander.Rossel would imply I'd actually have Sander.SomethingElse, which clearly isn't the case. Judging from what I've seen the Sander.Rossel style is the more frequently used though. I've seen both methods and I was wondering which people prefer.

                  Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.

                  Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                  Regards, Sander

                  G Offline
                  G Offline
                  Gary Wheeler
                  wrote on last edited by
                  #17

                  Since the source code for our projects is proprietary, we omit the company identification from the namespace name. For .NET, our namespaces are _Assembly_{.Package} where _Assembly_ is the assembly name and the {.Package} suffix is only used where an assembly contains more than one significant body of code. For C++ we usually just use the global namespace. I did have one C++ project where a combination of namespace's and a templated base class really improved the readability of a pile of related classes.

                  Software Zen: delete this;

                  1 Reply Last reply
                  0
                  • Sander RosselS Sander Rossel

                    Let's say you're starting a new project and you pick your own name (or your company name) as default namespace, how would you do it? In my case: Sander.Rossel or SanderRossel? I'd go for SanderRossel as Sander.Rossel would imply I'd actually have Sander.SomethingElse, which clearly isn't the case. Judging from what I've seen the Sander.Rossel style is the more frequently used though. I've seen both methods and I was wondering which people prefer.

                    Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.

                    Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                    Regards, Sander

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #18

                    Last time I needed a namespace, I happened to play a game. My new commander had just arrived at my base and yelled "Forces of chaos, bow to me!" So my new namespace became FoC, which is very accurate for most software projects.

                    The language is JavaScript. that of Mordor, which I will not utter here
                    This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                    "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                    1 Reply Last reply
                    0
                    • S Slacker007

                      I use the alphabet. a.b.c etc... j/k CompanyName.SoftwareProjectName.VisualStudioProjectName (ACME.RoadRunner.DAL) or something like that. or SoftwareProjectName.VisualStudioProjectName (RoadRunner.DAL) or something like that.

                      N Offline
                      N Offline
                      Nueman
                      wrote on last edited by
                      #19

                      Slacker007 wrote:

                      ACME.RoadRunner

                      beep beep

                      What we got here is a failure to communicate

                      S 1 Reply Last reply
                      0
                      • N Nueman

                        Slacker007 wrote:

                        ACME.RoadRunner

                        beep beep

                        What we got here is a failure to communicate

                        S Offline
                        S Offline
                        Slacker007
                        wrote on last edited by
                        #20

                        :-D :thumbsup:

                        1 Reply Last reply
                        0
                        • J Jorgen Andersson

                          According to standard[^].

                          Wrong is evil and must be defeated. - Jeff Ello

                          P Offline
                          P Offline
                          PIEBALDconsult
                          wrote on last edited by
                          #21

                          "CONSIDER using plural namespace names where appropriate." Never pluralize.

                          J Sander RosselS 2 Replies Last reply
                          0
                          • P PIEBALDconsult

                            "CONSIDER using plural namespace names where appropriate." Never pluralize.

                            J Offline
                            J Offline
                            Jorgen Andersson
                            wrote on last edited by
                            #22

                            And your reasoning is?

                            Wrong is evil and must be defeated. - Jeff Ello

                            1 Reply Last reply
                            0
                            • OriginalGriffO OriginalGriff

                              Try Sander.CatOwner, or Sander.Wood.Smooth perhaps?

                              Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                              Sander RosselS Offline
                              Sander RosselS Offline
                              Sander Rossel
                              wrote on last edited by
                              #23

                              Sander.CatOwner, I like it! Gives a personal touch to my software :laugh:

                              Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.

                              Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                              Regards, Sander

                              1 Reply Last reply
                              0
                              • L Lost User

                                Sander Rossel wrote:

                                I'd go for SanderRossel as Sander.Rossel would imply I'd actually have Sander.SomethingElse, which clearly isn't the case.

                                By your redenation; Rossel.Sander and Rossel.Nika :)

                                Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                                Sander RosselS Offline
                                Sander RosselS Offline
                                Sander Rossel
                                wrote on last edited by
                                #24

                                Well, Nika DOES love to sleep behind the computer, just like her owner :D

                                Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.

                                Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                                Regards, Sander

                                1 Reply Last reply
                                0
                                • N Nagy Vilmos

                                  I follow the Java standard for package names, so everything is under com.vilmos. Actually that's a lie, it's mostly `com.lexa`, but that's because there is a master project called Lexa.

                                  veni bibi saltavi

                                  Sander RosselS Offline
                                  Sander RosselS Offline
                                  Sander Rossel
                                  wrote on last edited by
                                  #25

                                  Nagy Vilmos wrote:

                                  there is a master project called Lexa

                                  The #1 Dutch dating site? :omg:

                                  Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.

                                  Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                                  Regards, Sander

                                  1 Reply Last reply
                                  0
                                  • S Slacker007

                                    I use the alphabet. a.b.c etc... j/k CompanyName.SoftwareProjectName.VisualStudioProjectName (ACME.RoadRunner.DAL) or something like that. or SoftwareProjectName.VisualStudioProjectName (RoadRunner.DAL) or something like that.

                                    Sander RosselS Offline
                                    Sander RosselS Offline
                                    Sander Rossel
                                    wrote on last edited by
                                    #26

                                    Slacker007 wrote:

                                    ACME.RoadRunner

                                    Well, at least that ACME stuff crashed about as often as Visual Studio :laugh: :thumbsup:

                                    Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.

                                    Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                                    Regards, Sander

                                    1 Reply Last reply
                                    0
                                    • P PIEBALDconsult

                                      "CONSIDER using plural namespace names where appropriate." Never pluralize.

                                      Sander RosselS Offline
                                      Sander RosselS Offline
                                      Sander Rossel
                                      wrote on last edited by
                                      #27

                                      That's a rule for database tables :)

                                      Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.

                                      Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                                      Regards, Sander

                                      P J 2 Replies Last reply
                                      0
                                      • J Jorgen Andersson

                                        According to standard[^].

                                        Wrong is evil and must be defeated. - Jeff Ello

                                        Sander RosselS Offline
                                        Sander RosselS Offline
                                        Sander Rossel
                                        wrote on last edited by
                                        #28

                                        MSDN wrote:

                                        X DO NOT use the same name for a namespace and a type in that namespace.

                                        HATE it when that happens :sigh:

                                        Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.

                                        Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                                        Regards, Sander

                                        1 Reply Last reply
                                        0
                                        • Sander RosselS Sander Rossel

                                          That's a rule for database tables :)

                                          Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.

                                          Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                                          Regards, Sander

                                          P Offline
                                          P Offline
                                          PIEBALDconsult
                                          wrote on last edited by
                                          #29

                                          And still a bad idea.

                                          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