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. Other Discussions
  3. The Weird and The Wonderful
  4. This is just for the laugh of it.

This is just for the laugh of it.

Scheduled Pinned Locked Moved The Weird and The Wonderful
regexcsharp
27 Posts 14 Posters 24 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.
  • A adamsappel

    Such a nice quote. Seriously, I feel your pain. :( PS: I'm not an "Rsole" (PPS: is it still 'an' and not 'a' when using illegal abreviations, whilst being a little hipocritical with your quote?)

    C Offline
    C Offline
    cpkilekofp
    wrote on last edited by
    #14

    adamsappel wrote:

    PS: I'm not an "Rsole"

    What, exactly, is an Rsole?? :confused:

    P 1 Reply Last reply
    0
    • A adamsappel

      Hi. Background: Co-Worker, (Female <- not biased, just stating the fact), Qualification: Architect... (btw, this is all C# VS2008 code, I swear) Ok, one for the count:

      public static bool NameExists (string name)
      {
      bool exists = false;
      int i = 0;
      while ((i < someListContainingNames.Count) && (exists == false))
      {
      if (someListContainingNames[i] == filename)
      {
      exists = true;
      }
      i++;
      }
      return exists;
      }

      Please see if you can read this... (Original code kept):

              else if (   ((isEXEDLL == true) || (isEXEConfig == true))
                       && ((staysTheSameEXEDLL == false) || (EXEDLLPathExistsSoCanProcess == true))
                       ) 
              {
                 if (  ((isEXEDLL == true) || (isEXEConfig == true)) 
                    && (staysTheSameEXEDLL == false)
                    ) 
                 {
                    if (canCopy.DoCopy == true)
                    {
      

      Spot the redundency (Regex's left out):

           string str = "";
           string str2 = "";
           Regex regex1 = new Regex(regex1String, RegexOptions.IgnoreCase);
           Regex regex2 = new Regex(regex2String, RegexOptions.IgnoreCase);
           Regex regex3 = new Regex(regex3String, RegexOptions.IgnoreCase);
           Regex regex4 = new Regex(regex4String, RegexOptions.IgnoreCase);
      
           if (regex1.IsMatch(filename))
           {
              str = regex1.Match(filename).Groups\["code"\].Value.ToUpper();
              str2 = regex1.Match(filename).Groups\["type"\].Value.ToUpper();
           }
           else if (regex2.IsMatch(filename))
           {
              str = regex2.Match(filename).Groups\["code"\].Value.ToUpper();
              str2 = regex2.Match(filename).Groups\["type"\].Value.ToUpper();
           }
           else if (regex3.IsMatch(filename))
           {
              str = regex3.Match(filename).Groups\["code"\].Value.ToUpper();
              str2 = regex3.Match(filename).Groups\["type"\].Value.ToUpper();
           }
           else if (regex4.IsMatch(filename))
           {
              str = regex4.Match(filename).Groups\["code"\].Value.ToUpper();
              str2 = regex4.Match(filename).Groups\["type"\].Value.ToUpper();
           }
           else
           {
              str = "";
              str2 = "";
           }
      
           if (  (regex1.IsMatch(filename))
              || (regex2.IsMatch(filename))
              || (regex3.IsMatch(filename))
              || (regex4.IsMatch(filename))
              )
      
      C Offline
      C Offline
      cpkilekofp
      wrote on last edited by
      #15

      I have a couple of apps that I maintain (originally written by, yes, a female, human as well, and an entry-level developer) who constantly checked for (boolean_value = true). :doh:

      V 1 Reply Last reply
      0
      • C cpkilekofp

        adamsappel wrote:

        PS: I'm not an "Rsole"

        What, exactly, is an Rsole?? :confused:

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #16

        Say the first letter on it's own.

        Deja View - the feeling that you've seen this post before.

        My blog | My articles | MoXAML PowerToys

        P C 2 Replies Last reply
        0
        • A adamsappel

          Why not? If it was worth mentioning that the profession of the "developer" in question is, it's worth mentioning what the sex of the person is. Well done on nitpicking. Feminist pricks.

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #17

          adamsappel wrote:

          it's worth mentioning what the sex of the person is

          Why? It doesn't have any bearing on the code.

          adamsappel wrote:

          If it was worth mentioning that the profession of the "developer" in question is

          That has a bearing on the code. The sex of the person doesn't.

          adamsappel wrote:

          Feminist pricks.

          You're just being a bigotted sexist pig, and people are rightly offended by such an obnoxious attitude.

          Deja View - the feeling that you've seen this post before.

          My blog | My articles | MoXAML PowerToys

          P A 2 Replies Last reply
          0
          • P Pete OHanlon

            Say the first letter on it's own.

            Deja View - the feeling that you've seen this post before.

            My blog | My articles | MoXAML PowerToys

            P Offline
            P Offline
            Paul Conrad
            wrote on last edited by
            #18

            Jeez, is that the letter 'a'? :laugh:

            "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

            1 Reply Last reply
            0
            • P Pete OHanlon

              adamsappel wrote:

              it's worth mentioning what the sex of the person is

              Why? It doesn't have any bearing on the code.

              adamsappel wrote:

              If it was worth mentioning that the profession of the "developer" in question is

              That has a bearing on the code. The sex of the person doesn't.

              adamsappel wrote:

              Feminist pricks.

              You're just being a bigotted sexist pig, and people are rightly offended by such an obnoxious attitude.

              Deja View - the feeling that you've seen this post before.

              My blog | My articles | MoXAML PowerToys

              P Offline
              P Offline
              Paul Conrad
              wrote on last edited by
              #19

              I agree. The quality of the code written does not have any real relation to the gender of the individual. It is more of the individual and the background, training, mentoring that they have received when learning to code.

              "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

              1 Reply Last reply
              0
              • P Pete OHanlon

                Say the first letter on it's own.

                Deja View - the feeling that you've seen this post before.

                My blog | My articles | MoXAML PowerToys

                C Offline
                C Offline
                cpkilekofp
                wrote on last edited by
                #20

                Pete O'Hanlon wrote:

                Say the first letter on it's own.

                oK :laugh:

                1 Reply Last reply
                0
                • P Pete OHanlon

                  adamsappel wrote:

                  it's worth mentioning what the sex of the person is

                  Why? It doesn't have any bearing on the code.

                  adamsappel wrote:

                  If it was worth mentioning that the profession of the "developer" in question is

                  That has a bearing on the code. The sex of the person doesn't.

                  adamsappel wrote:

                  Feminist pricks.

                  You're just being a bigotted sexist pig, and people are rightly offended by such an obnoxious attitude.

                  Deja View - the feeling that you've seen this post before.

                  My blog | My articles | MoXAML PowerToys

                  A Offline
                  A Offline
                  adamsappel
                  wrote on last edited by
                  #21

                  It's called: "being ironic", feminist pricks? blah... In my limited years of coding, I have found that female code, must not be maintained. It will work and most of the time you can build over it, but (and yes, she does have a very nice one), working with a man, who wrote such code, I would seriously (and surely you agree) kick him in the nads, even if he were a priest by proffesion. A woman on the other hand would cut of my f*%$ing head without so much as a backward glance if I even peep about her code being (unreadable) and men and woman are just different. That's a fact. Programming is basically a text representation of a train of thought of an individual within a certain set of rules. And men and woman just don't think the same, don't have the same goals, don't have the same set of rules, don't have the same taste in beverage, don't have the same anatomy (although, I do have a nice pair of tits, that may come in handy), and so on and so forth. You can kindof see the direction I'm pointing myself in here, going for the "ignorance" plea. Feminists? Man, I hate feminists. I hate racists. I hate all types of "-ists", especially those that grow on my ass(cysts, you get it?). Taking it too far. If the situation were turned around, you won't see people berating me about being a, what, hipocrit?

                  D 1 Reply Last reply
                  0
                  • A adamsappel

                    It's called: "being ironic", feminist pricks? blah... In my limited years of coding, I have found that female code, must not be maintained. It will work and most of the time you can build over it, but (and yes, she does have a very nice one), working with a man, who wrote such code, I would seriously (and surely you agree) kick him in the nads, even if he were a priest by proffesion. A woman on the other hand would cut of my f*%$ing head without so much as a backward glance if I even peep about her code being (unreadable) and men and woman are just different. That's a fact. Programming is basically a text representation of a train of thought of an individual within a certain set of rules. And men and woman just don't think the same, don't have the same goals, don't have the same set of rules, don't have the same taste in beverage, don't have the same anatomy (although, I do have a nice pair of tits, that may come in handy), and so on and so forth. You can kindof see the direction I'm pointing myself in here, going for the "ignorance" plea. Feminists? Man, I hate feminists. I hate racists. I hate all types of "-ists", especially those that grow on my ass(cysts, you get it?). Taking it too far. If the situation were turned around, you won't see people berating me about being a, what, hipocrit?

                    D Offline
                    D Offline
                    Dan Neely
                    wrote on last edited by
                    #22

                    I'm sorry you've had such bad experiences, but mine have been the opposite.

                    Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

                    1 Reply Last reply
                    0
                    • A adamsappel

                      Hi. Background: Co-Worker, (Female <- not biased, just stating the fact), Qualification: Architect... (btw, this is all C# VS2008 code, I swear) Ok, one for the count:

                      public static bool NameExists (string name)
                      {
                      bool exists = false;
                      int i = 0;
                      while ((i < someListContainingNames.Count) && (exists == false))
                      {
                      if (someListContainingNames[i] == filename)
                      {
                      exists = true;
                      }
                      i++;
                      }
                      return exists;
                      }

                      Please see if you can read this... (Original code kept):

                              else if (   ((isEXEDLL == true) || (isEXEConfig == true))
                                       && ((staysTheSameEXEDLL == false) || (EXEDLLPathExistsSoCanProcess == true))
                                       ) 
                              {
                                 if (  ((isEXEDLL == true) || (isEXEConfig == true)) 
                                    && (staysTheSameEXEDLL == false)
                                    ) 
                                 {
                                    if (canCopy.DoCopy == true)
                                    {
                      

                      Spot the redundency (Regex's left out):

                           string str = "";
                           string str2 = "";
                           Regex regex1 = new Regex(regex1String, RegexOptions.IgnoreCase);
                           Regex regex2 = new Regex(regex2String, RegexOptions.IgnoreCase);
                           Regex regex3 = new Regex(regex3String, RegexOptions.IgnoreCase);
                           Regex regex4 = new Regex(regex4String, RegexOptions.IgnoreCase);
                      
                           if (regex1.IsMatch(filename))
                           {
                              str = regex1.Match(filename).Groups\["code"\].Value.ToUpper();
                              str2 = regex1.Match(filename).Groups\["type"\].Value.ToUpper();
                           }
                           else if (regex2.IsMatch(filename))
                           {
                              str = regex2.Match(filename).Groups\["code"\].Value.ToUpper();
                              str2 = regex2.Match(filename).Groups\["type"\].Value.ToUpper();
                           }
                           else if (regex3.IsMatch(filename))
                           {
                              str = regex3.Match(filename).Groups\["code"\].Value.ToUpper();
                              str2 = regex3.Match(filename).Groups\["type"\].Value.ToUpper();
                           }
                           else if (regex4.IsMatch(filename))
                           {
                              str = regex4.Match(filename).Groups\["code"\].Value.ToUpper();
                              str2 = regex4.Match(filename).Groups\["type"\].Value.ToUpper();
                           }
                           else
                           {
                              str = "";
                              str2 = "";
                           }
                      
                           if (  (regex1.IsMatch(filename))
                              || (regex2.IsMatch(filename))
                              || (regex3.IsMatch(filename))
                              || (regex4.IsMatch(filename))
                              )
                      
                      K Offline
                      K Offline
                      KarstenK
                      wrote on last edited by
                      #23

                      You have good chances for a lot of small talk. :-O

                      Greetings from Germany

                      1 Reply Last reply
                      0
                      • D Dan Neely

                        adamsappel wrote:

                        Female <- not biased, just stating the fact

                        Then why did you mention it? :mad:

                        Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

                        V Offline
                        V Offline
                        VentsyV
                        wrote on last edited by
                        #24

                        Because it is a proof of the long held belief that (generally) women can not program. There are exceptions of course, but overall male programmers out number female programmers at least 2,3 to 1.

                        1 Reply Last reply
                        0
                        • C cpkilekofp

                          I have a couple of apps that I maintain (originally written by, yes, a female, human as well, and an entry-level developer) who constantly checked for (boolean_value = true). :doh:

                          V Offline
                          V Offline
                          VentsyV
                          wrote on last edited by
                          #25

                          (boolean_value = true) || (boolean_value == true)

                          C 1 Reply Last reply
                          0
                          • V VentsyV

                            (boolean_value = true) || (boolean_value == true)

                            C Offline
                            C Offline
                            cpkilekofp
                            wrote on last edited by
                            #26

                            VentsyV wrote:

                            (boolean_value = true) || (boolean_value == true)

                            LMAO...Reading this, I was suddenly taken back to Irving M. Copi's _Introduction_to_Logic_, which I used as a textbook for an independent study in high school...it's the definition of a tautology...making it "too true" :laugh:

                            1 Reply Last reply
                            0
                            • A adamsappel

                              Hi. Background: Co-Worker, (Female <- not biased, just stating the fact), Qualification: Architect... (btw, this is all C# VS2008 code, I swear) Ok, one for the count:

                              public static bool NameExists (string name)
                              {
                              bool exists = false;
                              int i = 0;
                              while ((i < someListContainingNames.Count) && (exists == false))
                              {
                              if (someListContainingNames[i] == filename)
                              {
                              exists = true;
                              }
                              i++;
                              }
                              return exists;
                              }

                              Please see if you can read this... (Original code kept):

                                      else if (   ((isEXEDLL == true) || (isEXEConfig == true))
                                               && ((staysTheSameEXEDLL == false) || (EXEDLLPathExistsSoCanProcess == true))
                                               ) 
                                      {
                                         if (  ((isEXEDLL == true) || (isEXEConfig == true)) 
                                            && (staysTheSameEXEDLL == false)
                                            ) 
                                         {
                                            if (canCopy.DoCopy == true)
                                            {
                              

                              Spot the redundency (Regex's left out):

                                   string str = "";
                                   string str2 = "";
                                   Regex regex1 = new Regex(regex1String, RegexOptions.IgnoreCase);
                                   Regex regex2 = new Regex(regex2String, RegexOptions.IgnoreCase);
                                   Regex regex3 = new Regex(regex3String, RegexOptions.IgnoreCase);
                                   Regex regex4 = new Regex(regex4String, RegexOptions.IgnoreCase);
                              
                                   if (regex1.IsMatch(filename))
                                   {
                                      str = regex1.Match(filename).Groups\["code"\].Value.ToUpper();
                                      str2 = regex1.Match(filename).Groups\["type"\].Value.ToUpper();
                                   }
                                   else if (regex2.IsMatch(filename))
                                   {
                                      str = regex2.Match(filename).Groups\["code"\].Value.ToUpper();
                                      str2 = regex2.Match(filename).Groups\["type"\].Value.ToUpper();
                                   }
                                   else if (regex3.IsMatch(filename))
                                   {
                                      str = regex3.Match(filename).Groups\["code"\].Value.ToUpper();
                                      str2 = regex3.Match(filename).Groups\["type"\].Value.ToUpper();
                                   }
                                   else if (regex4.IsMatch(filename))
                                   {
                                      str = regex4.Match(filename).Groups\["code"\].Value.ToUpper();
                                      str2 = regex4.Match(filename).Groups\["type"\].Value.ToUpper();
                                   }
                                   else
                                   {
                                      str = "";
                                      str2 = "";
                                   }
                              
                                   if (  (regex1.IsMatch(filename))
                                      || (regex2.IsMatch(filename))
                                      || (regex3.IsMatch(filename))
                                      || (regex4.IsMatch(filename))
                                      )
                              
                              C Offline
                              C Offline
                              cliran
                              wrote on last edited by
                              #27

                              mission impossible...

                              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