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. The Anti-If Campaign

The Anti-If Campaign

Scheduled Pinned Locked Moved The Lounge
csharpc++comannouncement
46 Posts 27 Posters 2 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.
  • N Nelek

    [quote] The perfect gift for programmers who decide to quit using IFs Price: € 20.00 (+20% VAT) + Shipping Minimum quantity: 5 T-Shirts ... Quantity (one size) [/quote]

    If (size != yourSize)
    { you_have_110€+_less = true;
    you_are_fucked_up = true;
    ]

    :laugh: :laugh: EDIT: I just saw the slogan at the bottom of this part[^]: "Anti-If Campaign you can quit if you want to join us" :doh: :doh: :doh:

    Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpfull answers is nice, but saying thanks can be even nicer.

    modified on Monday, January 4, 2010 3:28 PM

    B Offline
    B Offline
    Brady Kelly
    wrote on last edited by
    #31

    Nelek wrote:

    EDIT: I just saw the slogan at the bottom of this part[^]: "Anti-If Campaign you can quit if you want to join us"

    That's actually a subtle NLP embedded command feed: "You can quit if" + "you want to join us".

    1 Reply Last reply
    0
    • N Nemanja Trifunovic

      Just in case you haven't noticed, there is an "anti-if campaign[^] out there. Now, I am thinking of starting an "anti-for" one; and "anti-switch" one; and - well you get the picture. Too bad anti-goto is an old news.

      utf8-cpp

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #32

      Unbelievably stupid! :wtf:

      “Follow your bliss.” – Joseph Campbell

      1 Reply Last reply
      0
      • N Nemanja Trifunovic

        Just in case you haven't noticed, there is an "anti-if campaign[^] out there. Now, I am thinking of starting an "anti-for" one; and "anti-switch" one; and - well you get the picture. Too bad anti-goto is an old news.

        utf8-cpp

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #33

        what abt anti-VB campaign altogether :laugh:

        Ravie Busie Coding is my birth-right and bugs are part of feature my code has!

        1 Reply Last reply
        0
        • N Nemanja Trifunovic

          Just in case you haven't noticed, there is an "anti-if campaign[^] out there. Now, I am thinking of starting an "anti-for" one; and "anti-switch" one; and - well you get the picture. Too bad anti-goto is an old news.

          utf8-cpp

          M Offline
          M Offline
          Mark_Wallace
          wrote on last edited by
          #34

          I love the statement that using if statements "reduces legibility". Yup, browsing through hundreds of polymorphic object definitions to try to find out wtf the code does is much easier. They're right, though -- why use a simple branching system, when a hideously complex, unreadable one will do?

          I wanna be a eunuchs developer! Pass me a bread knife!

          T C 2 Replies Last reply
          0
          • E Ennis Ray Lynch Jr

            Most developers have no understanding of Object Oriented programming beyond the text book definition. There are some great things you can do with correctly designed OO. One really neat pattern is the Null object pattern so instead of checking for null when you call a method you have a predefined action already established on null. But then I am a dreamer.

            Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane

            U Offline
            U Offline
            User 4223959
            wrote on last edited by
            #35

            Despite all this looking like a joke, I agree too. I should add that most programmers do not have enough experience to realise how a complex state (like 10 boolean flags) can create an IF-ELSE hell, where one guy after another fixes one bug after another for a year, and still it never actually works... Just take a big "C" program (or a C++ program written by a C programmer)... :laugh:

            1 Reply Last reply
            0
            • M Mark_Wallace

              I love the statement that using if statements "reduces legibility". Yup, browsing through hundreds of polymorphic object definitions to try to find out wtf the code does is much easier. They're right, though -- why use a simple branching system, when a hideously complex, unreadable one will do?

              I wanna be a eunuchs developer! Pass me a bread knife!

              T Offline
              T Offline
              Tim Yen
              wrote on last edited by
              #36

              I agree, polymorphism is useful but can be indecipherable. Saying that large collections of if statements can be bad too. Simplify the whole lot I say, try and avoid large spaghetti messes.

              M 1 Reply Last reply
              0
              • E Ennis Ray Lynch Jr

                Most developers have no understanding of Object Oriented programming beyond the text book definition. There are some great things you can do with correctly designed OO. One really neat pattern is the Null object pattern so instead of checking for null when you call a method you have a predefined action already established on null. But then I am a dreamer.

                Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane

                M Offline
                M Offline
                Member 3964543
                wrote on last edited by
                #37

                i might get shot down for this but as I have been taught by 'books'. Is there a site/tutorial or recomended book to learn some of these things? Stephen

                E 1 Reply Last reply
                0
                • M Mark_Wallace

                  I love the statement that using if statements "reduces legibility". Yup, browsing through hundreds of polymorphic object definitions to try to find out wtf the code does is much easier. They're right, though -- why use a simple branching system, when a hideously complex, unreadable one will do?

                  I wanna be a eunuchs developer! Pass me a bread knife!

                  C Offline
                  C Offline
                  CurtainDog
                  wrote on last edited by
                  #38

                  You could use the same argument against separating code into functions so clearly something is wrong.

                  M 1 Reply Last reply
                  0
                  • E Ennis Ray Lynch Jr

                    Most developers have no understanding of Object Oriented programming beyond the text book definition. There are some great things you can do with correctly designed OO. One really neat pattern is the Null object pattern so instead of checking for null when you call a method you have a predefined action already established on null. But then I am a dreamer.

                    Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane

                    P Offline
                    P Offline
                    peterchen
                    wrote on last edited by
                    #39

                    Ennis Ray Lynch, Jr. wrote:

                    Most developers have no understanding of Object Oriented programming beyond the text book definition

                    But Anti-If is dealing with that problem like an Anti-AIDS-campain handing out free thermometers.

                    Personally, I love the idea that Raymond spends his nights posting bad regexs to mailing lists under the pseudonym of Jane Smith. He'd be like a super hero, only more nerdy and less useful. [Trevel]
                    | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server

                    1 Reply Last reply
                    0
                    • M Member 3964543

                      i might get shot down for this but as I have been taught by 'books'. Is there a site/tutorial or recomended book to learn some of these things? Stephen

                      E Offline
                      E Offline
                      Ennis Ray Lynch Jr
                      wrote on last edited by
                      #40

                      Your OO professor should have covered it. What the site is in favor of is not complete elimination of if's but complete overuse of if's when data structures are the more appropriate solution.

                      Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane

                      1 Reply Last reply
                      0
                      • N Nemanja Trifunovic

                        Just in case you haven't noticed, there is an "anti-if campaign[^] out there. Now, I am thinking of starting an "anti-for" one; and "anti-switch" one; and - well you get the picture. Too bad anti-goto is an old news.

                        utf8-cpp

                        S Offline
                        S Offline
                        SuperJames74
                        wrote on last edited by
                        #41

                        F*ck you, dude - switch statements are OVER 9000!!!! You rocksed teh rest, though - DO WANT!!

                        ---"Don't tase me, bro!"

                        1 Reply Last reply
                        0
                        • C CurtainDog

                          You could use the same argument against separating code into functions so clearly something is wrong.

                          M Offline
                          M Offline
                          Mark_Wallace
                          wrote on last edited by
                          #42

                          CurtainDog wrote:

                          You could use the same argument against separating code into functions

                          Not really; functions have unique names. You don't have to work your way through three-line parameter lists of overloaded methods to see what they do to see what parameters they have (a parameter list itself doesn't tell you anything other than the parameters a method takes). What methods mostly do in Java is declare that this <object> = <object> That is so incredibly useful, when trying to figure out what the Hell was in the original coder's head when he wrote it. OO has become a vipers' nest of technique for technique's sake (i.e. not for the sake of the end product or the people who have to maintain the code), as the article ably demonstrates -- what it really says is "Using if statements isn't the technique flavour, this month".

                          I wanna be a eunuchs developer! Pass me a bread knife!

                          1 Reply Last reply
                          0
                          • T Tim Yen

                            I agree, polymorphism is useful but can be indecipherable. Saying that large collections of if statements can be bad too. Simplify the whole lot I say, try and avoid large spaghetti messes.

                            M Offline
                            M Offline
                            Mark_Wallace
                            wrote on last edited by
                            #43

                            Tim Yen wrote:

                            Simplify the whole lot I say, try and avoid large spaghetti messes.

                            ... And document each step clearly, so the next person to pick it up doesn't have to spend three days trying to figure out why something's not working.

                            I wanna be a eunuchs developer! Pass me a bread knife!

                            1 Reply Last reply
                            0
                            • N Nemanja Trifunovic

                              Just in case you haven't noticed, there is an "anti-if campaign[^] out there. Now, I am thinking of starting an "anti-for" one; and "anti-switch" one; and - well you get the picture. Too bad anti-goto is an old news.

                              utf8-cpp

                              G Offline
                              G Offline
                              Gary Wheeler
                              wrote on last edited by
                              #44

                              Once again, some moron has discovered a bright shiny tool: the hammer. They think everything requires the hammer, and that screwdrivers, wrenches, and other tools for dealing with specific types of fasteners are not only old-fashioned but wrong. Now, if we could only get them to apply the hammer to their own thick skull, we would be free to continue on our merry way.

                              Software Zen: delete this;

                              1 Reply Last reply
                              0
                              • N Nemanja Trifunovic

                                Just in case you haven't noticed, there is an "anti-if campaign[^] out there. Now, I am thinking of starting an "anti-for" one; and "anti-switch" one; and - well you get the picture. Too bad anti-goto is an old news.

                                utf8-cpp

                                W Offline
                                W Offline
                                W Balboos GHB
                                wrote on last edited by
                                #45

                                You know a campaign is pathetic IF there simplest example is so contrived one is tempted scream at them through their monitor. An example of an if/else block with dependencies upon type! What a fine example of typical usage. Readability is the key: but the caveat is that if your readability is because you've essentially hyperlinked your code with objects, you've simply spread your mess: Myself? I prefer a solid and practical poop to their conceptual diarrhea.

                                "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

                                "It's a sad state of affairs, indeed, when you start reading my tag lines for some sort of enlightenment. Sadder still, if that's where you need to find it." - Balboos HaGadol

                                1 Reply Last reply
                                0
                                • J Jim Crafton

                                  Rumor has it that the parrots are kept in the same bunker that Dick Cheney is staying in and that both receive a healthy supply of crackers for good behavior.

                                  ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

                                  R Offline
                                  R Offline
                                  Renzo Ciafardone
                                  wrote on last edited by
                                  #46

                                  Well... PETA would probably kill the parrots and store them in a walk in freazer. It is the most humane thing to do...

                                  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