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 (Darkly)
  • No Skin
Collapse

Chebucto Regional Softball Club

  1. Home
  2. Uncategorized
  3. Wanted: Advice from CS teachers
A forum for discussing and organizing recreational softball and baseball games and leagues in the greater Halifax area.

Wanted: Advice from CS teachers

Scheduled Pinned Locked Moved Uncategorized
233 Posts 143 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.

    U.LancierU This user is from outside of this forum
    U.LancierU This user is from outside of this forum
    U.Lancier
    wrote last edited by
    #52

    @futurebird give them code that is flawed and without/withbad commentary to fix from the beginning. Also to teach them that this is the default state of *any* code they will encounter in real life.

    1 Reply Last reply
    0
    • myrmepropagandistF myrmepropagandist

      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

      hoertaufH This user is from outside of this forum
      hoertaufH This user is from outside of this forum
      hoertauf
      wrote last edited by
      #53

      @futurebird You probably already know @b0rk‘s Pocked Guide to Debugging. The thing I love so much about it is how she cherishes the bug, instead of squashing it (in the illustrations too). I love this attitude. Not sure if students can learn to think that way? There is a beautiful poster too:

      📰 https://wizardzines.com/zines/debugging-guide/

      🖼️ https://store.wizardzines.com/products/poster-debugging-manifesto

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

        rag. Gustavino BevilacquaG This user is from outside of this forum
        rag. Gustavino BevilacquaG This user is from outside of this forum
        rag. Gustavino Bevilacqua
        wrote last edited by
        #54

        @futurebird

        When "teaching Internet" (to adults), to explain algorithms I asked "describe what you do between you boot (wake up) and go to work".

        A high % went to work wearing their pajamas, according to their algorithm

        It was my way to teach "don't take anything for granted".

        1 Reply Last reply
        0
        • myrmepropagandistF myrmepropagandist

          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.

          myrmepropagandistF This user is from outside of this forum
          myrmepropagandistF This user is from outside of this forum
          myrmepropagandist
          wrote last edited by
          #55

          Sometimes when you are teaching you need to stop the lecture, change the plan because there is an error in the worksheet, or the problem is too hard.

          What's really annoying me is that some students think that when their code doesn't run this is "a problem with the lesson" I should stop everything until we fix it.

          But, my lesson is fine. The student just made a typo.

          They are so focused on the code running they aren't listening to the lesson which would teach them WHY it's not running.

          Je ne suis pas gothJ myrmepropagandistF JimmyJ ? 4 Replies Last reply
          1
          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?

            ? Offline
            ? Offline
            Guest
            wrote last edited by
            #56

            @futurebird "This never happens when I'm teaching math. Something about coding makes them forget some of their manners"

            My take -- it's GOAL-ORIENTED. Maths is modelling, descriptive. Δ🧠-states

            ? SemitonesS 2 Replies 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.

              JakeA This user is from outside of this forum
              JakeA This user is from outside of this forum
              Jake
              wrote last edited by
              #57

              @futurebird @wakame speaking of computers not being that smart, I always like the lesson of programming with real world examples. Like "program me to make a peanut butter sandwich". inevitably you get something like "step one, put peanut butter on bread" at which point you put the jar of peanut butter on a slice of bread.

              a lot of human interaction assumes a computer is"smart" because it can do things quickly that you cannot do quickly and humans have worked very hard to make it appear that computers are thinking and doing stuff like a person. Machine learning is, unfortunately exacerbating this effect.

              to the original question of how to reduce interuption? maybe that why my college professor got into too programming made me handwrite code with pencil and paper 😭 (not a flashback I needed)

              1 Reply Last reply
              0
              • myrmepropagandistF myrmepropagandist

                Sometimes when you are teaching you need to stop the lecture, change the plan because there is an error in the worksheet, or the problem is too hard.

                What's really annoying me is that some students think that when their code doesn't run this is "a problem with the lesson" I should stop everything until we fix it.

                But, my lesson is fine. The student just made a typo.

                They are so focused on the code running they aren't listening to the lesson which would teach them WHY it's not running.

                Je ne suis pas gothJ This user is from outside of this forum
                Je ne suis pas gothJ This user is from outside of this forum
                Je ne suis pas goth
                wrote last edited by
                #58

                @futurebird I like to say that when students are in front of a computer, their ears disappear. 🙂

                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?

                  cake-dukeO This user is from outside of this forum
                  cake-dukeO This user is from outside of this forum
                  cake-duke
                  wrote last edited by
                  #59

                  @futurebird

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

                  Isn't this the whole problem? Maybe they intuit from you that the class is "keep up with the projector", when in reality the valuable skill is "if you're lost or confused, come up with hypothesis and critically explore them by yourself until you figure out what's going on".

                  cake-dukeO 1 Reply Last reply
                  0
                  • myrmepropagandistF myrmepropagandist

                    Sometimes when you are teaching you need to stop the lecture, change the plan because there is an error in the worksheet, or the problem is too hard.

                    What's really annoying me is that some students think that when their code doesn't run this is "a problem with the lesson" I should stop everything until we fix it.

                    But, my lesson is fine. The student just made a typo.

                    They are so focused on the code running they aren't listening to the lesson which would teach them WHY it's not running.

                    myrmepropagandistF This user is from outside of this forum
                    myrmepropagandistF This user is from outside of this forum
                    myrmepropagandist
                    wrote last edited by
                    #60

                    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!"

                    LappenjammerDieZweiteL SemitonesS ? ? Francis CookD 7 Replies Last reply
                    1
                    0
                    • ? Guest

                      @futurebird "This never happens when I'm teaching math. Something about coding makes them forget some of their manners"

                      My take -- it's GOAL-ORIENTED. Maths is modelling, descriptive. Δ🧠-states

                      ? Offline
                      ? Offline
                      Guest
                      wrote last edited by
                      #61

                      @futurebird ....your timeline is exhausting, a navigational nightmare! Extension of a class-full, I guess....

                      1 Reply Last reply
                      0
                      • Roger BW 😷R Roger BW 😷

                        @futurebird So Your Code Won't Run: great! Errors like this that stop it running completely are much easier to track down than errors that just give you the wrong answer. Or give you the wrong answer _sometimes_.

                        ? Offline
                        ? Offline
                        Guest
                        wrote last edited by
                        #62

                        @RogerBW @futurebird (some) C coders have a saying:

                        If the compiler emits an error, then your code can't run;

                        If the compiler emits a warning, then your code won't run, at least not the way you expect it to;

                        If the compiler emits no errors and no warnings, then it's high time you updated your compiler.

                        Roger BW 😷R 1 Reply Last reply
                        0
                        • Adam ♿V Adam ♿

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

                          ? Offline
                          ? Offline
                          Guest
                          wrote last edited by
                          #63

                          @voltagex @itgrrl @futurebird

                          At the university we had this maybe once.

                          But then, to quote a professor: "You are learning 'computer science' here. 'Programming' is something that you should either already know or learn in your free time."

                          1 Reply Last reply
                          0
                          • myrmepropagandistF myrmepropagandist

                            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.

                            Miguel GuhlinM This user is from outside of this forum
                            Miguel GuhlinM This user is from outside of this forum
                            Miguel Guhlin
                            wrote last edited by
                            #64

                            @futurebird Maybe follow a writing workshop approach. 10 minute mini lesson, students work on applying coding concept, you conference with them individually after checking on what they are doing, group share at the end where they show their code and what they have done while others make a positive remark or suggestion. End each week or whatever time range with a culminating project that shows their knowledge of three core ideas taught. A suggestion from a writing teacher…may not work.

                            1 Reply Last reply
                            0
                            • cake-dukeO cake-duke

                              @futurebird

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

                              Isn't this the whole problem? Maybe they intuit from you that the class is "keep up with the projector", when in reality the valuable skill is "if you're lost or confused, come up with hypothesis and critically explore them by yourself until you figure out what's going on".

                              cake-dukeO This user is from outside of this forum
                              cake-dukeO This user is from outside of this forum
                              cake-duke
                              wrote last edited by
                              #65

                              @futurebird It's hard to sit back and think when you're under the pressure of "do it fast or you'll fall behind". Maybe decouple the two: projector classes shouldn't be done in front of the computer. Projector classes are for you to show something, and interacting with the computer are for the students to explore, and you can't do both at the same time.

                              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.

                                ? Offline
                                ? Offline
                                Guest
                                wrote last edited by
                                #66

                                @futurebird I take it there are no assistants in class?

                                I have no idea if we're talking young adults, high school, or primary. But in high school in the 1980s for grade 12 CS we had to assist in the grade 9 CS class. When a student would raise their hands, one of us in grade 12 would rush over, leaving the teacher uninterrupted.

                                myrmepropagandistF 2 Replies Last reply
                                0
                                • ? Guest

                                  @futurebird I take it there are no assistants in class?

                                  I have no idea if we're talking young adults, high school, or primary. But in high school in the 1980s for grade 12 CS we had to assist in the grade 9 CS class. When a student would raise their hands, one of us in grade 12 would rush over, leaving the teacher uninterrupted.

                                  myrmepropagandistF This user is from outside of this forum
                                  myrmepropagandistF This user is from outside of this forum
                                  myrmepropagandist
                                  wrote last edited by
                                  #67

                                  @charette

                                  These are middle school kids. I don't think they need someone to rush over and help them. I want them to think about "my code won't run" in a different way.

                                  1 Reply Last reply
                                  0
                                  • ? Guest

                                    @futurebird I take it there are no assistants in class?

                                    I have no idea if we're talking young adults, high school, or primary. But in high school in the 1980s for grade 12 CS we had to assist in the grade 9 CS class. When a student would raise their hands, one of us in grade 12 would rush over, leaving the teacher uninterrupted.

                                    myrmepropagandistF This user is from outside of this forum
                                    myrmepropagandistF This user is from outside of this forum
                                    myrmepropagandist
                                    wrote last edited by
                                    #68

                                    @charette

                                    Like if someone offered me an assistant I'd say "that's OK." the class size is reasonable 12-18 students. I just need to help them understand errors better.

                                    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.

                                      Pete Alex Harris🦡🕸️🌲/∞🪐∫P This user is from outside of this forum
                                      Pete Alex Harris🦡🕸️🌲/∞🪐∫P This user is from outside of this forum
                                      Pete Alex Harris🦡🕸️🌲/∞🪐∫
                                      wrote last edited by
                                      #69

                                      @futurebird @wakame

                                      The thing I keep saying is: an error message is not a person telling you what specifically went wrong this time. It's a string somebody writing the program months or years ago thought would describe what they *guessed* back then might cause the code to reach that state unexpectedly.

                                      1. Code can always be wrong, sometimes in ways the programmer hadn't thought of (in fact often since they probably handled the ways they'd thought of) and,
                                      2. Error handling code is code.

                                      myrmepropagandistF Edward L PlattE 2 Replies 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?

                                        NiniN This user is from outside of this forum
                                        NiniN This user is from outside of this forum
                                        Nini
                                        wrote last edited by
                                        #70

                                        @futurebird When the computer doesn't do the thing when it's supposed to it can be like "why isn't the machine doing what I say?", they're not the source of the issue but the computer can be. When you're the computer, you only have yourself to fix the problem.

                                        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.

                                          AlanR This user is from outside of this forum
                                          AlanR This user is from outside of this forum
                                          Alan
                                          wrote last edited by
                                          #71

                                          @futurebird Maybe a change of emphasis focussing on "getting it working" as the task, while entering the code becomes a more mechanical step that just has to be done?

                                          1 Reply Last reply
                                          0

                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 6
                                          • 7
                                          • 8
                                          • 11
                                          • 12
                                          • 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