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. Names of People

Names of People

Scheduled Pinned Locked Moved The Lounge
questioncomdiscussion
40 Posts 24 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.
  • K kmoorevs

    I agree with the lack of a problem with Null as a last name at least as far as typed languages, but I suspect javascript or php may have issues depending on the kind of checks being done.

    "Go forth into the source" - Neal Morse

    Kornfeld Eliyahu PeterK Offline
    Kornfeld Eliyahu PeterK Offline
    Kornfeld Eliyahu Peter
    wrote on last edited by
    #22

    I can't see how...Even in JavaScript, where you not explicitly define types a string still a string and can not be confused with the predefined null...

    Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

    "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

    B 1 Reply Last reply
    0
    • J Jalapeno Bob

      Because, once stored in a database, we will need to look up names and the person doing the search is not the person who entered the name. Having rules for names allows us to compare partial names to locate the records for the person we are trying to look up.

      __________________ Lord, grant me the serenity to accept that there are some things I just can’t keep up with, the determination to keep up with the things I must keep up with, and the wisdom to find a good RSS feed from someone who keeps up with what I’d like to, but just don’t have the damn bandwidth to handle right now. © 2009, Rex Hammock

      J Offline
      J Offline
      jschell
      wrote on last edited by
      #23

      Which doesn't change original question. But that said you want to make something deterministic which cannot be. If the person that first entered the first name as "nine" it is unlikely to help the second person if the actually spelling of the last name is "9" or "mine" (they heard it wrong.) The only real rules - Name cannot start with nor end with spaces - Name cannot consist of nothing but spaces, which is basically same as first rule. - Name must exist. After that work on something much more important like insuring that each person gets a bill every month and that they actually pay it.

      C M 2 Replies Last reply
      0
      • J Jalapeno Bob

        Over at the Kalzumeus Software website, an article was posted Falsehoods Programmers Believe About Names[^] which, in a somewhat tongue-in-cheek manner, describes some of the bad assumptions made about peoples' names that make websites difficult to use.

        We, as programmers, have seen the problems with last names (surnames or family names) such as d'Agastino, O'Dell, McDonnell, Rice-Davies, !Mbeki, la Fayette, von Helstien, duBois, Peñia, Dönitz or Null (Yes, that is a real last name! :-D ). Although not as common, similar problems exist with first names, middle names, honorifics, suffixes (Sr., Jr., II, III, et. al.)

        Can we, being serious for a whole minute, come up with a set of sensible rules for handling all names of people that can be written in ASCII? — Adding rules for non-ASCII UniCode characters is an exercise best left for the future. Let's keep this to a discussion of rules and, for now, avoid the question of writing code to implement them – that belongs in other forums!

        __________________ Lord, grant me the serenity to accept that there are some things I just can’t keep up with, the determination to keep up with the things I must keep up with, and the wisdom to find a good RSS feed from someone who keeps up with what I’d like to, but just don’t have the damn bandwidth to handle right now. © 2009, Rex Hammock

        9 Offline
        9 Offline
        9082365
        wrote on last edited by
        #24

        Those of us who started work before computers and had to dig through whole drawers full of files marked J. Smith only to find that the one you actually wanted was on somebody else's desk in the other building find your need for 'rules' more than a touch amusing whilst also infinitely sad. Lord alone knows what you young people would do if you actually had to work for a living! ;P

        I am not a number. I am a ... no, wait!

        1 Reply Last reply
        0
        • F F ES Sitecore

          Duncan Edwards Jones wrote:

          Why do you need any rules at all?

          Agreed. It's one of those conclusions that seems to take devs a while to get to. Rules for names? I don't even implement rules for email addresses. If I need your email to be genuine I'll send you an activation link, otherwise I'll make it optional and couldn't care less what you put in it. Of course I always use "int" to store phone numbers cos that's just common sense!

          Richard Andrew x64R Offline
          Richard Andrew x64R Offline
          Richard Andrew x64
          wrote on last edited by
          #25

          F-ES Sitecore wrote:

          Of course I always use "int" to store phone numbers

          And ZIP codes! :rolleyes:

          The difficult we do right away... ...the impossible takes slightly longer.

          I 1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            What about "the artist previously known as Prince, now known as this rather odd looking squiggle"? :laugh:

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

            G Offline
            G Offline
            GenJerDan
            wrote on last edited by
            #26

            And all because Warner Brothers took out a Trade Mark on his name.

            We won't sit down. We won't shut up. We won't go quietly away. YouTube and My Mu[sic], Films and Windows Programs, etc.

            1 Reply Last reply
            0
            • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

              I can't see how...Even in JavaScript, where you not explicitly define types a string still a string and can not be confused with the predefined null...

              Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

              B Offline
              B Offline
              Brisingr Aerowing
              wrote on last edited by
              #27

              Maybe they pass it through eval?

              What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

              1 Reply Last reply
              0
              • W W Balboos GHB

                Can I have a matching bar-code?

                "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                "As far as we know, our computer has never had an undetected error." - Weisert

                "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                C Offline
                C Offline
                CBadger
                wrote on last edited by
                #28

                W∴ Balboos wrote:

                Can I have a matching bar-code?

                And a number for a name (at least close to 47) with a lifetime training regime to become the best Hitman in history! :suss:

                »»» Loading Signature ««« · · · Please Wait · · ·    :badger:   :badger:   :badger:

                1 Reply Last reply
                0
                • J jschell

                  Which doesn't change original question. But that said you want to make something deterministic which cannot be. If the person that first entered the first name as "nine" it is unlikely to help the second person if the actually spelling of the last name is "9" or "mine" (they heard it wrong.) The only real rules - Name cannot start with nor end with spaces - Name cannot consist of nothing but spaces, which is basically same as first rule. - Name must exist. After that work on something much more important like insuring that each person gets a bill every month and that they actually pay it.

                  C Offline
                  C Offline
                  CBadger
                  wrote on last edited by
                  #29

                  So if you want to test the integrity of a system name your child "SET @Students = '<[db].><[schema].>Students TRUNCATE TABLE ' + OBJECT_NAME(@Students) you can short by short hand call him student :laugh: So if the school he goes to registers his name and loses all their data it will be a sign that that school is not for your child :suss:

                  »»» Loading Signature ««« · · · Please Wait · · ·    :badger:   :badger:   :badger:

                  1 Reply Last reply
                  0
                  • R realJSOP

                    The rule is that you use nvarchar to store names in the database. You could also do away with names altogether and just assign everyone a GUID at birth. Problem solved.

                    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                    -----
                    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                    -----
                    When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                    P Offline
                    P Offline
                    Plamen Dragiyski
                    wrote on last edited by
                    #30

                    John Simmons / outlaw programmer wrote:

                    just assign everyone a GUID

                    After logging in your site:

                    Hello, 7798eded-dfac-406c-a49b-b031a7d1afc5

                    This sounds so accomodating.

                    1 Reply Last reply
                    0
                    • Richard Andrew x64R Richard Andrew x64

                      F-ES Sitecore wrote:

                      Of course I always use "int" to store phone numbers

                      And ZIP codes! :rolleyes:

                      The difficult we do right away... ...the impossible takes slightly longer.

                      I Offline
                      I Offline
                      irneb
                      wrote on last edited by
                      #31

                      Richard Andrew x64 wrote:

                      And ZIP codes! :rolleyes:

                      Yeah ... never mind that such area codes in other countries tend to have all sorts of alpha numerics in them. And then you get the odd guy wanting to input his phoneword instead of a number ... since that's how he remembers it.

                      1 Reply Last reply
                      0
                      • J Jalapeno Bob

                        Because, once stored in a database, we will need to look up names and the person doing the search is not the person who entered the name. Having rules for names allows us to compare partial names to locate the records for the person we are trying to look up.

                        __________________ Lord, grant me the serenity to accept that there are some things I just can’t keep up with, the determination to keep up with the things I must keep up with, and the wisdom to find a good RSS feed from someone who keeps up with what I’d like to, but just don’t have the damn bandwidth to handle right now. © 2009, Rex Hammock

                        B Offline
                        B Offline
                        Bruce Patin
                        wrote on last edited by
                        #32

                        First try: Just replace any special character or space with the wildcard character, then use LIKE to compare. Second try: Use SOUNDEX. Third try: Write your own SOUNDEX-like function. I did this with PostgreSQL, when I realized that some foreign names did not compare well. Eventually, though, I got tired of maintaining it, and just used SOUNDEX.

                        1 Reply Last reply
                        0
                        • OriginalGriffO OriginalGriff

                          There is no point in establishing rules for ASCII names - simply because most systems now use Unicode which allows Chinese, Persian, Hindi, Russian, Japanese, Korean, Thai, ... you get the idea. OK - I agree that name lookup is a problem with non-European names (and even some European style ones) but establishing rules for something that has pretty much been superseded already seems liek a waste of time and effort! :laugh:

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

                          H Offline
                          H Offline
                          Herbie Mountjoy
                          wrote on last edited by
                          #33

                          In a previous position I seemed to spend most of my time replacing characters that were 'reserved' in the system. It was an absolute nightmare and was the result of some clever so & so deciding to escape certain characters for some reason that was never fully explained. Apostrophes, commas, ampersands, tildes, back slashes, forward slashes. I hate them all!

                          I may not last forever but the mess I leave behind certainly will.

                          1 Reply Last reply
                          0
                          • J Jalapeno Bob

                            Over at the Kalzumeus Software website, an article was posted Falsehoods Programmers Believe About Names[^] which, in a somewhat tongue-in-cheek manner, describes some of the bad assumptions made about peoples' names that make websites difficult to use.

                            We, as programmers, have seen the problems with last names (surnames or family names) such as d'Agastino, O'Dell, McDonnell, Rice-Davies, !Mbeki, la Fayette, von Helstien, duBois, Peñia, Dönitz or Null (Yes, that is a real last name! :-D ). Although not as common, similar problems exist with first names, middle names, honorifics, suffixes (Sr., Jr., II, III, et. al.)

                            Can we, being serious for a whole minute, come up with a set of sensible rules for handling all names of people that can be written in ASCII? — Adding rules for non-ASCII UniCode characters is an exercise best left for the future. Let's keep this to a discussion of rules and, for now, avoid the question of writing code to implement them – that belongs in other forums!

                            __________________ Lord, grant me the serenity to accept that there are some things I just can’t keep up with, the determination to keep up with the things I must keep up with, and the wisdom to find a good RSS feed from someone who keeps up with what I’d like to, but just don’t have the damn bandwidth to handle right now. © 2009, Rex Hammock

                            C Offline
                            C Offline
                            Cloud William
                            wrote on last edited by
                            #34

                            What you are really looking for is a reliable way of uniquely identifying people. Name is good, but not adequate (see above re: J. Smith). I worked for [a well known credit monitoring company] that needed to do this. Add to that the problem that, in some countries with multiple official languages (e.g., Canada), John Doe may be the same person as Jacques Doe. It turns out that you can uniquely identify a person with a very small amount of extra information. For example, with full name, birth date, and current geographic location, you get something like 85% -- the problem here being ethnically common names like John Smith and Juan Gomez. Add a birth_place_ and you approach 100%. Basically, for most databases you need two fields for "name": a "Full Name" string, and a "Sort By" string. Add some software (commercial libraries are available) that takes care of the "John/Juan/Ivan/Jacques" problems, birthdate/place and current geography (zip code/postal code/city) and you can be nearly certain that you have the right person, and you can assign/retrieve a more convenient UID. The rest of the problems (e.g., last name "NULL", punctuation, etc.) are solved with correct programming. If you have trouble with "NULL", you probably have bigger things to worry about (SQL injection hacks).

                            Freedom? That is a worship word. -- Cloud William The only thing a free man can be forced to do is die.

                            1 Reply Last reply
                            0
                            • J Jalapeno Bob

                              Over at the Kalzumeus Software website, an article was posted Falsehoods Programmers Believe About Names[^] which, in a somewhat tongue-in-cheek manner, describes some of the bad assumptions made about peoples' names that make websites difficult to use.

                              We, as programmers, have seen the problems with last names (surnames or family names) such as d'Agastino, O'Dell, McDonnell, Rice-Davies, !Mbeki, la Fayette, von Helstien, duBois, Peñia, Dönitz or Null (Yes, that is a real last name! :-D ). Although not as common, similar problems exist with first names, middle names, honorifics, suffixes (Sr., Jr., II, III, et. al.)

                              Can we, being serious for a whole minute, come up with a set of sensible rules for handling all names of people that can be written in ASCII? — Adding rules for non-ASCII UniCode characters is an exercise best left for the future. Let's keep this to a discussion of rules and, for now, avoid the question of writing code to implement them – that belongs in other forums!

                              __________________ Lord, grant me the serenity to accept that there are some things I just can’t keep up with, the determination to keep up with the things I must keep up with, and the wisdom to find a good RSS feed from someone who keeps up with what I’d like to, but just don’t have the damn bandwidth to handle right now. © 2009, Rex Hammock

                              S Offline
                              S Offline
                              StatementTerminator
                              wrote on last edited by
                              #35

                              The Irish are born database killers. If we could just convince them to spell their names like O,Donald, then the tech world would be a happier place. There's really no way to cover it all but to have super long name fields, last name optional, escape and encode/decode, and all that mess. Which, of course, makes indexing and searching so much more fun. I think we're probably all in the same boat trying to deal with a livable middle ground while dealing with the occasional edge-case headache.

                              1 Reply Last reply
                              0
                              • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                                I can't see why should be any problem with any name - the only rule we have in our system, that the name can contain only printable characters...beside it it can be anything from the Unicode range... If a system has problem with names, that's a problem with the developer and not with the name...For instance the name Null. After reading some articles about it, I'm still can't understand how it can be any problem...

                                Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                                S Offline
                                S Offline
                                StatementTerminator
                                wrote on last edited by
                                #36

                                Kornfeld Eliyahu Peter wrote:

                                For instance the name Null. After reading some articles about it, I'm still can't understand how it can be any problem

                                Try inserting it into a database and then have some fun retrieving it and running queries.

                                Kornfeld Eliyahu PeterK 1 Reply Last reply
                                0
                                • S StatementTerminator

                                  Kornfeld Eliyahu Peter wrote:

                                  For instance the name Null. After reading some articles about it, I'm still can't understand how it can be any problem

                                  Try inserting it into a database and then have some fun retrieving it and running queries.

                                  Kornfeld Eliyahu PeterK Offline
                                  Kornfeld Eliyahu PeterK Offline
                                  Kornfeld Eliyahu Peter
                                  wrote on last edited by
                                  #37

                                  Not the slightest problem there...With the right type (name is a string) 'Null' (any combination of small or capital letters) will never be the same as the SQL NULL or the .NET DBNull or the JavaScript null... In the very basic level even NULL = NULL in SQL (the lowest level to access the data) evaluates to null... So as I stated before - it is the problem of the developer if the system can not handle 'Null' (or other bizarre) as string...

                                  Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                                  "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                                  1 Reply Last reply
                                  0
                                  • J jschell

                                    Which doesn't change original question. But that said you want to make something deterministic which cannot be. If the person that first entered the first name as "nine" it is unlikely to help the second person if the actually spelling of the last name is "9" or "mine" (they heard it wrong.) The only real rules - Name cannot start with nor end with spaces - Name cannot consist of nothing but spaces, which is basically same as first rule. - Name must exist. After that work on something much more important like insuring that each person gets a bill every month and that they actually pay it.

                                    M Offline
                                    M Offline
                                    Mark Whybird
                                    wrote on last edited by
                                    #38

                                    jschell wrote:

                                    - Name must exist.

                                    Why? (see originally linked article.)

                                    J 1 Reply Last reply
                                    0
                                    • OriginalGriffO OriginalGriff

                                      Kornfeld Eliyahu Peter wrote:

                                      After reading some articles about it, I'm still can't understand how it can be any problem...

                                      Spending some time in QA will cure you of that! ;)

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

                                      M Offline
                                      M Offline
                                      Mark Whybird
                                      wrote on last edited by
                                      #39

                                      Yeah - the issue is not that either your language or your code or your database don't understand the difference between "Null" and NULL - they do - but do you have actual full control over every single line of code in your stack? Really? You use no libraries at all, for anything, including transport? See this stackoverflow question for one example.

                                      1 Reply Last reply
                                      0
                                      • M Mark Whybird

                                        jschell wrote:

                                        - Name must exist.

                                        Why? (see originally linked article.)

                                        J Offline
                                        J Offline
                                        jschell
                                        wrote on last edited by
                                        #40

                                        Mark Whybird wrote:

                                        Why?

                                        I doubt that assertion. If a company wants to deal with an individual as a legal entity, then that legal entity must provide their legal name. If a company wants to deal with a person as a non-legal entity then they must decide if they want to deal with the person or not. If they do then the person must have an identifier that people can deal with. Of course in the context of the discussion one can state that if a person refuses to provide a name, regardless of whether one exists or not, and the company requires it then the company should just not do business with that person. That exceptional case would be so rare and so non-economically impactful the company should just take that option.

                                        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