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

    @EricLawton @david_chisnall

    "Now I'm curious about whether LLMs' code compiles and executes error-free on their first attempt."

    At first it did not, but they have added a routine to run it through a compiler until it at least runs without syntax errors and probably produces output that seems like what you asked for for a limited example of input.

    This is a bolted on extra check, not some improvement in the base LLM.

    But some people are acting like it does represent advances in the LLM.

    Ben Lubar (any pronouns)B This user is from outside of this forum
    Ben Lubar (any pronouns)B This user is from outside of this forum
    Ben Lubar (any pronouns)
    wrote last edited by
    #191

    @futurebird @david_chisnall In my (very limited) experience, all that resulted in is pseudocode with // before each line

    myrmepropagandistF 1 Reply Last reply
    0
    • myrmepropagandistF myrmepropagandist

      @EricLawton @david_chisnall

      "Now I'm curious about whether LLMs' code compiles and executes error-free on their first attempt."

      At first it did not, but they have added a routine to run it through a compiler until it at least runs without syntax errors and probably produces output that seems like what you asked for for a limited example of input.

      This is a bolted on extra check, not some improvement in the base LLM.

      But some people are acting like it does represent advances in the LLM.

      Mx. Eddie RS This user is from outside of this forum
      Mx. Eddie RS This user is from outside of this forum
      Mx. Eddie R
      wrote last edited by
      #192

      @futurebird @EricLawton @david_chisnall
      "I have improved my LLM"
      *looks inside*
      *improvement is 100% classical handcrafted algorithmic code*

      1 Reply Last reply
      0
      • Ben Lubar (any pronouns)B Ben Lubar (any pronouns)

        @futurebird @david_chisnall In my (very limited) experience, all that resulted in is pseudocode with // before each line

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

        @ben @david_chisnall

        They've added some new feature that will pull up a little virtual machine and it will let you run the code in there. It also seems to test that the code will at least compile first.

        I worry that people seem to think that the LLM just... "evolved" these features when clearly a human person had to add them.

        1 Reply Last reply
        0
        • myrmepropagandistF myrmepropagandist

          @EricLawton @david_chisnall

          "Now I'm curious about whether LLMs' code compiles and executes error-free on their first attempt."

          At first it did not, but they have added a routine to run it through a compiler until it at least runs without syntax errors and probably produces output that seems like what you asked for for a limited example of input.

          This is a bolted on extra check, not some improvement in the base LLM.

          But some people are acting like it does represent advances in the LLM.

          Reginald BraithwaiteR This user is from outside of this forum
          Reginald BraithwaiteR This user is from outside of this forum
          Reginald Braithwaite
          wrote last edited by
          #194

          @futurebird Software engineering is the stuff around software coding. The AI-vangelists have decided to re-discover the field from scratch, while expressing increasingly hubristic contempt for the lived experience of the entire field.

          @EricLawton @david_chisnall

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

            CubeOfCheeseC This user is from outside of this forum
            CubeOfCheeseC This user is from outside of this forum
            CubeOfCheese
            wrote last edited by
            #195

            @futurebird a couple things I do. (It sounds like you're already doing some of these with slight variation):

            1. Tell them I make errors when programming. My former boss who worked for 30 years as a programmer still makes errors.
            Errors are not a bad thing. They are part of programming. Part of the process.
            Errors are hints. They are clues to figure out how to make the program work.

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

              Tiota SramT This user is from outside of this forum
              Tiota SramT This user is from outside of this forum
              Tiota Sram
              wrote last edited by
              #196

              @futurebird I tell my students that debugging is 50+% of the work, *even* for me with 10+ years of experience. Then I tell them that what makes me a good programmer is not my ability to write error-free code the first time, but my ability to quickly debug code based on oodles of experience.

              You could try intentionally making a few common mistakes and showing off the error messages that result if you're projecting an IDE instead of just writing on the whiteboard.

              I've also built a Python library called "optimism" that can do "did you use X construct" or even "X inside Y" which helps write certain kinds of practice problems for beginners. It can generate an error message for "you're not using an if statement inside a loop but the problem requires that" for example. Reading other responses here I'm reminded that I should probably put more effort into the error messages...

              1 Reply Last reply
              0
              • CubeOfCheeseC CubeOfCheese

                @futurebird a couple things I do. (It sounds like you're already doing some of these with slight variation):

                1. Tell them I make errors when programming. My former boss who worked for 30 years as a programmer still makes errors.
                Errors are not a bad thing. They are part of programming. Part of the process.
                Errors are hints. They are clues to figure out how to make the program work.

                CubeOfCheeseC This user is from outside of this forum
                CubeOfCheeseC This user is from outside of this forum
                CubeOfCheese
                wrote last edited by
                #197

                @futurebird
                2. When a student tells me their code doesn't work, I almost never tell them how to fix it. Here are my steps:
                a. Did you read the error? Okay then read the error.
                b. What does it say? What line is the error on? Do you know what the words mean? Okay let's break it down. *Go word by word through the error to check their understanding and explain the words they don't know*
                c. What part of the line do you think is the problem? How can we change it? What else could we put there instead

                1 Reply Last reply
                0
                • myrmepropagandistF myrmepropagandist

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

                  J This user is from outside of this forum
                  J This user is from outside of this forum
                  jmj
                  wrote last edited by
                  #198

                  @futurebird @david_chisnall As a retired coder. The job description hasn’t changed. Just the ratios on tasks performed. Much more reading code vs lots less writing actual lines of code. I like the sound of this debugging approach, as it forces reading and understanding. I have long said the CS courses needed more reading/reviewing code. Like a large part of traditional art courses teach art “criticism”. You have to be able to tell “good” art from “ bad” art to be able to judge if you work is achieving the goals you want from it. The same applies to code.

                  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?

                    AvnerA This user is from outside of this forum
                    AvnerA This user is from outside of this forum
                    Avner
                    wrote last edited by
                    #199

                    @futurebird 🤔 maybe you already do something like this, but I wonder if some sort of preamble to set expectations around errors will help? Something like "computer programming can look like math but the the instant feedback makes it feel very different. Eventually that will feel like a good thing, but know that you may get error messages when you dont expect them and that a large part of learning to code is learning how to read and understand what those error messages are saying."

                    1 Reply Last reply
                    0
                    • Reginald BraithwaiteR Reginald Braithwaite

                      @futurebird Software engineering is the stuff around software coding. The AI-vangelists have decided to re-discover the field from scratch, while expressing increasingly hubristic contempt for the lived experience of the entire field.

                      @EricLawton @david_chisnall

                      Eric LawtonE This user is from outside of this forum
                      Eric LawtonE This user is from outside of this forum
                      Eric Lawton
                      wrote last edited by
                      #200

                      @raganwald

                      Having spent thousands of hours working with various involved parties, trying to understand what they did and how IT could help, I came up with Lawton's Law,
                      > Everybody's job is a lot more complex than you think it is. Including IT folks' jobs.

                      @futurebird @david_chisnall

                      1 Reply Last reply
                      0
                      • R AodeRelay shared this topic
                      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