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. This is why you need a programmer living in the house

This is why you need a programmer living in the house

Scheduled Pinned Locked Moved The Lounge
csharpjavascripthelplearningpython
22 Posts 16 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.
  • M Marc Clifton

    My gf had to file an incident report for something that happened at her work for one of the juveniles (she's a clinician at this facility) and the incident report (some Justice Dept website) required a phone number. Well, the site said (and I kid you not) enter your phone number like this: ((xxx) xxx-xxxx), for example, ((619) 555-1212) It didn't work. She tried a variety of other combinations, none of which worked. So she cried for help and I tried a couple things, none of which worked either. So I decided to look at the source (not bad source code, written in Angular 2). Search the js files for "phone", I found the regex, which did not allow for parens. So, contrary to the instructions, you had to enter: xxx xxx-xxxx or xxx-xxx-xxxx or even xxx+xxx+xxxx, I assume to actually handle international numbers like +xx xxx xxx-xxxx, or maybe extensions, whatever, basically, any combination of digits, +'s and -'s between length 7 and 30. Problem solved! :jig: Of course, you wouldn't have really needed a programmer if she'd simply tried it without any parens, but the instructions were so wrong and got even me thinking in a particular mindset, that I didn't try without any parens either!

    Latest Article - Class-less Coding - Minimalist C# and Why F# and Function Programming Has Some Advantages Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

    N Offline
    N Offline
    Nish Nishant
    wrote on last edited by
    #11

    Marc Clifton wrote:

    Well, the site said (and I kid you not) enter your phone number like this: ((xxx) xxx-xxxx), for example, ((619) 555-1212)

    Who in their right minds would even think of such a ridiculous format? :~

    Nish Nishant Consultant Software Architect Ganymede Software Solutions LLC www.ganymedesoftwaresolutions.com

    1 Reply Last reply
    0
    • M Marc Clifton

      My gf had to file an incident report for something that happened at her work for one of the juveniles (she's a clinician at this facility) and the incident report (some Justice Dept website) required a phone number. Well, the site said (and I kid you not) enter your phone number like this: ((xxx) xxx-xxxx), for example, ((619) 555-1212) It didn't work. She tried a variety of other combinations, none of which worked. So she cried for help and I tried a couple things, none of which worked either. So I decided to look at the source (not bad source code, written in Angular 2). Search the js files for "phone", I found the regex, which did not allow for parens. So, contrary to the instructions, you had to enter: xxx xxx-xxxx or xxx-xxx-xxxx or even xxx+xxx+xxxx, I assume to actually handle international numbers like +xx xxx xxx-xxxx, or maybe extensions, whatever, basically, any combination of digits, +'s and -'s between length 7 and 30. Problem solved! :jig: Of course, you wouldn't have really needed a programmer if she'd simply tried it without any parens, but the instructions were so wrong and got even me thinking in a particular mindset, that I didn't try without any parens either!

      Latest Article - Class-less Coding - Minimalist C# and Why F# and Function Programming Has Some Advantages Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

      A Offline
      A Offline
      Andreas Mertens
      wrote on last edited by
      #12

      Had a very similar issue with a client. When a new customer registers for an account, he or she is required to enter a password. So they try to enter one, and get an error message that the password is not "complex" enough and to try again. Unfortunately it never says what the minimum password requirements are, so you have to keep guessing... :wtf: So the manager there asked me to figure out what this should be. I go into the code and find this horrendously complex regex expression in it. Fortunately there was also a comment stating that you need to have

      Minimum 8 characters at least 1 Uppercase Alphabet, 1 Lowercase Alphabet, 1 Number and 1 Special Character: @$!%*?&

      And checking against the regex this appeared to be correct. So I forward this information to the manager. A few weeks later I get a call back from the manager, stating that he is attempting to set up one of the new staff members in the system, and he is still having that issue with the password, despite following the above conventions. The password was something like

      CompanyName123!@#

      So, I am testing this out again, using a regex tester and this password. Finally figured out that it was restricting the password to only those characters, and that the "#" at the end was failing the test. X|

      1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        So ... what you are saying is that every home needs a programmer to get around the mistakes made by other programmers? :laugh:

        Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

        M Offline
        M Offline
        MadMyche
        wrote on last edited by
        #13

        OriginalGriff wrote: >So ... what you are saying is that every home needs a programmer to get around the mistakes made by other programmers? More like a Career Coder as opposed to the Drag-n-Drop-Development-Dude


        Director of Transmogrification Services Shinobi of Query Language Master of Yoda Conditional

        1 Reply Last reply
        0
        • M Marc Clifton

          My gf had to file an incident report for something that happened at her work for one of the juveniles (she's a clinician at this facility) and the incident report (some Justice Dept website) required a phone number. Well, the site said (and I kid you not) enter your phone number like this: ((xxx) xxx-xxxx), for example, ((619) 555-1212) It didn't work. She tried a variety of other combinations, none of which worked. So she cried for help and I tried a couple things, none of which worked either. So I decided to look at the source (not bad source code, written in Angular 2). Search the js files for "phone", I found the regex, which did not allow for parens. So, contrary to the instructions, you had to enter: xxx xxx-xxxx or xxx-xxx-xxxx or even xxx+xxx+xxxx, I assume to actually handle international numbers like +xx xxx xxx-xxxx, or maybe extensions, whatever, basically, any combination of digits, +'s and -'s between length 7 and 30. Problem solved! :jig: Of course, you wouldn't have really needed a programmer if she'd simply tried it without any parens, but the instructions were so wrong and got even me thinking in a particular mindset, that I didn't try without any parens either!

          Latest Article - Class-less Coding - Minimalist C# and Why F# and Function Programming Has Some Advantages Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

          J Offline
          J Offline
          Joe Woodbury
          wrote on last edited by
          #14

          Isn't xxx xxx-xxxx one of the other things one tries for US phone numbers? (Another being xxxxxxxxxx)

          1 Reply Last reply
          0
          • M Marc Clifton

            OriginalGriff wrote:

            what you are saying is that every home needs a programmer to get around the mistakes made by other programmers?

            Precisely! Now if only I could bill my gf for "services rendered"! :laugh:

            Latest Article - Class-less Coding - Minimalist C# and Why F# and Function Programming Has Some Advantages Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

            P Offline
            P Offline
            Peter Shaw
            wrote on last edited by
            #15

            She's your GF, your already paying .... Oh Sorry. That's not what you meant is it ;-)

            1 Reply Last reply
            0
            • M Marc Clifton

              My gf had to file an incident report for something that happened at her work for one of the juveniles (she's a clinician at this facility) and the incident report (some Justice Dept website) required a phone number. Well, the site said (and I kid you not) enter your phone number like this: ((xxx) xxx-xxxx), for example, ((619) 555-1212) It didn't work. She tried a variety of other combinations, none of which worked. So she cried for help and I tried a couple things, none of which worked either. So I decided to look at the source (not bad source code, written in Angular 2). Search the js files for "phone", I found the regex, which did not allow for parens. So, contrary to the instructions, you had to enter: xxx xxx-xxxx or xxx-xxx-xxxx or even xxx+xxx+xxxx, I assume to actually handle international numbers like +xx xxx xxx-xxxx, or maybe extensions, whatever, basically, any combination of digits, +'s and -'s between length 7 and 30. Problem solved! :jig: Of course, you wouldn't have really needed a programmer if she'd simply tried it without any parens, but the instructions were so wrong and got even me thinking in a particular mindset, that I didn't try without any parens either!

              Latest Article - Class-less Coding - Minimalist C# and Why F# and Function Programming Has Some Advantages Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

              T Offline
              T Offline
              theoldfool
              wrote on last edited by
              #16

              I know this is a few days old, but it helped me out registering for the MSFT IoT Web Conference fistoosh. I didn't sleuth it like you but when the submit button did nothing (even using Edge), I put my area code IN parens and it worked. Thank you.

              Arguing with a woman is like reading the Software License Agreement. In the end, you ignore everything and click "I agree". Anonymous

              1 Reply Last reply
              0
              • M Marc Clifton

                My gf had to file an incident report for something that happened at her work for one of the juveniles (she's a clinician at this facility) and the incident report (some Justice Dept website) required a phone number. Well, the site said (and I kid you not) enter your phone number like this: ((xxx) xxx-xxxx), for example, ((619) 555-1212) It didn't work. She tried a variety of other combinations, none of which worked. So she cried for help and I tried a couple things, none of which worked either. So I decided to look at the source (not bad source code, written in Angular 2). Search the js files for "phone", I found the regex, which did not allow for parens. So, contrary to the instructions, you had to enter: xxx xxx-xxxx or xxx-xxx-xxxx or even xxx+xxx+xxxx, I assume to actually handle international numbers like +xx xxx xxx-xxxx, or maybe extensions, whatever, basically, any combination of digits, +'s and -'s between length 7 and 30. Problem solved! :jig: Of course, you wouldn't have really needed a programmer if she'd simply tried it without any parens, but the instructions were so wrong and got even me thinking in a particular mindset, that I didn't try without any parens either!

                Latest Article - Class-less Coding - Minimalist C# and Why F# and Function Programming Has Some Advantages Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                K Offline
                K Offline
                Kirk 10389821
                wrote on last edited by
                #17

                I had this in reverse. Years ago a person used a regex (I thought to verify data after entered, but NO, it was applied as you typed). So, if you did NOT enter it as expected: (###) ###-#### it would not take it. Worse, the space after the right parens was required. Worse, it was into a FORM field, where there was NO PLACE To tell the user how to format the phone number. So, you get to this field. No idea the format required, you start typing #s, and it beeps. I got in trouble for the "tone" of my email. I went to the OWNERS office, and pulled it up, and I gave him 2 minutes to enter his phone number into the field. After 30 seconds he was ready to throw his PC against a wall. I gave him the "(" hint, he does (###) and the incessant beeping starts again (because of that space)... He was done. Good news. We NEVER published it like that! I may have been labeled "Doesn't play well with others!" LOL...

                1 Reply Last reply
                0
                • M Marc Clifton

                  My gf had to file an incident report for something that happened at her work for one of the juveniles (she's a clinician at this facility) and the incident report (some Justice Dept website) required a phone number. Well, the site said (and I kid you not) enter your phone number like this: ((xxx) xxx-xxxx), for example, ((619) 555-1212) It didn't work. She tried a variety of other combinations, none of which worked. So she cried for help and I tried a couple things, none of which worked either. So I decided to look at the source (not bad source code, written in Angular 2). Search the js files for "phone", I found the regex, which did not allow for parens. So, contrary to the instructions, you had to enter: xxx xxx-xxxx or xxx-xxx-xxxx or even xxx+xxx+xxxx, I assume to actually handle international numbers like +xx xxx xxx-xxxx, or maybe extensions, whatever, basically, any combination of digits, +'s and -'s between length 7 and 30. Problem solved! :jig: Of course, you wouldn't have really needed a programmer if she'd simply tried it without any parens, but the instructions were so wrong and got even me thinking in a particular mindset, that I didn't try without any parens either!

                  Latest Article - Class-less Coding - Minimalist C# and Why F# and Function Programming Has Some Advantages Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                  M Offline
                  M Offline
                  MikeTheFid
                  wrote on last edited by
                  #18

                  I plead total technical ignorance at all times. Reduces expectations and workload. When I have no choice but to help, however, I make them leave the room so they can't see my mojo in action. Maintains my aura of Gandalfian wizardry. :)

                  Cheers, Mike Fidler "I intend to live forever - so far, so good." Steven Wright "I almost had a psychic girlfriend but she left me before we met." Also Steven Wright "I'm addicted to placebos. I could quit, but it wouldn't matter." Steven Wright yet again.

                  1 Reply Last reply
                  0
                  • M Marc Clifton

                    My gf had to file an incident report for something that happened at her work for one of the juveniles (she's a clinician at this facility) and the incident report (some Justice Dept website) required a phone number. Well, the site said (and I kid you not) enter your phone number like this: ((xxx) xxx-xxxx), for example, ((619) 555-1212) It didn't work. She tried a variety of other combinations, none of which worked. So she cried for help and I tried a couple things, none of which worked either. So I decided to look at the source (not bad source code, written in Angular 2). Search the js files for "phone", I found the regex, which did not allow for parens. So, contrary to the instructions, you had to enter: xxx xxx-xxxx or xxx-xxx-xxxx or even xxx+xxx+xxxx, I assume to actually handle international numbers like +xx xxx xxx-xxxx, or maybe extensions, whatever, basically, any combination of digits, +'s and -'s between length 7 and 30. Problem solved! :jig: Of course, you wouldn't have really needed a programmer if she'd simply tried it without any parens, but the instructions were so wrong and got even me thinking in a particular mindset, that I didn't try without any parens either!

                    Latest Article - Class-less Coding - Minimalist C# and Why F# and Function Programming Has Some Advantages Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                    U Offline
                    U Offline
                    User 10445335
                    wrote on last edited by
                    #19

                    Telephone numbers are so basic that that validation shouldn't be required (Works or doesn't). Country code, Region code and Number. Shouldn't even need to know the Country code. Parenthesis +/-() should not be required. Oh, I forgot. You must be American.

                    U 1 Reply Last reply
                    0
                    • U User 10445335

                      Telephone numbers are so basic that that validation shouldn't be required (Works or doesn't). Country code, Region code and Number. Shouldn't even need to know the Country code. Parenthesis +/-() should not be required. Oh, I forgot. You must be American.

                      U Offline
                      U Offline
                      User 10445335
                      wrote on last edited by
                      #20

                      Oh, forgot: You still use FAX, Codger....

                      1 Reply Last reply
                      0
                      • M Marc Clifton

                        My gf had to file an incident report for something that happened at her work for one of the juveniles (she's a clinician at this facility) and the incident report (some Justice Dept website) required a phone number. Well, the site said (and I kid you not) enter your phone number like this: ((xxx) xxx-xxxx), for example, ((619) 555-1212) It didn't work. She tried a variety of other combinations, none of which worked. So she cried for help and I tried a couple things, none of which worked either. So I decided to look at the source (not bad source code, written in Angular 2). Search the js files for "phone", I found the regex, which did not allow for parens. So, contrary to the instructions, you had to enter: xxx xxx-xxxx or xxx-xxx-xxxx or even xxx+xxx+xxxx, I assume to actually handle international numbers like +xx xxx xxx-xxxx, or maybe extensions, whatever, basically, any combination of digits, +'s and -'s between length 7 and 30. Problem solved! :jig: Of course, you wouldn't have really needed a programmer if she'd simply tried it without any parens, but the instructions were so wrong and got even me thinking in a particular mindset, that I didn't try without any parens either!

                        Latest Article - Class-less Coding - Minimalist C# and Why F# and Function Programming Has Some Advantages Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                        C Offline
                        C Offline
                        Charles Programmer
                        wrote on last edited by
                        #21

                        This is why bureaucracies have bad reputations. All it takes is one idiot and now there's at least hundreds maybe thousands of us with bad thoughts about who the hell this is.

                        1 Reply Last reply
                        0
                        • OriginalGriffO OriginalGriff

                          You might want to rethink that: I suspect her "hourly rate" for rendering "services" might be higher than yours ... :laugh:

                          Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

                          H Offline
                          H Offline
                          H Brydon
                          wrote on last edited by
                          #22

                          It might be "free", in the age old principle that sex is like software: "Sex Software for free costs much more than sex software for money"

                          I'm retired. There's a nap for that... - Harvey

                          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