• schnurrito@discuss.tchncs.de
      link
      fedilink
      arrow-up
      4
      arrow-down
      5
      ·
      7 hours ago

      Honestly the question as asked is unambiguous: “write words in alphabetical order” cannot mean anything else than apple, fox, log, pond, pumpkin, river. If what was provided here were the expected answer, the wording should be “write each of the following words with its letters sorted by alphabetical order”.

      • Michal@programming.dev
        link
        fedilink
        arrow-up
        9
        ·
        7 hours ago

        Could be understood as “take these words, and write them out in alphabetical order”. It’s not specifically stated whether letters inside those words should also be sorted or not.

        We take it for granted that we have so much experience communicating, we can infer the meaning without full instruction, but children are still acquiring this knowledge and sometimes take things literally with hilarious results.

        • schnurrito@discuss.tchncs.de
          link
          fedilink
          arrow-up
          2
          arrow-down
          3
          ·
          6 hours ago

          Of course, not blaming children for misunderstanding this; but if this were a software requirement, an adult software developer should be able to understand it correctly.

  • melsaskca@lemmy.ca
    link
    fedilink
    arrow-up
    6
    ·
    7 hours ago

    I like it. He didn’t meet the assignment but he proved his knowledge. Now to see if they mark on knowledge learnt or subjugation.

    • wpb@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      6 hours ago

      They did fail to demonstrate knowledge of lexicographical order, which this exercise seems to be aiming for with the inclusion of pond and pumpkin, so I think it’s a bit cynical to consider failing the student on this a means of opression or subjugation.

      • melsaskca@lemmy.ca
        link
        fedilink
        arrow-up
        1
        arrow-down
        2
        ·
        6 hours ago

        Let me put it this way then. I wonder if they will give him credit for his knowledge because he proved he knows what “alphabetical order” is. Will he lose any credit because he didn’t follow, or misunderstood, the question? Will he be marked on what he knows or how he understands the query?

        • Jax@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          5 hours ago

          The child did not prove that they know what alphabetical order is, they proved that they know the alphabet.

          This does not showcase intellect, it showcases a lack of critical thinking.

  • webpack@ani.social
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    9 hours ago

    list.toSorted() vs list.map(word => word.toSorted())

    (note that you can’t actually do string.toSorted() in js you have to convert into a list and back)

    • ChaoticNeutralCzech@feddit.org
      link
      fedilink
      English
      arrow-up
      32
      ·
      edit-2
      1 day ago

      FTFY:

      5. the
      6. the

      The alphabet provided ends with X. However, you apparently remove duplicates so maybe just cross out the last row?

      • BillyClark@piefed.social
        link
        fedilink
        English
        arrow-up
        20
        ·
        1 day ago

        One important skill for school is to look at the entire question so that you can understand what the teacher is asking for, even if they don’t format the question exactly right.

        In this case, your answer would not fit into the 6 spaces provided for the answer.

        So you have to ask yourself what they meant by “Write the following words”. Since “the” is the same word repeated twice, once you’ve written “the” after 5, then I could argue that “the” has already been written.

        Therefore, if there are only six blanks for the answer, looking at the entire question, I argue that the answer I provided is most likely correct.

        • ChaoticNeutralCzech@feddit.org
          link
          fedilink
          English
          arrow-up
          2
          ·
          5 hours ago

          You’ll satisfy the teacher as often as possible and get good grades. I want to feel right as often as possible, which means I’ll disrupt the class often and get called out during the parents-teachers meeting.

    • melfie@lemy.lol
      link
      fedilink
      arrow-up
      2
      ·
      21 hours ago

      Correct. It’s obviously supposed to be an ordered set, and that’s why there are 6 slots for 6 unique words.

  • wewbull@feddit.uk
    link
    fedilink
    English
    arrow-up
    54
    arrow-down
    2
    ·
    1 day ago

    The question is poorly worded. It asks for words in the order they come in the alphabet. Words aren’t in the alphabet. Letters are in the alphabet, so they reordered the letters.

    • floquant@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      6
      ·
      21 hours ago

      That’s not being pedantic, it’s just wrong. Do you not call the order of words in a dictionary “alphabetical order”?

      • wewbull@feddit.uk
        link
        fedilink
        English
        arrow-up
        6
        ·
        edit-2
        9 hours ago

        Of course, but this is a 6? year old. Read the question as a child would.

        Put the following words in alphabetical order

        All fine, but if they don’t know the word “alphabetical” the clarification is…

        (The order they come in the alphabet)

        Confusing. “They” refers to the words and alphabet contains letters. If it had been “dictionary” and not “alphabet” then that would be clear.

  • aaaaaaaaargh@feddit.org
    link
    fedilink
    arrow-up
    32
    ·
    edit-2
    21 hours ago

    With more than three repetitions of the same algorithm the kid should’ve been automating the process.