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. Pet Peeve of the Week: "It asserts"

Pet Peeve of the Week: "It asserts"

Scheduled Pinned Locked Moved The Lounge
helpsysadminquestionlearning
16 Posts 12 Posters 1 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.
  • D Daniel Turini

    Oh, come on, don't get so picky about your users. You get valuable information from them. A typical support call: User: "it stopped working." Me: "Could you please be more specific? What stopped working?" User: "An error message appeared, with a number on it" Me: "Which message? Which number?" User: "I don't know, I clicked 'ok'" Me: "What were you doing?" User: "Oh, I was only using it normally" I would LOVE if someone called me telling my program asserted. :mad: I see dumb people

    C Offline
    C Offline
    ColinDavies
    wrote on last edited by
    #7

    Daniel Turini wrote: I would LOVE if someone called me telling my program asserted. I don't wanna appear all "practicable" but why don't you log the assertions. Regardz Colin J Davies

    Sonork ID 100.9197:Colin

    You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining. Said by Roger Wright about me.

    1 Reply Last reply
    0
    • T Tim Lesher

      You know what I hate? When people butcher the word "assert" when describing program behavior.

      Other: "I was running some tests this weekend, and the server asserted." Me: "Of course it did." *goes back to work* Other: "Umm, isn't that a problem?" Me: "No, there are assert statements in our code. They're used for error checking when the error is not something that can be handled by normal error-handling code, and should never happen in the wild." Other: "Well, the server crashed after that." Me: "Oh, you mean an assertion failed."

      To assert means to affirm something. In programming, an assertion is a statement of assumptions. It's not an error. A failed assertion is an error. Don't tell me that a program asserted. Tell me that an assertion failed. Tim Lesher tim@lesher.ws www.lesher.ws WinDev: the Windows Developers' Mailing List

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

      Lucky you! My error descriptions range from "crash", over "crashed horribly", "goes boom", "doesn't work", "never works", "doesn't work anymore", with the temporal modifiers "frequently", "often", "always" and "permanently" (the two latter usually translating to very very often - just not now).


      If I could find a souvenir / just to prove the world was here   [sighist]

      1 Reply Last reply
      0
      • T Tim Lesher

        You know what I hate? When people butcher the word "assert" when describing program behavior.

        Other: "I was running some tests this weekend, and the server asserted." Me: "Of course it did." *goes back to work* Other: "Umm, isn't that a problem?" Me: "No, there are assert statements in our code. They're used for error checking when the error is not something that can be handled by normal error-handling code, and should never happen in the wild." Other: "Well, the server crashed after that." Me: "Oh, you mean an assertion failed."

        To assert means to affirm something. In programming, an assertion is a statement of assumptions. It's not an error. A failed assertion is an error. Don't tell me that a program asserted. Tell me that an assertion failed. Tim Lesher tim@lesher.ws www.lesher.ws WinDev: the Windows Developers' Mailing List

        RaviBeeR Offline
        RaviBeeR Offline
        RaviBee
        wrote on last edited by
        #9

        I agree, that sucks. Especially when heard from a developer. On a similar note, some developers have been heard to say, "the program just crashes", when they really mean "the program just hangs". A crash usually causes a program to end. A hanging program usually NEVER ends. Why can't everyone get it right and be perfect like me? :) /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

        T 1 Reply Last reply
        0
        • RaviBeeR RaviBee

          I agree, that sucks. Especially when heard from a developer. On a similar note, some developers have been heard to say, "the program just crashes", when they really mean "the program just hangs". A crash usually causes a program to end. A hanging program usually NEVER ends. Why can't everyone get it right and be perfect like me? :) /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

          T Offline
          T Offline
          Tim Lesher
          wrote on last edited by
          #10

          Argh. That was going to be my Pet Peeve of the Week for next week. Oh, well. I've got plenty more. Tim Lesher tim@lesher.ws www.lesher.ws WinDev: the Windows Developers' Mailing List

          1 Reply Last reply
          0
          • T Tim Lesher

            You know what I hate? When people butcher the word "assert" when describing program behavior.

            Other: "I was running some tests this weekend, and the server asserted." Me: "Of course it did." *goes back to work* Other: "Umm, isn't that a problem?" Me: "No, there are assert statements in our code. They're used for error checking when the error is not something that can be handled by normal error-handling code, and should never happen in the wild." Other: "Well, the server crashed after that." Me: "Oh, you mean an assertion failed."

            To assert means to affirm something. In programming, an assertion is a statement of assumptions. It's not an error. A failed assertion is an error. Don't tell me that a program asserted. Tell me that an assertion failed. Tim Lesher tim@lesher.ws www.lesher.ws WinDev: the Windows Developers' Mailing List

            B Offline
            B Offline
            Barry Lapthorn
            wrote on last edited by
            #11

            "Impact" Usage: impacted tooth. meteorite impact - cf. the meteorite has impacted. :-D Not: This will impact our business. We are impacted by this. Ugh! :mad: Blame Wall St., and Powerpoint for that one. Regards Barry

            G 1 Reply Last reply
            0
            • B Barry Lapthorn

              "Impact" Usage: impacted tooth. meteorite impact - cf. the meteorite has impacted. :-D Not: This will impact our business. We are impacted by this. Ugh! :mad: Blame Wall St., and Powerpoint for that one. Regards Barry

              G Offline
              G Offline
              Glenn Dawson
              wrote on last edited by
              #12

              Blame the Merriam-Webster Dictionary. :) Main Entry: 2im·pact Pronunciation: 'im-"pakt Function: noun Date: 1781 1 a : an impinging or striking especially of one body against another b : a forceful contact, collision, or onset; also : the impetus communicated in or as if in a collision 2 : the force of impression of one thing on another : a significant or major effect

              T 1 Reply Last reply
              0
              • D Daniel Turini

                Oh, come on, don't get so picky about your users. You get valuable information from them. A typical support call: User: "it stopped working." Me: "Could you please be more specific? What stopped working?" User: "An error message appeared, with a number on it" Me: "Which message? Which number?" User: "I don't know, I clicked 'ok'" Me: "What were you doing?" User: "Oh, I was only using it normally" I would LOVE if someone called me telling my program asserted. :mad: I see dumb people

                S Offline
                S Offline
                Stefan Pedersen
                wrote on last edited by
                #13

                Are you stealing our customers??? :)

                1 Reply Last reply
                0
                • T Tim Lesher

                  You know what I hate? When people butcher the word "assert" when describing program behavior.

                  Other: "I was running some tests this weekend, and the server asserted." Me: "Of course it did." *goes back to work* Other: "Umm, isn't that a problem?" Me: "No, there are assert statements in our code. They're used for error checking when the error is not something that can be handled by normal error-handling code, and should never happen in the wild." Other: "Well, the server crashed after that." Me: "Oh, you mean an assertion failed."

                  To assert means to affirm something. In programming, an assertion is a statement of assumptions. It's not an error. A failed assertion is an error. Don't tell me that a program asserted. Tell me that an assertion failed. Tim Lesher tim@lesher.ws www.lesher.ws WinDev: the Windows Developers' Mailing List

                  T Offline
                  T Offline
                  Todd C Wilson
                  wrote on last edited by
                  #14

                  Well, you can certainly make the assertion that you are going to assert literal-minded rules on people, who, in all the more likely, are just asserting their ownership of the problem by reporting to you that the assertion dialog asserted on them, granting them the abiltity to assert upon you their assertivness. In other words, they are just reporting exactly what the dialog says. If the wording of the dialog (assertion at line 25) causes confusion, then the dialog/warning needs changed. I think there is a recent article about giving more descrptive error dialogs to users... Now, are you going affect a change, or effect one?


                  The answer is no, whatever the question is. You can't have it, you don't need it, and you'll break it in five minutes if I give it to you.

                  T 1 Reply Last reply
                  0
                  • T Todd C Wilson

                    Well, you can certainly make the assertion that you are going to assert literal-minded rules on people, who, in all the more likely, are just asserting their ownership of the problem by reporting to you that the assertion dialog asserted on them, granting them the abiltity to assert upon you their assertivness. In other words, they are just reporting exactly what the dialog says. If the wording of the dialog (assertion at line 25) causes confusion, then the dialog/warning needs changed. I think there is a recent article about giving more descrptive error dialogs to users... Now, are you going affect a change, or effect one?


                    The answer is no, whatever the question is. You can't have it, you don't need it, and you'll break it in five minutes if I give it to you.

                    T Offline
                    T Offline
                    Tim Lesher
                    wrote on last edited by
                    #15

                    Your point is well-taken, although it flies in the face of your signature. ;-) The dialog in question is the MS C Runtime assertion failure dialog, which says "ASSERTION FAILED!". Plus, the people in question were programmers... it's not as if they didn't know better--they did, it's just a point of grammar. It's a pet peeve. Laugh. Tim Lesher tim@lesher.ws www.lesher.ws WinDev: the Windows Developers' Mailing List

                    1 Reply Last reply
                    0
                    • G Glenn Dawson

                      Blame the Merriam-Webster Dictionary. :) Main Entry: 2im·pact Pronunciation: 'im-"pakt Function: noun Date: 1781 1 a : an impinging or striking especially of one body against another b : a forceful contact, collision, or onset; also : the impetus communicated in or as if in a collision 2 : the force of impression of one thing on another : a significant or major effect

                      T Offline
                      T Offline
                      Tim Lesher
                      wrote on last edited by
                      #16

                      I side with Barry on this one. Note that M-W lists it as a noun. Barry noted its incorrect use as a verb. Note also that every verb in the preceding paragraph is also a noun. ;-) Tim Lesher tim@lesher.ws www.lesher.ws WinDev: the Windows Developers' Mailing List

                      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