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
A

adamsappel

@adamsappel
About
Posts
8
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Words cannot describe my pain
    A adamsappel

    Seriously, 1467 lines worth of copy and pasting. I don't care if he/she's your boss, shoot them, or better yet, give me their id, I'll do it...

    The Weird and The Wonderful php visual-studio linq com beta-testing

  • OMG a "Goto"
    A adamsappel

    Even Java has the "goto" similarity where you can "continue" to a label.

    The Weird and The Wonderful asp-net com help question

  • Another Horror
    A adamsappel

    now THAT'S a true horror.

    The Weird and The Wonderful

  • This is just for the laugh of it.
    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?

    The Weird and The Wonderful regex csharp

  • This is just for the laugh of it.
    A adamsappel

    Not saying females aren't technically sound, just saying their track record isn't exactly up to scratch, which is kind of contradicting myself, so ignore my first statement... :)

    The Weird and The Wonderful regex csharp

  • This is just for the laugh of 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?)

    The Weird and The Wonderful regex csharp

  • This is just for the laugh of it.
    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.

    The Weird and The Wonderful regex csharp

  • This is just for the laugh of it.
    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))
            )
    
    The Weird and The Wonderful regex csharp
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups