Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
Like A Duck ( likeaduck@programming.dev ) deleted by creator to Programmer Humor@programming.dev ·
edit-2
3 years ago

Finally

programming.dev

message-square
28
link
fedilink
268

Finally

programming.dev

Like A Duck ( likeaduck@programming.dev ) deleted by creator to Programmer Humor@programming.dev ·
edit-2
3 years ago
message-square
28
link
fedilink
alert-triangle
You must log in or register to comment.
  • Xanvial ( Xanvial@lemmy.one ) 
    link
    fedilink
    arrow-up
    20
    ·
    3 years ago

    Most of the codes I copied from GPT doesn’t even work Seems I spent more time fixing it compared to thinking it myself

    • Pons_Aelius ( Pons_Aelius@kbin.social ) 
      link
      fedilink
      arrow-up
      31
      ·
      3 years ago

      Seems I spent more time fixing it compared to thinking it myself

      AI code is just bad code written by someone else that I now have to fix, and we all know the one job every coder loves is fixing code written by someone who you cannot ask: “why did you do it this way?”

      • jcg ( jcg@halubilo.social ) 
        link
        fedilink
        arrow-up
        6
        ·
        3 years ago

        You can definitely ask… It’s just the answer might infuriate you even more

      • Sigmatics ( Sigmatics@lemmy.ca ) 
        link
        fedilink
        arrow-up
        1
        ·
        3 years ago

        It can be helpful though if you just need to find the right library function of proper syntax in a foreign language. Usually faster than a search

    • FaceDeer ( FaceDeer@kbin.social ) 
      link
      fedilink
      arrow-up
      11
      ·
      3 years ago

      Often when I tell ChatGPT what error its code produced it will immediately figure out what the bug was and fix it.

      • lackthought ( lackthought@lemmy.sdf.org ) 
        link
        fedilink
        English
        arrow-up
        6
        ·
        3 years ago

        interacting with chatgpt is a learned skill

        i’ve used it several times and while the initial code may have some issues you can get them cleared up with a few direct follow ups

        • FaceDeer ( FaceDeer@kbin.social ) 
          link
          fedilink
          arrow-up
          5
          ·
          3 years ago

          I recall reading a while back of one person’s strategy, whenever ChatGPT generates code for him he immediately tells ChatGPT “there’s a bug in that code” (without checking or specifying). It’ll often find one.

          Another approach I’ve heard of is to tell ChatGPT that it’s supposed to roleplay two roles when generating code, a programmer and a code reviewer. The code reviewer tidies up the initial code and fixes bugs.

          Since often ChatGPT’s code works fine for me I don’t usually bother with these steps initially, since I’m usually just wanting a quick and dirty script for a one-off task the quality doesn’t matter much in my case.

          • jcg ( jcg@halubilo.social ) 
            link
            fedilink
            arrow-up
            3
            ·
            3 years ago

            And you know what you call changing words around to get a computer to do what you want? That’s programming, baby! We are programming programmers!

      • philm ( philm@programming.dev ) 
        link
        fedilink
        arrow-up
        4
        ·
        3 years ago

        Yeah, this is the way how to interact with it. It makes sense as well, because it’s only predicting the next word based on the previous words, so it had can in hindsight find a lot more stuff and in general be smarter about it.

      • orca ( orca@orcas.enjoying.yachts ) 
        link
        fedilink
        arrow-up
        3
        ·
        3 years ago

        I do this with TypeScript error codes. It’s great at breaking down the problem. I never just copy paste code from it and I don’t think anyone should do that anyway.

    • KevonLooney ( KevonLooney@lemm.ee ) 
      link
      fedilink
      arrow-up
      7
      ·
      3 years ago

      The art is the same. AI is just like asking an art student to draw you a picture. Might be good, might look terrible. Don’t ask for hands.

      • Pons_Aelius ( Pons_Aelius@kbin.social ) 
        link
        fedilink
        arrow-up
        5
        ·
        3 years ago

        Don’t ask for hands.

        or feet.

        or animals.

        or eyes.

        or…

    • Maddison ( MR_@ttrpg.network ) 
      link
      fedilink
      arrow-up
      3
      ·
      3 years ago

      I’ve never had an issue with it personally but I’ve never asked it to do anything complex either

  • BasicTraveler ( BasicTraveler@kbin.social ) 
    link
    fedilink
    arrow-up
    19
    ·
    3 years ago

    I’ve had success with trivial things, like write a log file parser with this pattern, or give me a basic 3 part left-right-center header in html. Works ok for trivial side projects. I would never trust it in production. Its a tool, nothing more at this point. Like an electric drill, better than a hand crank, but you still need to know how to use it.

  • tatterdemalion ( tatterdemalion@programming.dev ) 
    link
    fedilink
    arrow-up
    14
    ·
    3 years ago

    Yea I genuinely hope we get to the point where I don’t have write code. Let me describe the architecture and algorithms with my voice in English. I’d much rather spend my time solving abstract problems than typing syntax. If I have to essentially “teach” the AI what I want by dropping down the ladder of abstraction sometimes, that’s OK.

    • worfamerryman ( worfamerryman@beehaw.org ) 
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      I do not write code for my job. It is not even really IT adjacent anymore. I used to work IT, but I still find all kinds of uses for Python and general scripting. I used to just not bother with it due to the time it would take me to write the code vs just doing the task.

      Well now, scripts for everything. I save so much time thanks to chatgpt. Like some tasks that used to take an hour, literally take 15-20 minutes now.

  • dinodroid ( dinodroid@programming.dev ) 
    link
    fedilink
    arrow-up
    9
    ·
    3 years ago

    My favourite use of ChatGPT is

    Optimize below function

  • Dept ( dept@lemmy.sdf.org ) 
    link
    fedilink
    arrow-up
    7
    ·
    3 years ago

    Me a CS student that bet all my future in the field: yes totally happy about this

    • dexx4d ( dexx4d@lemmy.ca ) 
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      Me, with 20 years experience making software: yes, totally happy about this. (This makes it much easier to keep up with the latest newfangled bullshit.)

  • 👁️👄👁️ ( mojo@lemm.ee ) 
    link
    fedilink
    arrow-up
    6
    ·
    3 years ago

    Then what will you do for money

    • skomposzczet ( skomposzczet@lemm.ee ) 
      link
      fedilink
      arrow-up
      4
      ·
      3 years ago

      Create more ai

    • oldfart ( oldfart@lemm.ee ) 
      link
      fedilink
      arrow-up
      2
      ·
      3 years ago

      OnlyFans

  • Ronno ( Ronno@kbin.social ) 
    link
    fedilink
    arrow-up
    5
    ·
    3 years ago

    It won’t, because AI will generate based on existing content, but will not make something new

    • lowleveldata ( lowleveldata@programming.dev ) 
      link
      fedilink
      arrow-up
      11
      ·
      3 years ago

      I can’t say I make something genuinely new at my daily job

    • Hazzia ( Hazzia@discuss.tchncs.de ) deleted by creator
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      2 years ago

      deleted by creator

      • Dept ( dept@lemmy.sdf.org ) 
        link
        fedilink
        arrow-up
        2
        ·
        3 years ago

        Pretty sure it already has every single page of publicly available documentation.

    • TimeSquirrel ( TimeSquirrel@kbin.social ) 
      link
      fedilink
      arrow-up
      2
      ·
      3 years ago

      Wonder if human knowledge is now going to start degrading like a reposted JPEG as AI generated information is recycled again and again into more AI systems.

  • blackstrat ( blackstrat@lemmy.fwgx.uk ) 
    link
    fedilink
    arrow-up
    2
    ·
    3 years ago

    If AI can write code based on English input then we should be able to feed it a spec and then just deploy to production the output.

    • jadero ( jadero@programming.dev ) 
      link
      fedilink
      arrow-up
      4
      ·
      3 years ago

      And, as always, attempting to code to that spec will expose contradictions, inconsistencies, and frequently produce something that the customer judges as unfit for purpose.

      Coding has never been the toughest problem, except in the matter of security attacks.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 802 users / day
  • 2.63K users / week
  • 5.11K users / month
  • 8.39K users / 6 months
  • 465 local subscribers
  • 34.2K subscribers
  • 1.66K Posts
  • 27.5K Comments
  • Modlog
  • mods:
  • Feyter ( Feyter@programming.dev ) 
  • adr1an ( anzo@programming.dev ) 
  • BurningTurtle ( BurningTurtle@programming.dev ) 
  • Pierre-Yves Lapersonne ( pylapp@programming.dev ) 
  • BE: 0.19.21
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code