• TootSweet@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    18 days ago

    generate code, memorize how it works, explain it to profs like I know my shit.

    ChatGPT was just his magic feather all along.

  • SkunkWorkz@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    18 days ago

    Yeah fake. No way you can get 90%+ using chatGPT without understanding code. LLMs barf out so much nonsense when it comes to code. You have to correct it frequently to make it spit out working code.

    • threeduck@aussie.zone
      link
      fedilink
      arrow-up
      0
      ·
      17 days ago

      Are you guys just generating insanely difficult code? I feel like 90% of all my code generation with o1 works first time? And if it doesn’t, I just let GPT know and it fixes it right then and there?

      • surph_ninja@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        17 days ago

        A lot of people assume their not knowing how to prompt is a failure of the AI. Or they tried it years ago, and assume it’s still as bad as it was.

      • JustAnotherKay@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        17 days ago

        My first attempt at coding with chatGPT was asking about saving information to a file with python. I wanted to know what libraries were available and the syntax to use them.

        It gave me a three page write up about how to write a library myself, in python. Only it had an error on damn near every line, so I still had to go Google the actual libraries and their syntax and slosh through documentation

      • nimbledaemon@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        17 days ago

        I just generated an entire angular component (table with filters, data services, using in house software patterns and components, based off of existing work) using copilot for work yesterday. It didn’t work at first, but I’m a good enough software engineer that I iterated on the issues, discarding bad edits and referencing specific examples from the extant codebase and got copilot to fix it. 3-4 days of work (if you were already familiar with the existing way of doing things) done in about 3-4 hours. But if you didn’t know what was going on and how to fix it you’d end up with an unmaintainable non functional mess, full of bugs we have specific fixes in place to avoid but copilot doesn’t care about because it doesn’t have an idea of how software actually works, just what it should look like. So for anything novel or complex you have to feed it an example, then verify it didn’t skip steps or forget to include something it didn’t understand/predict, or make up a library/function call. So you have to know enough about the software you’re making to point that stuff out, because just feeding whatever error pops out of your compiler may get you to working code, but it won’t ensure quality code, maintainability, or intelligibility.

      • KillingTimeItself@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        0
        ·
        17 days ago

        the problem is more complex than initially thought, for a few reasons.

        One, the user is not very good at prompting, and will often fight with the prompt to get what they want.

        Two, often times the user has a very specific vision in mind, which the AI obviously doesn’t know, so the user ends up fighting that.

        Three, the AI is not omnisicient, and just fucks shit up, makes goofy mistakes sometimes. Version assumptions, code compat errors, just weird implementations of shit, the kind of stuff you would expect AI to do that’s going to make it harder to manage code after the fact.

        unless you’re using AI strictly to write isolated scripts in one particular language, ai is going to fight you at least some of the time.

        • sugar_in_your_tea@sh.itjust.works
          link
          fedilink
          arrow-up
          0
          ·
          edit-2
          17 days ago

          I asked an LLM to generate tests for a 10 line function with two arguments, no if branches, and only one library function call. It’s just a for loop and some math. Somehow it invented arguments, and the ones that actually ran didn’t even pass. It made like 5 test functions, spat out paragraphs explaining nonsense, and it still didn’t work.

          This was one of the smaller deepseek models, so perhaps a fancier model would do better.

          I’m still messing with it, so maybe I’ll find some tasks it’s good at.

          • KillingTimeItself@lemmy.dbzer0.com
            link
            fedilink
            English
            arrow-up
            0
            ·
            17 days ago

            from what i understand the “preview” models are quite handicapped, usually the benchmark is the full fat model for that reason. the recent openAI one (they have stupid names idk what is what anymore) had a similar problem.

            If it’s not a preview model, it’s possible a bigger model would help, but usually prompt engineering is going to be more useful. AI is really quick to get confused sometimes.

            • sugar_in_your_tea@sh.itjust.works
              link
              fedilink
              arrow-up
              0
              ·
              17 days ago

              It might be, idk, my coworker set it up. It’s definitely a distilled model though. I did hope it would do a better job on such a small input though.

              • KillingTimeItself@lemmy.dbzer0.com
                link
                fedilink
                English
                arrow-up
                0
                ·
                15 days ago

                the distilled models are a little goofier, it’s possible that might influence it, since they tend to behave weirdly sometimes, but it depends on the model and the application.

                AI is still fairly goofy unfortunately, it’ll take time for it to become omniscient.

      • Eheran@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        18 days ago

        You mean o3 mini? Wasn’t it on the level of o1, just much faster and cheaper? I noticed no increase in code quality, perhaps even a decrease. For example it does not remember things far more often, like variables that have a different name. It also easily ignores a bunch of my very specific and enumerated requests.

        • xor@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          0
          ·
          18 days ago

          03 something… i think the bigger version….
          but, i saw a video where it wrote a working game of snake, and then wrote an ai training algorithm to make an ai that could play snake… all of the code ran on the first try….
          could be a lie though, i dunno….

          • Bronzebeard@lemm.ee
            link
            fedilink
            English
            arrow-up
            0
            ·
            17 days ago

            Asking it to write a program that already exists in it’s entirety with source code publicly posted, and having that work is not impressive.

            That’s just copy pasting

            • xor@lemmy.dbzer0.com
              link
              fedilink
              English
              arrow-up
              0
              ·
              17 days ago

              he asked it by describing the rules of the game, and then asked it to write and ai to learn the game….
              it’s still basic but not copy pasta

              • Bronzebeard@lemm.ee
                link
                fedilink
                English
                arrow-up
                0
                ·
                17 days ago

                These things work by remind how likely other words are to appear next to certain words. Do you know how many tutorials on how to code those exact rules it must have scanned?

    • Artyom@lemm.ee
      link
      fedilink
      arrow-up
      0
      ·
      17 days ago

      If we’re talking about freshman CS 101, where every assignment is the same year-over-year and it’s all machine graded, yes, 90% is definitely possible because an LLM can essentially act as a database of all problems and all solutions. A grad student TA can probably see through his “explanations”, but they’re probably tired from their endless stack of work, so why bother?

      If we’re talking about a 400 level CS class, this kid’s screwed and even someone who’s mastered the fundamentals will struggle through advanced algorithms and reconciling math ideas with hands-on-keyboard software.

    • AeonFelis@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      17 days ago
      1. Ask ChatGPT for a solution.
      2. Try to run the solution. It doesn’t work.
      3. Post the solution online as something you wrote all on your own, and ask people what’s wrong with it.
      4. Copy-paste the fixed-by-actual-human solution from the replies.
  • Xanza@lemm.ee
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    18 days ago

    pay for school

    do anything to avoid actually learning

    Why tho?

      • Bronzebeard@lemm.ee
        link
        fedilink
        English
        arrow-up
        0
        ·
        17 days ago

        Losing the job after a month of demonstrating you don’t know what you claimed to is not a great return on that investment…

        • L0rdMathias@sh.itjust.works
          link
          fedilink
          arrow-up
          0
          ·
          17 days ago

          It is, because you now have the title on your resume and can just lie about getting fired. You just need one company to not call a previous employer or do a half hearted background check. Someone will eventually fail and hire you by accident, so this strategy can be repeated ad infinitum.

          • Xanza@lemm.ee
            link
            fedilink
            English
            arrow-up
            0
            ·
            17 days ago

            No actual professional company or job of value is not going to check your curriculum or your work history… So like sure you may get that job at quality inn as a night manager making $12 an hour because they didn’t fucking bother to check your resume…

            But you’re not getting some CS job making $120,000 a year because they didn’t check your previous employer. Lol

          • Bronzebeard@lemm.ee
            link
            fedilink
            English
            arrow-up
            0
            ·
            17 days ago

            Sorry, you’re not making it past the interview stage in CS with that level of knowledge. Even on the off chance that name on the resume helps, you’re still getting fired again. You’re never building up enough to actually last long enough searching to get to the next grift.

            • L0rdMathias@sh.itjust.works
              link
              fedilink
              arrow-up
              0
              ·
              17 days ago

              I am sorry that you believe that all corporations have these magical systems in place to infallibly hire skilled candidates. Unfortunately, the idealism of academia does not always transfer to the reality of industry.

  • spicy pancake@lemmy.zip
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    18 days ago

    isn’t it kinda dumb to have coding exams that aren’t open book? if you don’t understand the material, on a well-designed test you’ll run out of time even with access to the entire internet

    when in the hell would you ever be coding IRL without access to language documentation and the internet? isn’t the point of a class to prepare you for actual coding you’ll be doing in the future?

    disclaimer did not major in CS. but did have a lot of open book tests—failed when I should have failed because I didn’t study enough, and passed when I should have passed because the familiarity with the material is what allows you to find your references fast enough to complete the test

    • MeaanBeaan@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      18 days ago

      I mean, I don’t know how to code but I imagine it’s the same as with other subjects. like not being able to use a calculator during some math tests. The point of the examination is for you to demonstrate you know and understand the concepts. It’s not for you to be tested in the same way you would be in the real world.

    • Buddahriffic@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      18 days ago

      Assignments involved actual coding but exams were generally pen and paper when I got my degree. If a question involved coding, they were just looking for a general understanding and didn’t nitpick syntax. The “language” used was more of a c+±like pseudocode than any real specific language.

      ChatGPT could probably do well on such exams because making up functions is fair game, as long as it doesn’t trivialize the question and demonstrates an overall understanding.

    • bitchkat@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      17 days ago

      Most of my CS exams in more advanced classes were take home. Well before the internet though. They were some of the best finals I ever took.

    • piccolo@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      18 days ago

      I know people that used to work in programming with zero internet connection… this was ~10 years ago… never underestimate the idiocy of companies. P.s. it wasnt even a high security job, the owners were just paranoid boomers.

      With that said, with a decent IDE with autocomplete, you can get by a lot without documentation. Its ussually the niche stuff that you need to look up on how to do it.

  • 2ugly2live@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    18 days ago

    He should be grateful. I hear programming interviews are pretty similar, as in the employer provides the code, and will pretty much watch you work it in some cases. Rather be embarrassed now than interview time. I’m honestly impressed he went the entire time memorizing the code enough to be able to explain it, and picked up nada.

    • frank@sopuli.xyz
      link
      fedilink
      arrow-up
      0
      ·
      18 days ago

      He probably couldn’t explain it well if he didn’t know how to code at all imo

    • Aggravationstation@feddit.uk
      link
      fedilink
      arrow-up
      0
      ·
      18 days ago

      I’m honestly impressed he went the entire time memorizing the code enough to be able to explain it, and picked up nada.

      Or he asked the LLM to summarise it and memorised that.

  • NigelFrobisher@aussie.zone
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    17 days ago

    I remember so little from my studies I do tend to wonder if it would really have cheating to… er… cheat. Higher education was like this horrendous ordeal where I had to perform insane memorisation tasks between binge drinking, and all so I could get my foot in the door as a dev and then start learning real skills on the job (e.g. “agile” didn’t even exist yet then, only XP. Build servers and source control were in their infancy. Unit tests the distant dreams of a madman.)

  • WolfLink@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    18 days ago

    Any competent modern IDE or compiler will help you find syntax mistakes. Knowing the concepts is way more important.

    • TheSlad@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      18 days ago

      A lot of kids fresh out of highschool are pressured into going to college right away. Its the societal norm for some fucking reason.

      Give these kids a break and let them go when they’re really ready. Personally I sat around for a year and a half before I felt like “fuck, this is boring lets go learn something now”. If i had gone to college straight from highschool I would’ve flunked out and just wasted all that money for nothing.

      • boletus@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        18 days ago

        Yeah I remember in high school they were pressuring every body to go straight to uni and I personally thought it was kinda predatory.

        • wizardbeard@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          0
          ·
          18 days ago

          I wish I hadn’t went straight in, personally. Wasted a lot of money and time before I got my shit together and went back for an associates a few years later.

    • Gutek8134@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      18 days ago

      My Java classes at uni:

      Here’s a piece of code that does nothing. Make it do nothing, but in compliance with this design pattern.

      When I say it did nothing, I mean it had literally empty function bodies.

      • boletus@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        18 days ago

        Yeah that’s object oriented programming and interfaces. It’s a shit to teach people without a practical example but it’s a completely passable way to do OOP in industry, you start by writing interfaces to structure your program and fill in the implementation later.

        Now, is it a good practice? Probably not, imo software design is impossible to get right without iteration, but people still use this method… good to understand why it sucks

      • e8d79@discuss.tchncs.de
        link
        fedilink
        arrow-up
        0
        ·
        18 days ago

        So what? You also learn math with exercises that ‘do nothing’. If it bothers you so much add some print statements to the function bodies.

        • Gutek8134@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          18 days ago

          I actually did do that. My point was to present a situation where you basically do nothing in higher education, which is not to say you don’t do/learn anything at all.

      • I Cast Fist@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        18 days ago

        Mine were actually useful, gotta respect my uni for that. The only bits we didn’t manually program ourselves were the driver and the tomcat server, near the end of the semester we were writing our own Reflections to properly guess the object type from a database query.

      • boletus@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        18 days ago

        Not a single person I’ve worked with in software has gotten a job with just a diploma since like the early 2000s

        Maybe it’s different in some places.

        • FlexibleToast@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          18 days ago

          Many HR departments will automatically kick out an application if it doesn’t have a degree. It’s an easy filter even if it isn’t the most accurate.

          • boletus@sh.itjust.works
            link
            fedilink
            arrow-up
            0
            ·
            18 days ago

            I meant any form of qualification. Sure it helps, but the way you get the job is by showing you can actually do the work. Like a folio and personal projects or past history.

            • blackbeards_bounty@lemmy.dbzer0.com
              link
              fedilink
              arrow-up
              0
              ·
              18 days ago

              Art? Most programming? “Hard skills” / technical jobs… GOOD jobs. Sure. But there’s plenty of degrees & jobs out there. Sounds like you landed where you were meant to be, alot of folks go where opportunity and the market takes them

    • chicken@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      18 days ago

      Idk I knew people who got filtered by the intro Java class. It was because they both had no prior experience and also always cheated to avoid writing code themselves for assignments.

      • SatanClaus@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        0
        ·
        18 days ago

        Yup. I had a classmate I did HW with. About 1/3 of the way through our study sessions me and person C realized. Classmate never helped but pretended too. Dude failed that class so hard when we got to the final and it was hand written. 🤣