Mastodon Skip to content
  • Home
  • Aktuell
  • Tags
  • Über dieses Forum
Einklappen
Grafik mit zwei überlappenden Sprechblasen, eine grün und eine lila.
Abspeckgeflüster – Forum für Menschen mit Gewicht(ung)

Kostenlos. Werbefrei. Menschlich. Dein Abnehmforum.

  1. Home
  2. Uncategorized
  3. Wanted: Advice from CS teachers

Wanted: Advice from CS teachers

Geplant Angeheftet Gesperrt Verschoben Uncategorized
teaching
359 Beiträge 191 Kommentatoren 1 Aufrufe
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • futurebird@sauropods.winF futurebird@sauropods.win

    @wakame

    This is helpful for me. I had a hard time understanding why one student was upset, almost to the point of tears (they are very sensitive) that the error message said "error on line 32" but, really the problem was the way they originally named the variable.

    "Why couldn't it just say the error was on line 4? 😢 I tried everything I could to fix line 32. 🥺 😢 "

    My sweet child... it's just not that smart, not like you.

    wakame@tech.lgbtW This user is from outside of this forum
    wakame@tech.lgbtW This user is from outside of this forum
    wakame@tech.lgbt
    schrieb zuletzt editiert von
    #26

    @futurebird
    I totally cried when I was 14 and I tought in my naivety that I knew almost everything and then a simple program failed.

    [Edit: And seriously: I think it is hard to understand if the voice from god tells your that there is an error line 32, that this could be somehow wrong.

    I mean, this is a computer, right? It doesn't make mistakes.

    Maybe emphasizing that the IDE and the compiler and everything else was written by humans and that they discover bugs in those programs all the time could help.]

    catfish_man@mastodon.socialC apophis@brain.worm.pinkA 2 Antworten Letzte Antwort
    0
    • futurebird@sauropods.winF futurebird@sauropods.win

      Things to Try:
      * look for typos
      * look at what the error message indicates.

      If these don't work consider reverting your last changes to the last working version of your code. Then try making the changes again, but be more careful.

      If you can't revert the changes, start removing bits of the code systematically. Remove the things you think might cause the error and run the code again. Isolate the change or code that causes the problem.

      You can be a great programmer.

      2/2

      venite@mastodon.nlV This user is from outside of this forum
      venite@mastodon.nlV This user is from outside of this forum
      venite@mastodon.nl
      schrieb zuletzt editiert von
      #27

      @futurebird I gave my students code with errors in it and had them fix it. But they do have to be at a certain level to be able to do that.

      I stole this idea from the Java certification exams, which had code examples that would get most people fired.

      flisty@mstdn.socialF 1 Antwort Letzte Antwort
      0
      • abramkedge@beige.partyA abramkedge@beige.party

        @futurebird

        > Maybe I will give them some broken code and we will find the errors together.

        I think this is an excellent idea!

        mintspies@beige.partyM This user is from outside of this forum
        mintspies@beige.partyM This user is from outside of this forum
        mintspies@beige.party
        schrieb zuletzt editiert von
        #28

        @AbramKedge @futurebird I do this (in the context of a different academic subject) with "bad" essays, where we work collaboratively to find errors and redraft improvements. Hope it's effective for you.

        semitones@tiny.tilde.websiteS 1 Antwort Letzte Antwort
        0
        • futurebird@sauropods.winF futurebird@sauropods.win

          So Your Code Won't Run

          1. There *is* an error in your code. It's probably just a typo. You can find it by looking for it in a calm, systematic way.

          2. The error will make sense. It's not random. The computer does not "just hate you"

          3. Read the error message. The error message *tries* to help you, but it's just a computer so YOUR HUMAN INTELLIGENCE may be needed to find the real source of error.

          4. Every programmer makes errors. Great programmers can find and fix them.

          1/

          rpsu@mas.toR This user is from outside of this forum
          rpsu@mas.toR This user is from outside of this forum
          rpsu@mas.to
          schrieb zuletzt editiert von
          #29

          @futurebird I think CS students and also everyone else should use the list, but in reverse order.
          1). Calm down, you’ll get over it and find a fix in no time. Everyone does.
          2) Read the error and read it again. It tells you pretty much where, or sometimes even what exactly is the problem. Fix is right there.
          3) The error makes sense, it is not magic. Ever.
          4) It is probably a typo, you’ll find it after competing the first 3 points. Go to 1).

          1 Antwort Letzte Antwort
          0
          • futurebird@sauropods.winF futurebird@sauropods.win

            Wanted: Advice from CS teachers

            When #teaching a group of students new to coding I've noticed that my students who are normally very good about not calling out during class will shout "it's not working!" the moment their code hits an error and fails to run. They want me to fix it right away. This makes for too many interruptions since I'm easy to nerd snipe in this way.

            I think I need to let them know that fixing errors that keep the code from running is literally what I'm trying to teach.

            fubaroque@mastodon.socialF This user is from outside of this forum
            fubaroque@mastodon.socialF This user is from outside of this forum
            fubaroque@mastodon.social
            schrieb zuletzt editiert von
            #30

            @futurebird Kids don’t know how to fail anymore. How did that happen? 🤔

            1 Antwort Letzte Antwort
            0
            • futurebird@sauropods.winF futurebird@sauropods.win

              Example of the problem:

              Me: "OK everyone. Next we'll make this into a function so we can simply call it each time-"

              Student 1: "It won't work." (student who wouldn't interrupt like this normally)

              Student 2: "Mine's broken too!"

              Student 3: "It says error. I have the EXACT same thing as you but it's not working."

              This makes me feel overloaded and grouchy. Too many questions at once. What I want them to do is wait until the explanation is done and ask when I'm walking around. #CSEdu

              pthane@toot.walesP This user is from outside of this forum
              pthane@toot.walesP This user is from outside of this forum
              pthane@toot.wales
              schrieb zuletzt editiert von
              #31

              @futurebird
              I used to get the same teaching basic electronics. Plenty of schools for getting it wrong. Polarised components wrong way round, resistor and capacitor values wrong, wires in wrong holes, bad soldering, very, very bad soldering. The worst was a student who managed one huge blob of solder on a board bridging all eight pins on a DIL IC (probably a 555).

              1 Antwort Letzte Antwort
              0
              • futurebird@sauropods.winF futurebird@sauropods.win

                So Your Code Won't Run

                1. There *is* an error in your code. It's probably just a typo. You can find it by looking for it in a calm, systematic way.

                2. The error will make sense. It's not random. The computer does not "just hate you"

                3. Read the error message. The error message *tries* to help you, but it's just a computer so YOUR HUMAN INTELLIGENCE may be needed to find the real source of error.

                4. Every programmer makes errors. Great programmers can find and fix them.

                1/

                mansr@society.oftrolls.comM This user is from outside of this forum
                mansr@society.oftrolls.comM This user is from outside of this forum
                mansr@society.oftrolls.com
                schrieb zuletzt editiert von
                #32

                @futurebird > The error will make sense.

                Have you heard of this thing called C++?

                futurebird@sauropods.winF 1 Antwort Letzte Antwort
                0
                • mansr@society.oftrolls.comM mansr@society.oftrolls.com

                  @futurebird > The error will make sense.

                  Have you heard of this thing called C++?

                  futurebird@sauropods.winF This user is from outside of this forum
                  futurebird@sauropods.winF This user is from outside of this forum
                  futurebird@sauropods.win
                  schrieb zuletzt editiert von
                  #33

                  @mansr

                  Yeah...

                  what I'm trying to convey is that there is a *reason* why the code isn't working and it will make sense in the context of the rules the got dang computer is trying to follow.

                  It might be annoying or silly, but it will "make sense"

                  mansr@society.oftrolls.comM apophis@brain.worm.pinkA 2 Antworten Letzte Antwort
                  0
                  • futurebird@sauropods.winF futurebird@sauropods.win

                    My students aren't lazy, but they *can* be a little perfectionist: scared to take risks or sit with not having the answer right away.

                    They are really upset when their code won't run... but staying calm and *systematically* looking for the cause of the problem, knowing that if you just work through the tree of possible causes you will find it is not something they are good at.

                    I think I need to teach this.

                    Maybe I will give them some broken code and we will find the errors together.

                    itgrrl@infosec.exchangeI This user is from outside of this forum
                    itgrrl@infosec.exchangeI This user is from outside of this forum
                    itgrrl@infosec.exchange
                    schrieb zuletzt editiert von
                    #34

                    @futurebird assigning code broken in specific ways & having a rubric for teaching the troubleshooting sounds like it should be SOP for coding courses, is this not normally part of the curriculum? 🤔

                    (def not dumping on you, asking as an Old who is a self-taught potato coder who never did a CS degree & feels like the way I learned basically anything that I do know was: type it in from a magazine or other source / modify working code that’s similar to what I need -> make mistakes in transcription / tweaks -> code doesn’t run or runs with errors -> troubleshoot the mistakes -> learn stuff 🙃)

                    voltagex@aus.socialV apophis@brain.worm.pinkA 2 Antworten Letzte Antwort
                    0
                    • wakame@tech.lgbtW wakame@tech.lgbt

                      @futurebird

                      I think this meme captures a point I am trying to make very nicely.

                      funnymonkey@freeradical.zoneF This user is from outside of this forum
                      funnymonkey@freeradical.zoneF This user is from outside of this forum
                      funnymonkey@freeradical.zone
                      schrieb zuletzt editiert von
                      #35

                      @wakame @futurebird

                      I love this thread and I love this meme.

                      I'd share this meme with them, and also share that error messages are like Captain Obvious: they might be accurate about showing when a problem exists, but often less helpful when fixing it.

                      I'd also highlight that bugs are a normal part of programming (and that code can "work"but still be shite).

                      From a classroom place, would "silent coding" followed by QA work as a structure?

                      Or is that what's in place when they call out?

                      1 Antwort Letzte Antwort
                      0
                      • itgrrl@infosec.exchangeI itgrrl@infosec.exchange

                        @futurebird assigning code broken in specific ways & having a rubric for teaching the troubleshooting sounds like it should be SOP for coding courses, is this not normally part of the curriculum? 🤔

                        (def not dumping on you, asking as an Old who is a self-taught potato coder who never did a CS degree & feels like the way I learned basically anything that I do know was: type it in from a magazine or other source / modify working code that’s similar to what I need -> make mistakes in transcription / tweaks -> code doesn’t run or runs with errors -> troubleshoot the mistakes -> learn stuff 🙃)

                        voltagex@aus.socialV This user is from outside of this forum
                        voltagex@aus.socialV This user is from outside of this forum
                        voltagex@aus.social
                        schrieb zuletzt editiert von
                        #36

                        @itgrrl also self taught, from what I can see this is rarely in courses - can ask some recent grads this week. @futurebird

                        wakame@tech.lgbtW ancoghlan@mastodon.socialA 2 Antworten Letzte Antwort
                        0
                        • futurebird@sauropods.winF futurebird@sauropods.win

                          Things to Try:
                          * look for typos
                          * look at what the error message indicates.

                          If these don't work consider reverting your last changes to the last working version of your code. Then try making the changes again, but be more careful.

                          If you can't revert the changes, start removing bits of the code systematically. Remove the things you think might cause the error and run the code again. Isolate the change or code that causes the problem.

                          You can be a great programmer.

                          2/2

                          ligasser@social.epfl.chL This user is from outside of this forum
                          ligasser@social.epfl.chL This user is from outside of this forum
                          ligasser@social.epfl.ch
                          schrieb zuletzt editiert von
                          #37

                          @futurebird I usually have clear me/them speaking parts in the course. While I speak, they listen, which I enforce up to the last whisper.

                          Also, the "me" parts only take 15-20 minutes each, then it's time for questions, https://github.com/ineiti/livequiz, or other interactions.

                          For the exercise sections, the "me" parts are of course much shorter.

                          futurebird@sauropods.winF tbyg@mastodon.sdf.orgT panicky_patzer@mastodon.socialP 3 Antworten Letzte Antwort
                          0
                          • futurebird@sauropods.winF futurebird@sauropods.win

                            My students aren't lazy, but they *can* be a little perfectionist: scared to take risks or sit with not having the answer right away.

                            They are really upset when their code won't run... but staying calm and *systematically* looking for the cause of the problem, knowing that if you just work through the tree of possible causes you will find it is not something they are good at.

                            I think I need to teach this.

                            Maybe I will give them some broken code and we will find the errors together.

                            voltagex@aus.socialV This user is from outside of this forum
                            voltagex@aus.socialV This user is from outside of this forum
                            voltagex@aus.social
                            schrieb zuletzt editiert von
                            #38

                            @futurebird this sounds fantastic - very keen to hear how it goes. I often find myself and others not able to break down an error message or missing a key part that's right in front of me.

                            Some languages, frameworks and IDEs make it easier than others.

                            1 Antwort Letzte Antwort
                            0
                            • futurebird@sauropods.winF futurebird@sauropods.win

                              Wanted: Advice from CS teachers

                              When #teaching a group of students new to coding I've noticed that my students who are normally very good about not calling out during class will shout "it's not working!" the moment their code hits an error and fails to run. They want me to fix it right away. This makes for too many interruptions since I'm easy to nerd snipe in this way.

                              I think I need to let them know that fixing errors that keep the code from running is literally what I'm trying to teach.

                              A This user is from outside of this forum
                              A This user is from outside of this forum
                              aliengasmask@mas.to
                              schrieb zuletzt editiert von
                              #39

                              @futurebird in my experience the jump from teaching scratch, where there are no syntax errors, to python is huge.

                              None of the courses ive taught (not my own) included anything covering how to deal with parser errors and i think its an entire lesson in itself. Not sure any students i had would have the patience to follow that lesson as it would be hard to have the "i made the computer do something" pay off.

                              Maybe a parser error cheatsheet is the answer?

                              1 Antwort Letzte Antwort
                              0
                              • futurebird@sauropods.winF futurebird@sauropods.win

                                @mansr

                                Yeah...

                                what I'm trying to convey is that there is a *reason* why the code isn't working and it will make sense in the context of the rules the got dang computer is trying to follow.

                                It might be annoying or silly, but it will "make sense"

                                mansr@society.oftrolls.comM This user is from outside of this forum
                                mansr@society.oftrolls.comM This user is from outside of this forum
                                mansr@society.oftrolls.com
                                schrieb zuletzt editiert von
                                #40

                                @futurebird I know what you mean, and you're perfectly right when it comes to sane programming languages. However, C++ compilers have a habit of spewing out error messages the size of a Tolstoy novel in response to mistakes as trivial as a missing comma. Now I assume you're not teaching the kids C++ as that would be quite irresponsible.

                                semitones@tiny.tilde.websiteS linebyline@mastoart.socialL 2 Antworten Letzte Antwort
                                0
                                • ligasser@social.epfl.chL ligasser@social.epfl.ch

                                  @futurebird I usually have clear me/them speaking parts in the course. While I speak, they listen, which I enforce up to the last whisper.

                                  Also, the "me" parts only take 15-20 minutes each, then it's time for questions, https://github.com/ineiti/livequiz, or other interactions.

                                  For the exercise sections, the "me" parts are of course much shorter.

                                  futurebird@sauropods.winF This user is from outside of this forum
                                  futurebird@sauropods.winF This user is from outside of this forum
                                  futurebird@sauropods.win
                                  schrieb zuletzt editiert von
                                  #41

                                  @ligasser

                                  "I usually have clear me/them speaking parts in the course. While I speak, they listen, which I enforce up to the last whisper.

                                  Also, the "me" parts only take 15-20 minutes each"

                                  This is how I normally teach (although with middle school students I keep "me" bits to under 8 min each) this is why it's so annoying when they call out during these sections. Something they wouldn't ever do normally.

                                  Something about coding and seeing the error makes them not see it as "time to listen"

                                  ligasser@social.epfl.chL jhlibby@newsie.socialJ 2 Antworten Letzte Antwort
                                  0
                                  • futurebird@sauropods.winF futurebird@sauropods.win

                                    @wakame

                                    This is helpful for me. I had a hard time understanding why one student was upset, almost to the point of tears (they are very sensitive) that the error message said "error on line 32" but, really the problem was the way they originally named the variable.

                                    "Why couldn't it just say the error was on line 4? 😢 I tried everything I could to fix line 32. 🥺 😢 "

                                    My sweet child... it's just not that smart, not like you.

                                    mensrea@freeradical.zoneM This user is from outside of this forum
                                    mensrea@freeradical.zoneM This user is from outside of this forum
                                    mensrea@freeradical.zone
                                    schrieb zuletzt editiert von
                                    #42

                                    @futurebird @wakame I'm not a teacher but I have given interns and others learning projects. Like "here is some code that should do <the thing> but it doesn't work. find why it's not doing <the thing>". I also used to come into the room and ask "what's broken?" making the framing, there's always something not working and we're here to find out way. and always starting my help with "what have you tried"

                                    wakame@tech.lgbtW 1 Antwort Letzte Antwort
                                    0
                                    • futurebird@sauropods.winF futurebird@sauropods.win

                                      Example of the problem:

                                      Me: "OK everyone. Next we'll make this into a function so we can simply call it each time-"

                                      Student 1: "It won't work." (student who wouldn't interrupt like this normally)

                                      Student 2: "Mine's broken too!"

                                      Student 3: "It says error. I have the EXACT same thing as you but it's not working."

                                      This makes me feel overloaded and grouchy. Too many questions at once. What I want them to do is wait until the explanation is done and ask when I'm walking around. #CSEdu

                                      voltagex@aus.socialV This user is from outside of this forum
                                      voltagex@aus.socialV This user is from outside of this forum
                                      voltagex@aus.social
                                      schrieb zuletzt editiert von
                                      #43

                                      @futurebird apologies for replying to so many parts of this but one thing I can think of (noting I am not a trained teacher)

                                      Are there any particular high performers or people who are normally finished before others in your class?

                                      Can you enlist them to help out? I get this may go against wanting them to wait but it may stop or slow the barrage, or even encourage problem solving in the group.

                                      I am definitely looking forward to hearing how it all goes. Best of luck - it's kind of endearing to hear students haven't changed that much since I was one.

                                      1 Antwort Letzte Antwort
                                      0
                                      • futurebird@sauropods.winF futurebird@sauropods.win

                                        My students aren't lazy, but they *can* be a little perfectionist: scared to take risks or sit with not having the answer right away.

                                        They are really upset when their code won't run... but staying calm and *systematically* looking for the cause of the problem, knowing that if you just work through the tree of possible causes you will find it is not something they are good at.

                                        I think I need to teach this.

                                        Maybe I will give them some broken code and we will find the errors together.

                                        bumblefish@mastodon.scotB This user is from outside of this forum
                                        bumblefish@mastodon.scotB This user is from outside of this forum
                                        bumblefish@mastodon.scot
                                        schrieb zuletzt editiert von
                                        #44

                                        @futurebird This is an excellent exercise and most of your students will get a lot out of it. Be prepared though for the 3-6 who simply will not believe you. Especially if they've used ChatGPT. My CS friend has students who don't believe him when the thing in front of them differs from ChatGPT just like my language students will not accept that the machine translation is not correct/common usage.

                                        citc@zotum.netC 1 Antwort Letzte Antwort
                                        0
                                        • mensrea@freeradical.zoneM mensrea@freeradical.zone

                                          @futurebird @wakame I'm not a teacher but I have given interns and others learning projects. Like "here is some code that should do <the thing> but it doesn't work. find why it's not doing <the thing>". I also used to come into the room and ask "what's broken?" making the framing, there's always something not working and we're here to find out way. and always starting my help with "what have you tried"

                                          wakame@tech.lgbtW This user is from outside of this forum
                                          wakame@tech.lgbtW This user is from outside of this forum
                                          wakame@tech.lgbt
                                          schrieb zuletzt editiert von
                                          #45

                                          @mensrea @futurebird

                                          That is something I should definitely try sometime.

                                          When the broken code comes from another person, it is more "improving something" and less "getting your work dissected".

                                          mensrea@freeradical.zoneM 1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen



                                          Copyright (c) 2025 abSpecktrum (@abspecklog@fedimonster.de)

                                          Erstellt mit Schlaflosigkeit, Kaffee, Brokkoli & ♥

                                          Impressum | Datenschutzerklärung | Nutzungsbedingungen

                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Über dieses Forum