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

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

    ? Offline
    ? Offline
    Guest
    wrote last edited by
    #79

    @futurebird @wakame I am in my 40s and I still, occasionally, spend hours trying to fix line 32.

    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
      #80

      @futurebird my student tutor had an annoying habit of answering questions like that with "try doing it right instead of wrong", which was pretty obviously just a way to not get flooded with this exact type of comment.

      On the one hand, it's smarmy and unhelpful. On the other hand, sometimes it's useful to tell someone to sit down and not panic in your face so you can continue doing your thing (for their benefit)

      SemitonesS 1 Reply Last reply
      0
      • myrmepropagandistF myrmepropagandist

        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/

        MCDuncanLabM This user is from outside of this forum
        MCDuncanLabM This user is from outside of this forum
        MCDuncanLab
        wrote last edited by
        #81

        @futurebird

        Thanks this is really helpful. We teach a graduate class on quantitative cell biology based in python. Many ppl don’t have prior coding experience, we probably need a section like this.

        Iris Young (he/they/she) (PhD)I 1 Reply Last reply
        0
        • myrmepropagandistF myrmepropagandist

          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/

          James GilbertJ This user is from outside of this forum
          James GilbertJ This user is from outside of this forum
          James Gilbert
          wrote last edited by
          #82

          @futurebird This is what I would have suggested. Introduce the compiler, explain that you will encounter errors, but the error messages are designed to be as helpful as they can be.

          (If you're using Python, error messages have been worked on over the last few major releases, with teaching particularly in mind, so it's worth using the most recent.)

          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.

            PeteP This user is from outside of this forum
            PeteP This user is from outside of this forum
            Pete
            wrote last edited by
            #83

            @futurebird

            Test Driven Development can help, although there are skills needed, and you can have errors in your tests!

            But the skills needed to write/troubleshoot a good test are more focused/limited than being able to code

            Tests also encourage you to write testable code, which is usually modular/functional, and broken code elsewhere is less likely to affect it.

            Monolithic code is hard to test/debug.

            1 Reply Last reply
            0
            • myrmepropagandistF myrmepropagandist

              @paco

              My students are too hard working and sensitive to deserve such things.

              But.

              Well, I have met other people in my life.

              Paco Ho Ho Hope πŸŽ„P This user is from outside of this forum
              Paco Ho Ho Hope πŸŽ„P This user is from outside of this forum
              Paco Ho Ho Hope πŸŽ„
              wrote last edited by
              #84

              @futurebird Of course. I wouldn’t ever say that to someone trying to learn. But you could tell them the story about the grumpy professor who was a jerk, and they can laugh while learning what printf() debugging is. πŸ˜€

              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.

                ? Offline
                ? Offline
                Guest
                wrote last edited by
                #85

                @futurebird @petealexharris

                Same with the "average end user":
                Your text processor or spreadsheet program also never says "This is the developer writing: I have no idea what you just did, but I didn't expect this."

                Only "Error 0x8002f0f0: Good luck trying to find out what that means."

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

                  LappenjammerDieZweiteL This user is from outside of this forum
                  LappenjammerDieZweiteL This user is from outside of this forum
                  LappenjammerDieZweite
                  wrote last edited by
                  #86

                  @futurebird Can I just say: reading this makes me aware what a great teacher you are. Your overall approach and your thoughts about finding the bugs are inspirational. Also they demonstrate in themselves how to try and find the error that causes your students to act differently to their standard.

                  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.

                    azA This user is from outside of this forum
                    azA This user is from outside of this forum
                    az
                    wrote last edited by
                    #87

                    @futurebird caveat: Not a teacher!

                    I'm not sure what level your students are at, what specifically you are teaching them or how much control you have over the course but...

                    If you've not seen it already you might like to look at https://hedy.org . It's a language designed for teaching that gradually adds syntax as you explore concepts until you reach a subset of syntactically valid Python. The error messages are also very useful, thoughtfully designed and tested in classroom settings.

                    Excellent talk by the creator here www.youtube.com/watch?v=6ED36HvQSvk

                    Honorable mention to Elm and Rust for having excellent error messages too!

                    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

                      Bryan WrightC This user is from outside of this forum
                      Bryan WrightC This user is from outside of this forum
                      Bryan Wright
                      wrote last edited by
                      #88

                      @futurebird

                      Also: If you see pages and pages of errors, start by looking at the first error message. Often, that's the cause of all the others. Students sometimes just give up when confronted with a wall of errors.

                      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.

                        JimmyJ This user is from outside of this forum
                        JimmyJ This user is from outside of this forum
                        Jimmy
                        wrote last edited by
                        #89

                        @futurebird I guess this was an advantage of punch cards for teachers. We had to take our deck down to the mainframe and put it in the queue to find out if it ran, then figure out why it didn't on our own.

                        Maybe try having the students debug for themselves instead of begging for handholding.

                        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.

                          William WittemanW This user is from outside of this forum
                          William WittemanW This user is from outside of this forum
                          William Witteman
                          wrote last edited by
                          #90

                          @futurebird @wakame The metaphor I use with line numbers in error messages is "I fell down on line 32. I don't know where I tripped, but this is where I fell."

                          It is a hint, and you can find it from there, but the cause could be before. Students understand that tripping and falling are distinct, causal actions, and that knowing what you tripped on may be unknowable until you go back and look.

                          Bytebro πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡¦B 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!"

                            SemitonesS This user is from outside of this forum
                            SemitonesS This user is from outside of this forum
                            Semitones
                            wrote last edited by
                            #91

                            @futurebird I am just a humble outdoor educator, so my tools are primitive compared to yours, but maybe they would be interesting anyway. I am interested how they compare to yours.

                            My classroom management methods all tie back to the concept of mutual respect, and I'll write a symbol of an eye, an ear, and a heart on the whiteboard. These represent and remind students "what does respect look like, sound like, and feel like?"

                            One thing respect sounds like is One Voice. (1 / )

                            SemitonesS 1 Reply Last reply
                            0
                            • SemitonesS Semitones

                              @futurebird I am just a humble outdoor educator, so my tools are primitive compared to yours, but maybe they would be interesting anyway. I am interested how they compare to yours.

                              My classroom management methods all tie back to the concept of mutual respect, and I'll write a symbol of an eye, an ear, and a heart on the whiteboard. These represent and remind students "what does respect look like, sound like, and feel like?"

                              One thing respect sounds like is One Voice. (1 / )

                              SemitonesS This user is from outside of this forum
                              SemitonesS This user is from outside of this forum
                              Semitones
                              wrote last edited by
                              #92

                              @futurebird When we're doing something together as a group, the group has one voice. Sometimes it's my voice if I'm giving instructions. Sometimes it is your voice if you're sharing. It feels good when you have the respect of the group. We are not in One Voice all the time, but when we are, itis respectful and helpful to wait until the person before you is finished talking.

                              One group development game I play to reinforce this is called Buried Treasure. (It probably goes by many names). (2 /)

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

                                Press RouchP This user is from outside of this forum
                                Press RouchP This user is from outside of this forum
                                Press Rouch
                                wrote last edited by
                                #93

                                @futurebird This is a great idea. As a software engineer I would love to see debugging being actively taught as a skill. There are plenty of professionals who are lacking in that area.

                                1 Reply Last reply
                                0
                                • MCDuncanLabM MCDuncanLab

                                  @futurebird

                                  Thanks this is really helpful. We teach a graduate class on quantitative cell biology based in python. Many ppl don’t have prior coding experience, we probably need a section like this.

                                  Iris Young (he/they/she) (PhD)I This user is from outside of this forum
                                  Iris Young (he/they/she) (PhD)I This user is from outside of this forum
                                  Iris Young (he/they/she) (PhD)
                                  wrote last edited by
                                  #94

                                  @MCDuncanLab @futurebird I also found exercises fixing someone else's code to be much less frustrating than fixing my own, and revelatory as to how something done apparently-right can work very wrong. I needed lots of practice with this before I could approach errors with a cool head.

                                  1 Reply Last reply
                                  0
                                  • SemitonesS Semitones

                                    @futurebird When we're doing something together as a group, the group has one voice. Sometimes it's my voice if I'm giving instructions. Sometimes it is your voice if you're sharing. It feels good when you have the respect of the group. We are not in One Voice all the time, but when we are, itis respectful and helpful to wait until the person before you is finished talking.

                                    One group development game I play to reinforce this is called Buried Treasure. (It probably goes by many names). (2 /)

                                    SemitonesS This user is from outside of this forum
                                    SemitonesS This user is from outside of this forum
                                    Semitones
                                    wrote last edited by
                                    #95

                                    @futurebird One way I might play is have all the kids stand on a line they can't get off of. One volunteer can move freely, blindfolded, and has to listen to the group to find the treasure (usually a pool noodle on the ground).

                                    During the game/debrief they'll almost always figure out that talking over each other doesn't work, and come up with a way to have one voice (often electing a leader).

                                    This does not address the CS aspect of your challenge, but I hope it was helpful / interesting. (3/3)

                                    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
                                      #96

                                      @voltagex @itgrrl @futurebird Definitely not a standard part of academic courses. Software Carpentry workshops include it, in part by live coding the demos so the participants both see the instructor making mistakes *and* their process for resolving them. Teaching the trial & error loop also comes up most years at the PyCon AU Education Seminar (since it is far from being a solved 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.

                                        Jeffrey HaasJ This user is from outside of this forum
                                        Jeffrey HaasJ This user is from outside of this forum
                                        Jeffrey Haas
                                        wrote last edited by
                                        #97

                                        @futurebird My employer at the ISP I worked for in the 90s used to say that, "Working with computers requires a huge ego. The computer is always telling you that YOU ARE WRONG."

                                        The thing you're trying to teach is harder because it's two things at the same time: Learning how the language parser reports errors. The student learning to debug how they think.

                                        I've been coding for years. Parser errors are hard enough and are often obscure in some languages.

                                        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.

                                          Hans-Cees πŸŒ³πŸŒ³πŸ€’πŸ¦‹πŸˆπŸˆπŸ‹πŸ‹πŸπŸœH This user is from outside of this forum
                                          Hans-Cees πŸŒ³πŸŒ³πŸ€’πŸ¦‹πŸˆπŸˆπŸ‹πŸ‹πŸπŸœH This user is from outside of this forum
                                          Hans-Cees πŸŒ³πŸŒ³πŸ€’πŸ¦‹πŸˆπŸˆπŸ‹πŸ‹πŸπŸœ
                                          wrote last edited by
                                          #98

                                          @futurebird @Pollinators to nerd snipe. Yet another concept has entered the fediverse

                                          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