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. an excellent specimen

an excellent specimen

Scheduled Pinned Locked Moved The Lounge
53 Posts 18 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.
  • U User 13269747

    Well, the only place it uses the word snippet is when referring to a shot piece extracted from a longer example:

    Quote:

    In the above snippet, we bind to myPair. But this also means you can provide support for your classes, assuming you add the get interface implementation. See an example in the later section.

    You are using the word snippet to refer to return, but the article uses the word example liberally for the code it presents. "Snippet" has always meant "a part taken out of a larger whole". Specimen has always meant "a representative sample of a category". Try this with a Large Language Model:

    Quote:

    User What does "analyse this specimen" mean? ChatGPT "Analyze this specimen" is a directive to closely examine and evaluate a particular object, sample, or subject. The word "specimen" refers to a representative example or sample of something, often used in scientific contexts. When someone asks to analyze a specimen, they are typically requesting a detailed examination, assessment, or study of the given object or sample to gain insights, draw conclusions, or gather information. The nature of the analysis can vary based on the context, such as scientific research, medical diagnosis, forensic investigation, or any other field where a careful examination is required. User What does "analyse this snippet" mean? ChatGPT "Analyze this snippet" is a request to examine and evaluate a specific, usually small portion or excerpt of something, such as code, text, data, or any other content. The term "snippet" refers to a brief and typically representative section of a larger whole. When someone asks you to analyze a snippet, they are asking you to closely examine that particular portion to understand its details, identify patterns, extract information, or gain insights relevant to a specific context. For example, in programming, you might be asked to analyze a code snippet to find errors, understand its functionality, or suggest improvements. In a literary context, analyzing a text snippet could involve examining its language, themes, or literary devices. The nature of the analysis depends on the specific domain or context in which the snippet is presented.

    B Offline
    B Offline
    BernardIE5317
    wrote on last edited by
    #44

    std::pair myPair(0, 1.0f);
    auto [a, b] = myPair; // binds myPair.first/second

    re/ "Snippet" has always meant "a part taken out of a larger whole". please show where the above "snippet" is present in a larger whole as i am unable to find it . re/ "Specimen has always meant "a representative sample of a category"." that is precisely what the "specimen" is as it is representative of the use of structured bindings to classes .

    U 1 Reply Last reply
    0
    • B BernardIE5317

      std::pair myPair(0, 1.0f);
      auto [a, b] = myPair; // binds myPair.first/second

      re/ "Snippet" has always meant "a part taken out of a larger whole". please show where the above "snippet" is present in a larger whole as i am unable to find it . re/ "Specimen has always meant "a representative sample of a category"." that is precisely what the "specimen" is as it is representative of the use of structured bindings to classes .

      U Offline
      U Offline
      User 13269747
      wrote on last edited by
      #45

      Quote:

      re/ "Snippet" has always meant "a part taken out of a larger whole". please show where the above "snippet" is present in a larger whole as i am unable to find it .

      Why would something be present if it was taken out of a larger whole? What's the point of extracting something specific from a larger whole if you're going to reproduce the whole anyway? The point of presenting something snipped out of a body of content is to avoid presenting the entire body of content. TBH, if your definition of the word "snippet" differs from both dictionary and usage, it's your definition that's wrong, not the damn dictionary.

      Quote:

      re/ "Specimen has always meant "a representative sample of a category"." that is precisely what the "specimen" is as it is representative of the use of structured bindings to classes .

      "Demonstration of usage" is not generally accepted as a part of a taxonomy. Why do you feel that an example is the same thing as a category?

      B 1 Reply Last reply
      0
      • U User 13269747

        Quote:

        re/ "Snippet" has always meant "a part taken out of a larger whole". please show where the above "snippet" is present in a larger whole as i am unable to find it .

        Why would something be present if it was taken out of a larger whole? What's the point of extracting something specific from a larger whole if you're going to reproduce the whole anyway? The point of presenting something snipped out of a body of content is to avoid presenting the entire body of content. TBH, if your definition of the word "snippet" differs from both dictionary and usage, it's your definition that's wrong, not the damn dictionary.

        Quote:

        re/ "Specimen has always meant "a representative sample of a category"." that is precisely what the "specimen" is as it is representative of the use of structured bindings to classes .

        "Demonstration of usage" is not generally accepted as a part of a taxonomy. Why do you feel that an example is the same thing as a category?

        B Offline
        B Offline
        BernardIE5317
        wrote on last edited by
        #46

        struct cSnippet{cSnippet()=delete;};

        i wish to discuss deleted default constructors so present above code . is it a snippet or a specimen or an example or a sample or as extract or an excerpt ? if you insist on "snippet" i will state it has not been "snipped" from anything . as for prior structured bindings example there is no reason to believe\assume\imagine\fantasize it has been "snipped" from anything either . if you know better please explain how you reached that conclusion . unless the larger whole is referenced it is only confusing to the reader to indirectly refer to its irrelevant existence by use of term in question . as for specimen below i rather doubt any such code exists in a larger whole as no doubt the author is a fine programmer .

        std::pair myPair(0, 1.0f);
        auto [a, b] = myPair;

        U 1 Reply Last reply
        0
        • B BernardIE5317

          struct cSnippet{cSnippet()=delete;};

          i wish to discuss deleted default constructors so present above code . is it a snippet or a specimen or an example or a sample or as extract or an excerpt ? if you insist on "snippet" i will state it has not been "snipped" from anything . as for prior structured bindings example there is no reason to believe\assume\imagine\fantasize it has been "snipped" from anything either . if you know better please explain how you reached that conclusion . unless the larger whole is referenced it is only confusing to the reader to indirectly refer to its irrelevant existence by use of term in question . as for specimen below i rather doubt any such code exists in a larger whole as no doubt the author is a fine programmer .

          std::pair myPair(0, 1.0f);
          auto [a, b] = myPair;

          U Offline
          U Offline
          User 13269747
          wrote on last edited by
          #47

          Quote:

          i wish to discuss deleted default constructors so present above code . is it a snippet or a specimen or an example or a sample or as extract or an excerpt ? if you insist on "snippet" i will state it has not been "snipped" from anything .

          If you insist that it is not part of a larger piece of content, then "sample" or "example" are accurate. Specimen, as your links pointed out to both of us, refers to representative samples of a category. Are you arguing that two lines of C++ code is a representative sample of C++, or a representative sample of a program? What exactly do you think those two lines are a representative sample of?

          Quote:

          unless the larger whole is referenced it is only confusing to the reader to indirectly refer to its irrelevant existence by use of term in question .

          Maybe it is, but that's what the word means. Snippet as always meant "snipped out of something". That you find it confusing is not really relevant to what the meaning of the word is.

          Quote:

          as for specimen below i rather doubt any such code exists in a larger whole as no doubt the author is a fine programmer .

          You are literally saying that those two lines are not a representative sample of the author's code. You literally say it doesn't fit the definition of "specimen", so why use the word? As the person proposing to redefine existing meanings, maybe you should provide a good argument for why you'd like to redefine existing meanings?

          B 1 Reply Last reply
          0
          • U User 13269747

            Quote:

            i wish to discuss deleted default constructors so present above code . is it a snippet or a specimen or an example or a sample or as extract or an excerpt ? if you insist on "snippet" i will state it has not been "snipped" from anything .

            If you insist that it is not part of a larger piece of content, then "sample" or "example" are accurate. Specimen, as your links pointed out to both of us, refers to representative samples of a category. Are you arguing that two lines of C++ code is a representative sample of C++, or a representative sample of a program? What exactly do you think those two lines are a representative sample of?

            Quote:

            unless the larger whole is referenced it is only confusing to the reader to indirectly refer to its irrelevant existence by use of term in question .

            Maybe it is, but that's what the word means. Snippet as always meant "snipped out of something". That you find it confusing is not really relevant to what the meaning of the word is.

            Quote:

            as for specimen below i rather doubt any such code exists in a larger whole as no doubt the author is a fine programmer .

            You are literally saying that those two lines are not a representative sample of the author's code. You literally say it doesn't fit the definition of "specimen", so why use the word? As the person proposing to redefine existing meanings, maybe you should provide a good argument for why you'd like to redefine existing meanings?

            B Offline
            B Offline
            BernardIE5317
            wrote on last edited by
            #48

            i will insist it is not snipped from anything only after you assume it is correct to refer to it as a snippet just as you assume re/ referenced article . yes those two lines are representative of the use of structured bindings w/ classes as previously stated . as always and yet again there is no reason to believe those two lines were snipped from anything . of course they are not representative of the authors' quality of code however as stated repeatedly they are representative of the use of structured bindings w/ classes again as previously stated ad nauseum . i do not recall attempting to redefine the term only to utilize the correct one . even when correct the term "snippet" sounds almost childish and less serious than exempli gratia "excerpt" and we must agree software development is serious business and certainly requires serious effort .

            U 1 Reply Last reply
            0
            • B BernardIE5317

              i will insist it is not snipped from anything only after you assume it is correct to refer to it as a snippet just as you assume re/ referenced article . yes those two lines are representative of the use of structured bindings w/ classes as previously stated . as always and yet again there is no reason to believe those two lines were snipped from anything . of course they are not representative of the authors' quality of code however as stated repeatedly they are representative of the use of structured bindings w/ classes again as previously stated ad nauseum . i do not recall attempting to redefine the term only to utilize the correct one . even when correct the term "snippet" sounds almost childish and less serious than exempli gratia "excerpt" and we must agree software development is serious business and certainly requires serious effort .

              U Offline
              U Offline
              User 13269747
              wrote on last edited by
              #49

              Quote:

              i do not recall attempting to redefine the term only to utilize the correct one .

              The dictionary, with example, did not convince you that the "code specimen" is not a replacement for "code snippet". A Large Language Model in trained in English did not convince you. Do you have a link to any publication in English that uses the word specimen as you assert is "correct"? In other words, can you find anyone who agrees with you that your definition is correct? Just one link, preferably an authoritative source like a real publication. If you cannot find anyone who uses the word "specimen" in the specific context that you want to use it it, why remain certain that English is wrong and you are right?

              B 1 Reply Last reply
              0
              • U User 13269747

                Quote:

                i do not recall attempting to redefine the term only to utilize the correct one .

                The dictionary, with example, did not convince you that the "code specimen" is not a replacement for "code snippet". A Large Language Model in trained in English did not convince you. Do you have a link to any publication in English that uses the word specimen as you assert is "correct"? In other words, can you find anyone who agrees with you that your definition is correct? Just one link, preferably an authoritative source like a real publication. If you cannot find anyone who uses the word "specimen" in the specific context that you want to use it it, why remain certain that English is wrong and you are right?

                B Offline
                B Offline
                BernardIE5317
                wrote on last edited by
                #50

                i will answer your questions after i obtain answers to mine .

                U 1 Reply Last reply
                0
                • B BernardIE5317

                  i will answer your questions after i obtain answers to mine .

                  U Offline
                  U Offline
                  User 13269747
                  wrote on last edited by
                  #51

                  Quote:

                  i will answer your questions after i obtain answers to mine .

                  You can't find a link that agrees with you, can you?

                  B 1 Reply Last reply
                  0
                  • U User 13269747

                    Quote:

                    i will answer your questions after i obtain answers to mine .

                    You can't find a link that agrees with you, can you?

                    B Offline
                    B Offline
                    BernardIE5317
                    wrote on last edited by
                    #52

                    you have no logical answers to the points i raised do you ?

                    U 1 Reply Last reply
                    0
                    • B BernardIE5317

                      you have no logical answers to the points i raised do you ?

                      U Offline
                      U Offline
                      User 13269747
                      wrote on last edited by
                      #53

                      Quote:

                      you have no logical answers to the points i raised do you ?

                      I'll answer any logical question I see. Arguing to use a word in a way not used by the rest of the speakers of that language is not really logical, now is it? You put forward an argument for why the rest of the world is wrong, I remain unconvinced that you are correct and the rest of the world is wrong. You need to provide some evidence for why you think the rest of the world is wrong. PS. Aren't you even just a little bit concerned that no on on earth shares your definition of the word "specimen"? I know if I was arguing for something, I'd rethink my position if the rest of the world unanimously disagreed with me. After all, you haven't found anyone who agrees with your definition of "specimen". You should be very concerned.

                      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