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. Innovation in Q&A

Innovation in Q&A

Scheduled Pinned Locked Moved The Lounge
questionoop
20 Posts 14 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.
  • P Pete OHanlon

    I've seen a lot of this modifier in my time. Heck, I've been known to write a lot of code using absurd. BTW - it's a compiler switch which is probably why you've never seen it. It defaults to true.

    This space for rent

    OriginalGriffO Offline
    OriginalGriffO Offline
    OriginalGriff
    wrote on last edited by
    #4

    Pete O'Hanlon wrote:

    It defaults to true.

    Only in VS 2008 and below: in the later versions it has an "Absurdity Level" which runs from 0 to 10. The default is 10 for new QA projects.

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

    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
    "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

    1 Reply Last reply
    0
    • C CodeWraith

      I just found this in a comment to a question:

      Quote:

      ...because the code you show is absurd.

      I know abstract classes, but have not yet heard officially of absurd classes, but I have seen many of them. Will we now need a new class modifier?

      // absurd class
      public absurd class Foo
      {
      // absurd method
      public absurd void DoSomethingAbsurd();
      }

      What will be the impact in terms of inheritance? Must absurd methods be overridden? Or may they not be overriden at all? Edit: Will there be such a thing as purely absurd classes, where every method and property is declared as absurd? Will the absurdity level someone mentioned below be the inheritance depth of absurd base classes?

      I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

      1 Offline
      1 Offline
      11917640 Member
      wrote on last edited by
      #5

      Good idea to add this keyword to C++ and mark the Boost Library classes with it.

      1 Reply Last reply
      0
      • C CodeWraith

        I just found this in a comment to a question:

        Quote:

        ...because the code you show is absurd.

        I know abstract classes, but have not yet heard officially of absurd classes, but I have seen many of them. Will we now need a new class modifier?

        // absurd class
        public absurd class Foo
        {
        // absurd method
        public absurd void DoSomethingAbsurd();
        }

        What will be the impact in terms of inheritance? Must absurd methods be overridden? Or may they not be overriden at all? Edit: Will there be such a thing as purely absurd classes, where every method and property is declared as absurd? Will the absurdity level someone mentioned below be the inheritance depth of absurd base classes?

        I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

        F Offline
        F Offline
        F ES Sitecore
        wrote on last edited by
        #6

        I believe it's an attribute

        [Absurd]
        public class Foo
        {
        }

        D 1 Reply Last reply
        0
        • C CodeWraith

          I just found this in a comment to a question:

          Quote:

          ...because the code you show is absurd.

          I know abstract classes, but have not yet heard officially of absurd classes, but I have seen many of them. Will we now need a new class modifier?

          // absurd class
          public absurd class Foo
          {
          // absurd method
          public absurd void DoSomethingAbsurd();
          }

          What will be the impact in terms of inheritance? Must absurd methods be overridden? Or may they not be overriden at all? Edit: Will there be such a thing as purely absurd classes, where every method and property is declared as absurd? Will the absurdity level someone mentioned below be the inheritance depth of absurd base classes?

          I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

          H Offline
          H Offline
          HobbyProggy
          wrote on last edited by
          #7

          I guess we should extend this to the ZSpam and Absurd watch... :-\

          Rules for the FOSW ![^]

          if(!string.IsNullOrWhiteSpace(_signature))
          {
          MessageBox.Show("This is my signature: " + Environment.NewLine + _signature);
          }
          else
          {
          MessageBox.Show("404-Signature not found");
          }

          1 Reply Last reply
          0
          • F F ES Sitecore

            I believe it's an attribute

            [Absurd]
            public class Foo
            {
            }

            D Offline
            D Offline
            Daniel Pfeffer
            wrote on last edited by
            #8

            In C++, I suggest that we expand this as follows: [[Absurd]] [[Ludicrous]] [[Plaid]] Furthermore, in , we should add: make_normal::type make_absurd::type make_ludicrous::type make_plaid::type is_normal::value is_absurd::value is_ludicrous::value is_plaid::value (Similar to make_signed::type and is_signed::value) Is anyone volunteering to put it in proper proposal format? :)

            Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

            1 Reply Last reply
            0
            • C CodeWraith

              I just found this in a comment to a question:

              Quote:

              ...because the code you show is absurd.

              I know abstract classes, but have not yet heard officially of absurd classes, but I have seen many of them. Will we now need a new class modifier?

              // absurd class
              public absurd class Foo
              {
              // absurd method
              public absurd void DoSomethingAbsurd();
              }

              What will be the impact in terms of inheritance? Must absurd methods be overridden? Or may they not be overriden at all? Edit: Will there be such a thing as purely absurd classes, where every method and property is declared as absurd? Will the absurdity level someone mentioned below be the inheritance depth of absurd base classes?

              I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

              N Offline
              N Offline
              Nathan Minier
              wrote on last edited by
              #9

              The problem is that when code with the absurd keyword is run, it throws an event that decrements my _faith_in_humanity counter.

              "There are three kinds of lies: lies, damned lies and statistics." - Benjamin Disraeli

              C 1 Reply Last reply
              0
              • N Nathan Minier

                The problem is that when code with the absurd keyword is run, it throws an event that decrements my _faith_in_humanity counter.

                "There are three kinds of lies: lies, damned lies and statistics." - Benjamin Disraeli

                C Offline
                C Offline
                CodeWraith
                wrote on last edited by
                #10

                Simply have none and you will never be disappointed anymore. :-)

                I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

                B 1 Reply Last reply
                0
                • C CodeWraith

                  I just found this in a comment to a question:

                  Quote:

                  ...because the code you show is absurd.

                  I know abstract classes, but have not yet heard officially of absurd classes, but I have seen many of them. Will we now need a new class modifier?

                  // absurd class
                  public absurd class Foo
                  {
                  // absurd method
                  public absurd void DoSomethingAbsurd();
                  }

                  What will be the impact in terms of inheritance? Must absurd methods be overridden? Or may they not be overriden at all? Edit: Will there be such a thing as purely absurd classes, where every method and property is declared as absurd? Will the absurdity level someone mentioned below be the inheritance depth of absurd base classes?

                  I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

                  M Offline
                  M Offline
                  megaadam
                  wrote on last edited by
                  #11

                  Huh? I thought all classes in Java were absurd. :suss: [Execution in the Kingdom of Nouns](https://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns.html)

                  ... such stuff as dreams are made on

                  C 1 Reply Last reply
                  0
                  • M megaadam

                    Huh? I thought all classes in Java were absurd. :suss: [Execution in the Kingdom of Nouns](https://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns.html)

                    ... such stuff as dreams are made on

                    C Offline
                    C Offline
                    CodeWraith
                    wrote on last edited by
                    #12

                    megaadam wrote:

                    Execution in the Kingdom of Nouns

                    Some people really have worries. Instead of thinking about their tasks at hand, they obscess over how something is written. The worst is going out of your way to establish style rules. I have seen style rule documents which were honestly more complicated than our tax laws. One million rules, with at least another million exceptions to each. Code reviews were mustly about discussing new rules or exceptions than accomplishing anything productive. What a waste of time. Paradigms like object orientation or functional programming look at things from different angles. They all have different strengths and weaknesses. It is absolutely subjective which ones suit you best. For example, I hate functional languages. I understand the concept, but having to use them is no pleasure at all for me. On the other hand I can sit there and merrily write down machine code or assembly, full of pointers, memory management, jumps (= GOTOs) and a general lack of abstraction, which apparently very many have extreme problems with. So the level of absurdity in ane language or another is strictly in the eye of the beholder.

                    I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

                    M 1 Reply Last reply
                    0
                    • C CodeWraith

                      megaadam wrote:

                      Execution in the Kingdom of Nouns

                      Some people really have worries. Instead of thinking about their tasks at hand, they obscess over how something is written. The worst is going out of your way to establish style rules. I have seen style rule documents which were honestly more complicated than our tax laws. One million rules, with at least another million exceptions to each. Code reviews were mustly about discussing new rules or exceptions than accomplishing anything productive. What a waste of time. Paradigms like object orientation or functional programming look at things from different angles. They all have different strengths and weaknesses. It is absolutely subjective which ones suit you best. For example, I hate functional languages. I understand the concept, but having to use them is no pleasure at all for me. On the other hand I can sit there and merrily write down machine code or assembly, full of pointers, memory management, jumps (= GOTOs) and a general lack of abstraction, which apparently very many have extreme problems with. So the level of absurdity in ane language or another is strictly in the eye of the beholder.

                      I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

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

                      CodeWraith wrote:

                      I hate functional languages

                      So do I. But then I know people waaaay smarter than me who love them :sigh:

                      ... such stuff as dreams are made on

                      C B 2 Replies Last reply
                      0
                      • C CodeWraith

                        I just found this in a comment to a question:

                        Quote:

                        ...because the code you show is absurd.

                        I know abstract classes, but have not yet heard officially of absurd classes, but I have seen many of them. Will we now need a new class modifier?

                        // absurd class
                        public absurd class Foo
                        {
                        // absurd method
                        public absurd void DoSomethingAbsurd();
                        }

                        What will be the impact in terms of inheritance? Must absurd methods be overridden? Or may they not be overriden at all? Edit: Will there be such a thing as purely absurd classes, where every method and property is declared as absurd? Will the absurdity level someone mentioned below be the inheritance depth of absurd base classes?

                        I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

                        J Offline
                        J Offline
                        jmccrapi
                        wrote on last edited by
                        #14

                        Can we get an outlandish? outlandish string FooBar {get;set;}

                        1 Reply Last reply
                        0
                        • M megaadam

                          CodeWraith wrote:

                          I hate functional languages

                          So do I. But then I know people waaaay smarter than me who love them :sigh:

                          ... such stuff as dreams are made on

                          C Offline
                          C Offline
                          CodeWraith
                          wrote on last edited by
                          #15

                          It has nothing to do with being smart or not. Every problem may look like a nail to someone who only has a hammer. Owning a tool box does not mean that you are not allowed to have preferences. No matter what they say, no tool in the box is the perfect answer to every problem.

                          I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

                          1 Reply Last reply
                          0
                          • C CodeWraith

                            Simply have none and you will never be disappointed anymore. :-)

                            I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

                            B Offline
                            B Offline
                            BillWoodruff
                            wrote on last edited by
                            #16

                            You are speaking nonsense to power today with eloquence ! Me appreciate :)

                            «... thank the gods that they have made you superior to those events which they have not placed within your own control, rendered you accountable for that only which is within you own control For what, then, have they made you responsible? For that which is alone in your own power—a right use of things as they appear.» Discourses of Epictetus Book I:12

                            1 Reply Last reply
                            0
                            • M megaadam

                              CodeWraith wrote:

                              I hate functional languages

                              So do I. But then I know people waaaay smarter than me who love them :sigh:

                              ... such stuff as dreams are made on

                              B Offline
                              B Offline
                              BillWoodruff
                              wrote on last edited by
                              #17

                              None of the people smarter than I am love me the same way I love them.

                              «... thank the gods that they have made you superior to those events which they have not placed within your own control, rendered you accountable for that only which is within you own control For what, then, have they made you responsible? For that which is alone in your own power—a right use of things as they appear.» Discourses of Epictetus Book I:12

                              1 Reply Last reply
                              0
                              • C CodeWraith

                                I just found this in a comment to a question:

                                Quote:

                                ...because the code you show is absurd.

                                I know abstract classes, but have not yet heard officially of absurd classes, but I have seen many of them. Will we now need a new class modifier?

                                // absurd class
                                public absurd class Foo
                                {
                                // absurd method
                                public absurd void DoSomethingAbsurd();
                                }

                                What will be the impact in terms of inheritance? Must absurd methods be overridden? Or may they not be overriden at all? Edit: Will there be such a thing as purely absurd classes, where every method and property is declared as absurd? Will the absurdity level someone mentioned below be the inheritance depth of absurd base classes?

                                I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

                                J Offline
                                J Offline
                                jsc42
                                wrote on last edited by
                                #18

                                You should not need to create a keyword for the most common state of play (e.g. many languages have unsigned as a modifier but few have signed as most numbers are signed). So, based on the programs that I have seen and virtually all of the ones that I have written, we need a modifier / attribute for the exceptional situations. I, therefore, suggest [NotAbsurd] or, in extreme cases, [Sensible]. This would save having to litter the source with redundant [Absurd] attributes / qualifiers

                                P 1 Reply Last reply
                                0
                                • J jsc42

                                  You should not need to create a keyword for the most common state of play (e.g. many languages have unsigned as a modifier but few have signed as most numbers are signed). So, based on the programs that I have seen and virtually all of the ones that I have written, we need a modifier / attribute for the exceptional situations. I, therefore, suggest [NotAbsurd] or, in extreme cases, [Sensible]. This would save having to litter the source with redundant [Absurd] attributes / qualifiers

                                  P Online
                                  P Online
                                  PIEBALDconsult
                                  wrote on last edited by
                                  #19

                                  The explain unsafe . :D

                                  1 Reply Last reply
                                  0
                                  • C CodeWraith

                                    I just found this in a comment to a question:

                                    Quote:

                                    ...because the code you show is absurd.

                                    I know abstract classes, but have not yet heard officially of absurd classes, but I have seen many of them. Will we now need a new class modifier?

                                    // absurd class
                                    public absurd class Foo
                                    {
                                    // absurd method
                                    public absurd void DoSomethingAbsurd();
                                    }

                                    What will be the impact in terms of inheritance? Must absurd methods be overridden? Or may they not be overriden at all? Edit: Will there be such a thing as purely absurd classes, where every method and property is declared as absurd? Will the absurdity level someone mentioned below be the inheritance depth of absurd base classes?

                                    I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

                                    P Online
                                    P Online
                                    PIEBALDconsult
                                    wrote on last edited by
                                    #20

                                    public enum LoggingLevel
                                    { Silent
                                    , Quiet
                                    , Normal
                                    , Verbose
                                    , Pedantic
                                    , AdAbsurdum
                                    }

                                    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