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.
  • 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
            • 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

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

              And it's wrong, well, at least when it comes to standards. The ISO standard says Pluralize.

              Wrong is evil and must be defeated. - Jeff Ello

              Sander RosselS 1 Reply Last reply
              0
              • J Jorgen Andersson

                And it's wrong, well, at least when it comes to standards. The ISO standard says Pluralize.

                Wrong is evil and must be defeated. - Jeff Ello

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

                Some pretty good reasons to singularize[^] :)

                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 1 Reply Last reply
                0
                • Sander RosselS Sander Rossel

                  Some pretty good reasons to singularize[^] :)

                  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
                  #32

                  The Joint Technical Committee (ISO/IEC JTC 1, Information technology, Subcommittee SC 32) that develops the SQL Standard has specified that one should follow ISO/IEC_11179[^] for naming. Which states Singular for Columns and Plural for Tables. The point of following standards, even if you don't like the aesthetics, is (amongst others) to minimize ambiguity. The concept behind it is as simple as it gets. A row is singular. A collection of rows is plural. So reason one in your link is just conceptually wrong. Yes, an applebag can contain apples but you don't name the bag "Apple", you name it "Bag". The content that you search are Apples. But I guess that's why you see so many tables following the pattern "tblCustomer". X| And the rest is just opinions. As far as I'm concerned you can do as you want. But if you choose one way, you should stick to it. That's much more important

                  Wrong is evil and must be defeated. - Jeff Ello

                  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
                    loctrice
                    wrote on last edited by
                    #33

                    Sander Rossel wrote:

                    which clearly isn't the case at this time

                    I worked for a company that did something similar. They also had code that carried over from the last company. What happened was the dev team split from the web team into two separate companies. So they kept all their code. They ended up with two namespaces. Not that you're going to clone yourself in this case, but I'm just pointing out it's possible you'd want to have Sander.SomethingElse later on.

                    Elephant elephant elephant, sunshine sunshine sunshine

                    Sander RosselS 1 Reply Last reply
                    0
                    • L loctrice

                      Sander Rossel wrote:

                      which clearly isn't the case at this time

                      I worked for a company that did something similar. They also had code that carried over from the last company. What happened was the dev team split from the web team into two separate companies. So they kept all their code. They ended up with two namespaces. Not that you're going to clone yourself in this case, but I'm just pointing out it's possible you'd want to have Sander.SomethingElse later on.

                      Elephant elephant elephant, sunshine sunshine sunshine

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

                      Well, I have a good friend who's first name is also Sander. If we ever wrote software together we'd have Sander.Rossel and Sander.HisLastName or maybe Sander.JointForces ;p

                      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 Simon_Whale

                        :laugh: I keep wanting to introduce a classed called "BlessedAreTheCheeseMakers" but my line manager won't let me, because of the parent company's audit policies :(

                        Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON

                        S Offline
                        S Offline
                        Sean McPoland 0
                        wrote on last edited by
                        #35

                        I've always wanted to call my classes: WeAreNowTheKnightsWhoSay-ekki-ekki-ekki-pitang-zoom-boing! Watched it again last night, no really! Just such good good fun!

                        B 1 Reply Last reply
                        0
                        • S Sean McPoland 0

                          I've always wanted to call my classes: WeAreNowTheKnightsWhoSay-ekki-ekki-ekki-pitang-zoom-boing! Watched it again last night, no really! Just such good good fun!

                          B Offline
                          B Offline
                          BrainiacV
                          wrote on last edited by
                          #36

                          Sean McPoland wrote:

                          Watched it again last night,

                          A sobering thought[^]

                          Psychosis at 10 Film at 11 Those who do not remember the past, are doomed to repeat it. Those who do not remember the past, cannot build upon it.

                          S 1 Reply Last reply
                          0
                          • B BrainiacV

                            Sean McPoland wrote:

                            Watched it again last night,

                            A sobering thought[^]

                            Psychosis at 10 Film at 11 Those who do not remember the past, are doomed to repeat it. Those who do not remember the past, cannot build upon it.

                            S Offline
                            S Offline
                            Sean McPoland 0
                            wrote on last edited by
                            #37

                            Ain't that the truth, I 'know' it was made in 1975, and I watched it in 1975, but when you put it like that, It's another dimension!

                            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

                              A Offline
                              A Offline
                              Al Chak
                              wrote on last edited by
                              #38

                              https://en.wikipedia.org/wiki/Taumatawhakatangihangakoauauotamateapokaiwhenuakitanatahu[^]

                              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