GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    myrmepropagandist (futurebird@sauropods.win)'s status on Sunday, 11-Jan-2026 21:11:31 JST myrmepropagandist 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.

    In conversation about 9 months ago from sauropods.win permalink
    • Embed this notice
      Albert ARIBAUD ✎ (aaribaud@mastodon.art)'s status on Sunday, 11-Jan-2026 21:11:24 JST Albert ARIBAUD ✎ Albert ARIBAUD ✎
      in reply to
      • Roger BW 😷

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

      If the compiler emits an error, then your code cant 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.

      In conversation about 9 months ago permalink
    • Embed this notice
      Roger BW 😷 (rogerbw@discordian.social)'s status on Sunday, 11-Jan-2026 21:11:25 JST Roger BW 😷 Roger BW 😷
      in reply to

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

      In conversation about 9 months ago permalink
    • Embed this notice
      myrmepropagandist (futurebird@sauropods.win)'s status on Sunday, 11-Jan-2026 21:11:27 JST myrmepropagandist myrmepropagandist
      in reply to

      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/

      In conversation about 9 months ago permalink
    • Embed this notice
      myrmepropagandist (futurebird@sauropods.win)'s status on Sunday, 11-Jan-2026 21:11:28 JST myrmepropagandist myrmepropagandist
      in reply to

      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.

      In conversation about 9 months ago permalink
    • Embed this notice
      myrmepropagandist (futurebird@sauropods.win)'s status on Sunday, 11-Jan-2026 21:11:29 JST myrmepropagandist myrmepropagandist
      in reply to

      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?

      In conversation about 9 months ago permalink
    • Embed this notice
      myrmepropagandist (futurebird@sauropods.win)'s status on Sunday, 11-Jan-2026 21:11:30 JST myrmepropagandist myrmepropagandist
      in reply to

      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.

      In conversation about 9 months ago permalink
    • Embed this notice
      myrmepropagandist (futurebird@sauropods.win)'s status on Tuesday, 13-Jan-2026 02:00:47 JST myrmepropagandist myrmepropagandist
      in reply to
      • David Chisnall (*Now with 50% more sarcasm!*)

      @david_chisnall

      Tangentially related:

      "AI can write code so why teach how to code?"

      "Great point! It can write an essay too, so why teach how to read."

      Like. We've had calculators for decades and still teach arithmetic. And functionally the average person needs to know probably more about mathematics and needs to read more than they did a century ago. The same will apply for code.

      In conversation about 9 months ago permalink
    • Embed this notice
      David Chisnall (*Now with 50% more sarcasm!*) (david_chisnall@infosec.exchange)'s status on Tuesday, 13-Jan-2026 02:00:48 JST David Chisnall (*Now with 50% more sarcasm!*) David Chisnall (*Now with 50% more sarcasm!*)
      in reply to

      @futurebird

      I’ve taught programming like this, but I’m an increasingly huge fan of the debugging-first approach that a few people have been trying more recently. In this model, you don’t teach people to write code first, you teach them to fix code first.

      I’ve seen a bunch of variations of this. If you have some kind of IDE (Smalltalk is beautiful for this, but other languages usually have the minimum requirements) then you can start with some working code and have them single-step through it and inspect variables to see if the behaviour reflects their intuition. Then you can give them nearly correct code and have them use that tool to fix the issues.

      Only once they’re comfortable with that do you have them start writing code.

      Otherwise it’s like teaching them to write an essay without first teaching them how to erase and redraft. If you teach people to get stuck before teaching them how to unstick themselves, it’s not surprising that they stop and give up at that point.

      In conversation about 9 months ago permalink
      GreenSkyOverMe (Monika) repeated this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.