Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Use of word subclass
Forum Updated to NodeBB v4.3 + New Features

Use of word subclass

Scheduled Pinned Locked Moved Unsolved General and Desktop
subclassing
20 Posts 6 Posters 3.5k 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.
  • B BKBK

    @fcarney said in Use of word subclass:

    I was curious as I didn't think "sub" was so narrowly defined. So I looked it up:
    https://www.merriam-webster.com/dictionary/sub

    The first usage case for sub is:
    under : beneath : below

    This is the usage for subclass. The class inheritance chain is generally represented as a class hierarchy where the parent classes appear to be above the sub classes in the diagram. So moving up the inheritance chain is moving to a superclass, while moving down is moving to a subclass.

    Achievement Gained: Dead horse beaten

    That, just maybe, presumes that when we diagram a class and derived class we draw a circle or square for the original, then draw a connection line downward with the derived below it. I suggest that the derived be drawn above it. The derived one springs forth from the original and enhances or improves it. Therefore it should be drawn above it.
    But: That's not going to happen.
    Achievement Gained: One more pound of flesh from that dead horse.

    I think this demonstrates a major human attribute that causes no end to problems. Once we learn something one way, are taught something one way, then we are extremely reluctant to change our minds. Facts make no difference. I do not exclude myself from this propensity. But I try.
    So now I conclude, and in my not so humble opinion, the use of the word “subclass,” in the context presented, is wrong, but has no hidden or subtle meanings that I have missed. That is the way some, even many, people write.

    Edit: We do not walk beneath the feet of those that preceded us and showed the way. We stand on their shoulders and see ever further.

    JonBJ Offline
    JonBJ Offline
    JonB
    wrote on last edited by JonB
    #9

    @BKBK

    So now I conclude, and in my not so humble opinion, the use of the word “subclass,” in the context presented, is wrong

    Made me laugh :) You're wrong, but Happy Xmas!

    B 1 Reply Last reply
    1
    • B BKBK

      @jsulm said in Use of word subclass:

      @BKBK It's just wording and not related to math in this case :-)
      A is a class, B is a class - common wording in OOP is that if B inherits from A it is a subclass of A.
      So, you should not mix it with what subclass means in math.

      Its more than just wording. Words do matter. The prefix "sub" indicates a smaller portion of, not an enlargement of. A sub assembly is never larger than the assembly. A sub station is a smaller station. A SUBtraction makes a smaller value, not larger.

      And flat out no, they are not synonyms.

      Do a google search with the phrase: definition of prefix sub

      a prefix occurring originally in loanwords from Latin ( subject; subtract; subvert; subsidy ); on this model, freely attached to elements of any origin and used with the meaning “under,” “below,” “beneath” ( subalpine; substratum ), “slightly,” “imperfectly,” “nearly” ( subcolumnar; subtropical ), “secondary,” “ ...

      All of the variations are in contradiction with the use questioned here.

      The OP wondered if there is a meaning of which I might be unaware. At this point I don't think so. The use of subclass in the context presented is simply wrong. It is misleading and should not be used.

      W Offline
      W Offline
      wrosecrans
      wrote on last edited by
      #10

      @BKBK said in Use of word subclass:

      Its more than just wording. Words do matter. The prefix "sub" indicates a smaller portion of, not an enlargement of. A sub assembly is never larger than the assembly. A sub station is a smaller station. A SUBtraction makes a smaller value, not larger.

      The sub prefix in this context is "below" rather than meaning that it is smaller. In the sense that it's below the parent type in a hierarchy of types. Like a squad is below a Lieutenant in a military hierarchy, even if the squad collectively weighs much more that the Lt. Or a particular narrow field of study might be a 'subfield.' For example, Quantum Chromodynamics is a subfield of Physics. QCD experts will be familiar with all the generally applicable jargon of Physics like mass and energy, but also have a lot of specialist jargon that is unique to their subfield that a general Physicist isn't necessarily familiar with.

      Life is full of jargon that seems unfamiliar when we first encounter it. But it's usually more useful to learn the jargon than to try to convince a whole industry to change the way that talk about things because you personally find a different term clearer.

      1 Reply Last reply
      1
      • JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #11

        To me it's just like you have class in the Animal Kingdom and then a subclass, or a species and then a subspecies. Who inherit certain features and may have others of their own.

        B 1 Reply Last reply
        0
        • JonBJ JonB

          To me it's just like you have class in the Animal Kingdom and then a subclass, or a species and then a subspecies. Who inherit certain features and may have others of their own.

          B Offline
          B Offline
          BKBK
          wrote on last edited by
          #12

          @JonB said in Use of word subclass:

          To me it's just like you have class in the Animal Kingdom and then a subclass, or a species and then a subspecies. Who inherit certain features and may have others of their own.

          As you follow those lineages in the Animal Kingdom, the count of species gets smaller and smaller. There the word subclass is appropriate because the higher levels are indeed super class.
          That supports my position. Thank you.

          kshegunovK 1 Reply Last reply
          0
          • JonBJ JonB

            @BKBK

            So now I conclude, and in my not so humble opinion, the use of the word “subclass,” in the context presented, is wrong

            Made me laugh :) You're wrong, but Happy Xmas!

            B Offline
            B Offline
            BKBK
            wrote on last edited by
            #13

            @JonB said in Use of word subclass:

            @BKBK

            So now I conclude, and in my not so humble opinion, the use of the word “subclass,” in the context presented, is wrong

            Made me laugh :) You're wrong, but Happy Xmas!

            My position is supported by facts. (Being the definitions of the words) The use of subclass rather than inherited or derived does not have facts other than the fact that people like to write it that way. Therefore I conclude my position is correct.
            And Merry Christmas, Happy New year, and any other phrase you prefer.

            1 Reply Last reply
            0
            • B BKBK

              @JonB said in Use of word subclass:

              To me it's just like you have class in the Animal Kingdom and then a subclass, or a species and then a subspecies. Who inherit certain features and may have others of their own.

              As you follow those lineages in the Animal Kingdom, the count of species gets smaller and smaller. There the word subclass is appropriate because the higher levels are indeed super class.
              That supports my position. Thank you.

              kshegunovK Offline
              kshegunovK Offline
              kshegunov
              Moderators
              wrote on last edited by
              #14

              @BKBK said in Use of word subclass:

              As you follow those lineages in the Animal Kingdom, the count of species gets smaller and smaller.

              The count has nothing to do with anything. It's related to hierarchy - you go from the more general to the more specific in taxonomy. The ginko tree is the one and only one extant species of the Ginkgophyte order, are you going to suggest the order's demoted just because it had the rotten luck to currently contain only one living species?

              Same reasoning applies in class hierarchy in programming as well. The base class is a generalization of a concept that's more specific in derived classes (if they exist). Your argument about "sprouting out of" and "count matters" is faulty. Just live with it.

              Read and abide by the Qt Code of Conduct

              B 1 Reply Last reply
              1
              • kshegunovK kshegunov

                @BKBK said in Use of word subclass:

                As you follow those lineages in the Animal Kingdom, the count of species gets smaller and smaller.

                The count has nothing to do with anything. It's related to hierarchy - you go from the more general to the more specific in taxonomy. The ginko tree is the one and only one extant species of the Ginkgophyte order, are you going to suggest the order's demoted just because it had the rotten luck to currently contain only one living species?

                Same reasoning applies in class hierarchy in programming as well. The base class is a generalization of a concept that's more specific in derived classes (if they exist). Your argument about "sprouting out of" and "count matters" is faulty. Just live with it.

                B Offline
                B Offline
                BKBK
                wrote on last edited by BKBK
                #15

                @kshegunov said in Use of word subclass:

                @BKBK said in Use of word subclass:

                As you follow those lineages in the Animal Kingdom, the count of species gets smaller and smaller.

                The count has nothing to do with anything.

                The count is extremely important. By the definition of the prefix "sub" and the words inherit and derived, the use of subclass to reference derived or inherited classes, classes that are larger and more comprehensive, is incorrect. As we have two perfectly good words, inherit(ed) and derive(d), why would anyone want to use a word that, by its definition, does not fit.
                As noted in post 9 (I think it is post 9) once started down the wrong path many, or even most, people will go to extreme lengths to avoid the realization that they made a mistake. I may not change anyone's mind, but I am right.

                W kshegunovK 2 Replies Last reply
                1
                • B BKBK

                  @kshegunov said in Use of word subclass:

                  @BKBK said in Use of word subclass:

                  As you follow those lineages in the Animal Kingdom, the count of species gets smaller and smaller.

                  The count has nothing to do with anything.

                  The count is extremely important. By the definition of the prefix "sub" and the words inherit and derived, the use of subclass to reference derived or inherited classes, classes that are larger and more comprehensive, is incorrect. As we have two perfectly good words, inherit(ed) and derive(d), why would anyone want to use a word that, by its definition, does not fit.
                  As noted in post 9 (I think it is post 9) once started down the wrong path many, or even most, people will go to extreme lengths to avoid the realization that they made a mistake. I may not change anyone's mind, but I am right.

                  W Offline
                  W Offline
                  wrosecrans
                  wrote on last edited by
                  #16

                  @BKBK said in Use of word subclass:

                  I may not change anyone's mind, but I am right.

                  If you take this approach to language, you'll never be able to communicate with anybody. Language, by its nature, is an emergent property of consensus of the way that people communicate in practice. Aside from the very widely understood etymology of subclass in this context, charging into a community of people who understand each other and insisting that you are right in a way that nobody else agrees with just isn't a useful approach to language in general. If you start digging up etymologies of every word, you decide that they are 'wrong.'

                  "Compiler" can only mean a program that assembles chunks of existing code and not a program that transforms code from high level to machine language, for example. "Broadband" can't refer to high speed Internet. "Internet" can't refer to a specific network. "Bandwidth" can't refer to the speed of a data link. "Word" can only refer to an element of spoken language, not the length of a register. "Byte" can't be assumed to be 8 bits, or maybe Byte just isn't a real word at all. "Computer" can only refer to a human being employed to do mathematics for a living. I can make dramatically stronger arguments about the 'wrong' usage of every single one of those words than about the word "subclass." But if we did that, we'd be stuck just grunting and pointing at things and shrugging our shoulders because none of our words are good enough to satisfy 100% mutually consistent logical rules across all fields of application. Because natural human language just isn't something constructed out of 100% logical and systematic rules. Sometimes the sense of a word is just different in a different context.

                  1 Reply Last reply
                  2
                  • B BKBK

                    @kshegunov said in Use of word subclass:

                    @BKBK said in Use of word subclass:

                    As you follow those lineages in the Animal Kingdom, the count of species gets smaller and smaller.

                    The count has nothing to do with anything.

                    The count is extremely important. By the definition of the prefix "sub" and the words inherit and derived, the use of subclass to reference derived or inherited classes, classes that are larger and more comprehensive, is incorrect. As we have two perfectly good words, inherit(ed) and derive(d), why would anyone want to use a word that, by its definition, does not fit.
                    As noted in post 9 (I think it is post 9) once started down the wrong path many, or even most, people will go to extreme lengths to avoid the realization that they made a mistake. I may not change anyone's mind, but I am right.

                    kshegunovK Offline
                    kshegunovK Offline
                    kshegunov
                    Moderators
                    wrote on last edited by kshegunov
                    #17

                    @BKBK said in Use of word subclass:

                    The count is extremely important.

                    No it's not. Quantity and quality are different things. Arguing that quantity signifies quality is bogus. Generalizations (what inheritance treats) deal with quality, and are not a quantitative characteristic.

                    By the definition of the prefix "sub" and the words inherit and derived, the use of subclass to reference derived or inherited classes, classes that are larger and more comprehensive, is incorrect.

                    "Sub-", as already explained to you, in this context means "below" (not "smaller") and it's, as again already explained, used because of the usual way of putting generalizations on top of the things they relate to - that is to encompass what they generalize. Rationally there is no significant reason that this is like this beside historical reasons.

                    I can define anything the way I want to. I can define 600nm light to be "green", and I'd be just as right as long as people understand what I mean when I say "green light". Definitions, just because they're that - definitions, are arbitrary and not subject to proof.

                    As noted in post 9 (I think it is post 9) once started down the wrong path many, or even most, people will go to extreme lengths to avoid the realization that they made a mistake.

                    It's called confirmation bias, and it's not the case here.

                    I may not change anyone's mind, but I am right.

                    You'd think that, wouldn't you? Well, it's your right to think so, but it's also everybody else's right to think what you think is wrong.

                    Read and abide by the Qt Code of Conduct

                    1 Reply Last reply
                    2
                    • JonBJ Offline
                      JonBJ Offline
                      JonB
                      wrote on last edited by JonB
                      #18

                      Guys, I think & presume we are to take @BKBK's comments with a certain amount of Festive Cheer and tongue-in-cheek-ness. :)

                      B 1 Reply Last reply
                      1
                      • JonBJ JonB

                        Guys, I think & presume we are to take @BKBK's comments with a certain amount of Festive Cheer and tongue-in-cheek-ness. :)

                        B Offline
                        B Offline
                        BKBK
                        wrote on last edited by
                        #19

                        @JonB said in Use of word subclass:

                        Guys, I think & presume we are to take @BKBK's comments with a certain amount of Festive Cheer and tongue-in-cheek-ness. :)

                        All, I should not have made my last comment about being right. That was inappropriate. I would edit it but that would make other posts appear inconsistent. Rather I extend my apologies.

                        kshegunovK 1 Reply Last reply
                        2
                        • B BKBK

                          @JonB said in Use of word subclass:

                          Guys, I think & presume we are to take @BKBK's comments with a certain amount of Festive Cheer and tongue-in-cheek-ness. :)

                          All, I should not have made my last comment about being right. That was inappropriate. I would edit it but that would make other posts appear inconsistent. Rather I extend my apologies.

                          kshegunovK Offline
                          kshegunovK Offline
                          kshegunov
                          Moderators
                          wrote on last edited by
                          #20

                          No apologies needed (at least on my part). I don't hold grudges, and as long as you are staying civil there's nothing wrong with heaving a healthy argument.

                          Read and abide by the Qt Code of Conduct

                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved