Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: What's a good maxlength for an alphanumeric username?

  1. #1
    txtsd's Avatar
    Joined
    Dec 2012
    Posts
    642
    Userbars
    7
    Thanks
    538
    Thanked
    327/146
    DL/UL
    60/2
    Mentioned
    91 times
    Time Online
    31d 8h 56m
    Avg. Time Online
    10m

    Question What's a good maxlength for an alphanumeric username?

    Neopets' maxlength is 20, and they allow a-zA-Z0-9_
    But now the good usernames are mostly gone.

    What do you think is a good maxlength and charset?
    AND
    Do you think usernames should be case-sensitive? As in "derp", "Derp", "derP", "DERP", should all count as different usernames, or is there a disadvantage to doing this?

  2. #2
    Zeus's Avatar
    Joined
    Jan 2012
    Posts
    903
    Userbars
    8
    Thanks
    797
    Thanked
    557/243
    DL/UL
    338/0
    Mentioned
    233 times
    Time Online
    86d 10h 37m
    Avg. Time Online
    29m
    Quote Originally Posted by txtsd View Post
    Neopets' maxlength is 20, and they allow a-zA-Z0-9_
    But now the good usernames are mostly gone.

    What do you think is a good maxlength and charset?
    AND
    Do you think usernames should be case-sensitive? As in "derp", "Derp", "derP", "DERP", should all count as different usernames, or is there a disadvantage to doing this?


    I agree with how Neopets is setup.
    I'd hate if I got a badass neopets name like "Pizza" and then the following imitators appeared -
    "pIzza"
    "PiZzA"
    etc

  3. The Following 2 Users Say Thank You to Zeus For This Useful Post:

    Lamborghini (09-07-2015),txtsd (09-07-2015)

  4. #3
    DrSloth's Avatar
    Joined
    Jun 2013
    Posts
    2,179
    Userbars
    45
    Thanks
    1,616
    Thanked
    2,900/953
    DL/UL
    222/0
    Mentioned
    224 times
    Time Online
    101d 8h 9m
    Avg. Time Online
    36m
    specially with a capital i looking like and l depending the font you you.

  5. The Following User Says Thank You to DrSloth For This Useful Post:

    txtsd (09-07-2015)

  6. #4
    Zachafer's Avatar
    Joined
    Dec 2011
    Posts
    1,235
    Userbars
    11
    Thanks
    769
    Thanked
    1,466/678
    DL/UL
    98/0
    Mentioned
    512 times
    Time Online
    24d 13h 9m
    Avg. Time Online
    8m
    What's the application for? What are the usernames for?

    Case insensitivity is a MUST! Pizza = pizza = PIZZa = pizZa
    All usernames should be lowercased in the database imo.
    I woud allow [a-z0-9_] characters. Maybe a hyphen (-) character

  7. The Following 2 Users Say Thank You to Zachafer For This Useful Post:

    j03 (09-07-2015),txtsd (09-07-2015)

  8. #5
    txtsd's Avatar
    Joined
    Dec 2012
    Posts
    642
    Userbars
    7
    Thanks
    538
    Thanked
    327/146
    DL/UL
    60/2
    Mentioned
    91 times
    Time Online
    31d 8h 56m
    Avg. Time Online
    10m
    Quote Originally Posted by Zeus View Post
    I agree with how Neopets is setup.
    I'd hate if I got a badass neopets name like "Pizza" and then the following imitators appeared -
    "pIzza"
    "PiZzA"
    etc
    Quote Originally Posted by oken View Post
    specially with a capital i looking like and l depending the font you you.
    Quote Originally Posted by Zachafer View Post
    What's the application for? What are the usernames for?

    Case insensitivity is a MUST! Pizza = pizza = PIZZa = pizZa
    All usernames should be lowercased in the database imo.
    I woud allow [a-z0-9_] characters. Maybe a hyphen (-) character
    Just a petsite project that I'm building, while I learn Go and relearn SQL, that most likely will go public within the next year.

    Okay, so case-insensitive. But storing as lowercase might not be the best way to go about things. Lowercasing it for any related logic makes sense though. If I stored it as lowercase, your username would be zachafer, not Zachafer. And I'm sure people can be super anal about that, especially since I get ticked off to no end when my username is unnecessarily capitalized (fucking twitch chat).

  9. #6
    Zachafer's Avatar
    Joined
    Dec 2011
    Posts
    1,235
    Userbars
    11
    Thanks
    769
    Thanked
    1,466/678
    DL/UL
    98/0
    Mentioned
    512 times
    Time Online
    24d 13h 9m
    Avg. Time Online
    8m
    Quote Originally Posted by txtsd View Post
    Just a petsite project that I'm building, while I learn Go and relearn SQL, that most likely will go public within the next year.

    Okay, so case-insensitive. But storing as lowercase might not be the best way to go about things. Lowercasing it for any related logic makes sense though. If I stored it as lowercase, your username would be zachafer, not Zachafer. And I'm sure people can be super anal about that, especially since I get ticked off to no end when my username is unnecessarily capitalized (fucking twitch chat).
    Then go with a site-wide capitalization standard. The first letter is capatilized? Unless you want usernames like "alIlIlIlIlIlIllIIlllIIl"

  10. #7
    txtsd's Avatar
    Joined
    Dec 2012
    Posts
    642
    Userbars
    7
    Thanks
    538
    Thanked
    327/146
    DL/UL
    60/2
    Mentioned
    91 times
    Time Online
    31d 8h 56m
    Avg. Time Online
    10m
    Quote Originally Posted by Zachafer View Post
    Then go with a site-wide capitalization standard. The first letter is capatilized? Unless you want usernames like "alIlIlIlIlIlIllIIlllIIl"
    A site-wide capitalization standard is exactly what I do not want
    I'm leaning towards a maxlength of 24 and possibly
    PHP Code:
    /^[a-zA-Z][a-zA-Z0-9]*$/ 
    Disallowing underscores will prevent the universally ugly xx_herpderp_xx style names.
    Everything else is mostly alright, I think.

  11. #8
    Zachafer's Avatar
    Joined
    Dec 2011
    Posts
    1,235
    Userbars
    11
    Thanks
    769
    Thanked
    1,466/678
    DL/UL
    98/0
    Mentioned
    512 times
    Time Online
    24d 13h 9m
    Avg. Time Online
    8m
    Quote Originally Posted by txtsd View Post
    A site-wide capitalization standard is exactly what I do not want
    I'm leaning towards a maxlength of 24 and possibly
    PHP Code:
    /^[a-zA-Z][a-zA-Z0-9]*$/ 
    Disallowing underscores will prevent the universally ugly xx_herpderp_xx style names.
    Everything else is mostly alright, I think.
    Personally, I'm a fan of allowing underscores (or spaces) in the username.

    Also, you could use something like this for your username regex (specifies length 3-24):
    PHP Code:
    $rgx '/^([a-z][a-z0-9]{2,23})$/i'

  12. #9


    Roslyn's Avatar
    Joined
    Jan 2014
    Posts
    423
    Userbars
    9
    Thanks
    734
    Thanked
    923/336
    DL/UL
    3/0
    Mentioned
    248 times
    Time Online
    58d 6h 40m
    Avg. Time Online
    22m
    I like periods/hyphens more than underscores. Idk why.


    I love Jess

  13. The Following User Says Thank You to Roslyn For This Useful Post:

    txtsd (09-09-2015)

  14. #10
    Zeus's Avatar
    Joined
    Jan 2012
    Posts
    903
    Userbars
    8
    Thanks
    797
    Thanked
    557/243
    DL/UL
    338/0
    Mentioned
    233 times
    Time Online
    86d 10h 37m
    Avg. Time Online
    29m
    Quote Originally Posted by txtsd View Post
    A site-wide capitalization standard is exactly what I do not want
    I'm leaning towards a maxlength of 24 and possibly
    PHP Code:
    /^[a-zA-Z][a-zA-Z0-9]*$/ 
    Disallowing underscores will prevent the universally ugly xx_herpderp_xx style names.
    Everything else is mostly alright, I think.
    I'm going to send you a PM as I have some ideas, but I do believe you should allow hyphens. -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •