Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • 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 (Darkly)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Uncategorized
  3. Wanted: Advice from CS teachers

Wanted: Advice from CS teachers

Scheduled Pinned Locked Moved Uncategorized
200 Posts 128 Posters 0 Views
  • 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.
  • myrmepropagandistF myrmepropagandist

    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.

    lemgandiL This user is from outside of this forum
    lemgandiL This user is from outside of this forum
    lemgandi
    wrote last edited by
    #120

    @futurebird An old mentor of mine introduced me to a useful acronym: KMAFYOYO

    'Kiss My Ass Fella, You are On Your Own'

    It is even phonetic.

    1 Reply Last reply
    0
    • myrmepropagandistF myrmepropagandist

      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.

      Andy in IndyN This user is from outside of this forum
      Andy in IndyN This user is from outside of this forum
      Andy in Indy
      wrote last edited by
      #121

      @futurebird Maybe give them a homework assignment: Pay close attention to how many times in a day you hear somebody misspeak and correct themself, no matter how small it is. We all do this a lot, but it happens so fast and so often that we rarely notice.

      When it happens in a computer program, we call that a bug. But the computer won't have the zillion shared context clues that human language enjoys. It can't work out what you mean by itself. And it has very limited ways to ask for help.

      Andy in IndyN 1 Reply Last reply
      0
      • myrmepropagandistF myrmepropagandist

        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.

        dimsumthinkingD This user is from outside of this forum
        dimsumthinkingD This user is from outside of this forum
        dimsumthinking
        wrote last edited by
        #122

        @futurebird @nicklockwood to me that’s one of the fundamental truths of programming (or doing real math or science). Most of the time you’re wrong and trying to figure out how to fix it or address it. We do t spend much time on our successes we go on to the next thing that isn’t working. So I agree with your thoughts

        1 Reply Last reply
        0
        • myrmepropagandistF myrmepropagandist

          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.

          TBYGT This user is from outside of this forum
          TBYGT This user is from outside of this forum
          TBYG
          wrote last edited by
          #123

          @futurebird
          Thank you for asking this. It made me feel useful, and brought back good memories now that I'm retired. Something else it made me think of was students' reaction when I'd come over to help with a problem they'd been struggling with for a while and point right at it. They would be all amazed and say how did you do that, and I'm like, well I've seen it hundreds of times. 😄

          1 Reply Last reply
          0
          • myrmepropagandistF myrmepropagandist

            I think they become anxious when their code isn't working the same as what I have up on the projector and they want to get it fixed RIGHT AWAY so they won't fall behind.

            Then when one of them starts calling out they all do it.

            I may take some time to explain this.

            This never happens when I'm teaching math. Something about coding makes them forget some of their manners, and become less self-sufficient. "It's broke! I'm helpless!"

            What is that about?

            Queen of the Meds ApparentlyQ This user is from outside of this forum
            Queen of the Meds ApparentlyQ This user is from outside of this forum
            Queen of the Meds Apparently
            wrote last edited by
            #124

            @futurebird Some of it may be the lack of confidence in being able to fix it. I have seen devs who, as soon as they hit an issue, immediately look to make it someone else’s problem, so I fully support teaching them how to debug.

            I like the idea of giving them buggy code. A lot of being a developer is finding the mistake the past developer (often yourself) made. 🙂

            1 Reply Last reply
            0
            • SemitonesS This user is from outside of this forum
              SemitonesS This user is from outside of this forum
              Semitones
              wrote last edited by
              #125

              @fortunos @futurebird pretty funny if you can pull it off. Can destroy some kids though.

              1 Reply Last reply
              0
              • myrmepropagandistF myrmepropagandist

                @Zwifi

                I do this with my older students and with those with more experience. This is the one course that I teach that EVERYONE must take. So there are kids there who have never programmed anything. Kids who were confused when I had them use a computer with a mouse since they'd never seen one in person before.

                I'm glad we have such a course. But they just don't know enough to do this yet.

                And I have an agenda: I want them to have fun.

                ZwifiZ This user is from outside of this forum
                ZwifiZ This user is from outside of this forum
                Zwifi
                wrote last edited by
                #126

                @futurebird oh I see, indeed this was with university students, I've never teached computer science to younger students so I'll read what others have suggested. But at any stage of learning, I completely agree that some fun being involved greatly greases the wheels 🙂

                1 Reply Last reply
                0
                • Linus GasserL Linus Gasser

                  @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.

                  TBYGT This user is from outside of this forum
                  TBYGT This user is from outside of this forum
                  TBYG
                  wrote last edited by
                  #127

                  @ligasser @futurebird

                  Yes, that's exactly what I did! I already posted a couple of answers, but after looking at the whole thread I realized I didn't really understand the question. Yes, I think this is the answer to the question.

                  1 Reply Last reply
                  0
                  • myrmepropagandistF myrmepropagandist

                    @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.

                    Jeffy 🏳️‍⚧️🏳️‍🌈🇺🇦 ❤️🇱🇺G This user is from outside of this forum
                    Jeffy 🏳️‍⚧️🏳️‍🌈🇺🇦 ❤️🇱🇺G This user is from outside of this forum
                    Jeffy 🏳️‍⚧️🏳️‍🌈🇺🇦 ❤️🇱🇺
                    wrote last edited by
                    #128

                    @futurebird i think Microsoft in the 90s set up this attitude towards computers that still lives today: “it’s your fault if it doesn’t work”.

                    I never had to use Windows — ever — and every time I would sit down to try, something glaringly bad would be right there interfering.

                    And I’ve been a dev and UX person for nearly 40 years.

                    1 Reply Last reply
                    0
                    • Andy in IndyN Andy in Indy

                      @futurebird Maybe give them a homework assignment: Pay close attention to how many times in a day you hear somebody misspeak and correct themself, no matter how small it is. We all do this a lot, but it happens so fast and so often that we rarely notice.

                      When it happens in a computer program, we call that a bug. But the computer won't have the zillion shared context clues that human language enjoys. It can't work out what you mean by itself. And it has very limited ways to ask for help.

                      Andy in IndyN This user is from outside of this forum
                      Andy in IndyN This user is from outside of this forum
                      Andy in Indy
                      wrote last edited by
                      #129

                      @futurebird Also, I tell junior devs to think back to science class. Every change you make to code is an experiment; your hypothesis is that the new code will be somehow better than the old. But you can't put too many variables in an experiment, or you won't know which changes mattered and why.

                      So test often. Test after every line of code if you have to. It sounds annoying but it's much easier than the avalanche of bugs you get when running 1000 new lines the first time.

                      Go slow to go fast.

                      1 Reply Last reply
                      0
                      • Paco (2026: New) HopeP Paco (2026: New) Hope

                        @futurebird I’m pivoting off this just to share a funny story. An old CS prof shared this with me when I was staff in a CS department at a university.

                        One of his undergrads had come to him with a big printed listing of their code (back when that was how you did that! It was probably FORTRAN printed on fan-fold paper). They obviously wanted him to find the problem in their code. It became clear quickly that they hadn’t done anything to debug it themselves.

                        He started point at various places in the listing. “Right here, add PRINT ‘I am a dumbass’. And here: PRINT ‘I am a dumbass’” and so on. “Then run it and see how many dumbasses you get.”

                        Now, did he really do that? Is that just how he tells the story? Who knows. But it’s funny. And anyone who has ever written code will agree that this works sometimes.

                        LeelooL This user is from outside of this forum
                        LeelooL This user is from outside of this forum
                        Leeloo
                        wrote last edited by
                        #130

                        @paco @futurebird
                        I've had problems so frustrating I've ended up adding

                        print("1")

                        print("2")

                        print("3")

                        print("4")

                        It's rare, but sometimes everything else fails.

                        1 Reply Last reply
                        0
                        • Solar🌄GardenW Solar🌄Garden

                          @semitones @futurebird rather than eeg-waveforms, I'd think hunting-defending vs. socializing-exploring. one's polite, the other's time and response critical, manners dont matter. think of a cat doing these different things.

                          Solar🌄GardenW This user is from outside of this forum
                          Solar🌄GardenW This user is from outside of this forum
                          Solar🌄Garden
                          wrote last edited by
                          #131

                          @semitones @futurebird because someone is in a similar physical environment doing extremely abstracted thinking in both [school] cases, easy to forget the brain-activity modulation system [i'd have to look it up for proper name - ¿limbic system? just sprung up, thank you my brain!] is in utterly different state

                          1 Reply Last reply
                          0
                          • That’s a morayB That’s a moray

                            @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.

                            citcC This user is from outside of this forum
                            citcC This user is from outside of this forum
                            citc
                            wrote last edited by
                            #132
                            @That’s a moray
                            Preference for belief in computer output, compared to human specialist, is now standard behaviour amongst the "yoof"
                            1 Reply Last reply
                            0
                            • myrmepropagandistF myrmepropagandist

                              Sometimes I have them write the code on paper with the computers closed. And this is fine, but I'd rather have them using the IDE or textedit and there is a limit to how much fun you can have with code on paper.

                              And it does tend to be the weaker students who are almost happy to find something to stop the onslaught of information "see it doesn't work! we can't go on!" and that obviously makes me very grouchy.

                              I need them to see this is like saying "Teacher my pencil broke! Stop the lesson!"

                              Kate NyhanN This user is from outside of this forum
                              Kate NyhanN This user is from outside of this forum
                              Kate Nyhan
                              wrote last edited by
                              #133

                              @futurebird
                              In Carpentries instructor training, they teach you to handle this by giving everyone two colors of sticky notes. You have the students put the green note sticking up like a flag on their laptop when things are going well, and the red note when they are dealing with a problem and need help.
                              Works very well in the context of Carpentries workshops!

                              Kate NyhanN 1 Reply Last reply
                              0
                              • Kate NyhanN Kate Nyhan

                                @futurebird
                                In Carpentries instructor training, they teach you to handle this by giving everyone two colors of sticky notes. You have the students put the green note sticking up like a flag on their laptop when things are going well, and the red note when they are dealing with a problem and need help.
                                Works very well in the context of Carpentries workshops!

                                Kate NyhanN This user is from outside of this forum
                                Kate NyhanN This user is from outside of this forum
                                Kate Nyhan
                                wrote last edited by
                                #134

                                @futurebird
                                Of course, in that setting, there are several "helper instructors" who can go and troubleshoot while the main instructor continues the presentation... Not sure the post-its by themselves will solve things 🤷‍♀️

                                1 Reply Last reply
                                0
                                • myrmepropagandistF myrmepropagandist

                                  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.

                                  Deborah Preuss, pcc 🇨🇦D This user is from outside of this forum
                                  Deborah Preuss, pcc 🇨🇦D This user is from outside of this forum
                                  Deborah Preuss, pcc 🇨🇦
                                  wrote last edited by
                                  #135

                                  @futurebird @ShaulaEvans yes! The constructive value of "I don't know" lies sitting with (using) the discomfort, and daring to try something that may not work (yet). I was a great debugger, if I say so myself 🤭.

                                  Deborah Preuss, pcc 🇨🇦D 1 Reply Last reply
                                  0
                                  • myrmepropagandistF myrmepropagandist

                                    @petealexharris @wakame

                                    "Error handling code is code."

                                    It had not occurred to me that a student might not see it that way "some guy wrote code to try to tell you what went wrong" but I can see how this might not be how a student might see the errors.

                                    It's like when I realized as a kid that all books are just ... written by people. A revelation. I think I thought, on some level, books were a natural product of the universe. When I realized they could have typos, bad ideas it was so exciting.

                                    NerbN This user is from outside of this forum
                                    NerbN This user is from outside of this forum
                                    Nerb
                                    wrote last edited by
                                    #136

                                    @futurebird @petealexharris @wakame

                                    And sometimes its not even the code but instead something inside the device.

                                    Recently decided to add a feature to a device I made for myself that added WiFi functionality to it. First thing noticed when the device started was it rebooting every 3 seconds

                                    Since it had been fine before this my mind said dumbo you did something wrong. Spend time carefully going through the code and not finding any problem. Looked online and did not see complaints similar to what I was experiencing It was when I gave in and used someone else's library that the problem was found.

                                    All I did was initialize the library and poof the every 3 second reboot started again. Was sure I had a bad device but went through the Github issues and found someone with the same complaint. Turns out the device works fine minus WiFi with 5v external power but needs 6v with WiFi. The WiFi bootup pulls the voltage down and the internal watchdog sees the low power and reboots. Ugg.

                                    1 Reply Last reply
                                    0
                                    • Not a Spring OnionW Not a Spring Onion

                                      @futurebird

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

                                      TheFwGuy 🇪🇺🇮🇹🇺🇸🖖T This user is from outside of this forum
                                      TheFwGuy 🇪🇺🇮🇹🇺🇸🖖T This user is from outside of this forum
                                      TheFwGuy 🇪🇺🇮🇹🇺🇸🖖
                                      wrote last edited by
                                      #137

                                      @wakame @futurebird It's seems a contradiction but actually .. not 😆 😈

                                      1 Reply Last reply
                                      0
                                      • myrmepropagandistF myrmepropagandist

                                        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.

                                        jmhtJ This user is from outside of this forum
                                        jmhtJ This user is from outside of this forum
                                        jmht
                                        wrote last edited by
                                        #138

                                        @futurebird There's always the classic return: "Why?"

                                        myrmepropagandistF 1 Reply Last reply
                                        0
                                        • Deborah Preuss, pcc 🇨🇦D Deborah Preuss, pcc 🇨🇦

                                          @futurebird @ShaulaEvans yes! The constructive value of "I don't know" lies sitting with (using) the discomfort, and daring to try something that may not work (yet). I was a great debugger, if I say so myself 🤭.

                                          Deborah Preuss, pcc 🇨🇦D This user is from outside of this forum
                                          Deborah Preuss, pcc 🇨🇦D This user is from outside of this forum
                                          Deborah Preuss, pcc 🇨🇦
                                          wrote last edited by
                                          #139

                                          @futurebird @ShaulaEvans https://mastodon.social/@dahukanna/115873119314743574

                                          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.
                                          Powered by NodeBB Contributors
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups