Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
Arthur Besse ( cypherpunks@lemmy.ml )  to Programmer Humor@lemmy.mlEnglish · 3 years ago

I prefer to be the one who writes code

fed.dyne.org

message-square
12
link
fedilink
  • cross-posted to:
  • planetdyne@fed.dyne.org
405

I prefer to be the one who writes code

fed.dyne.org

Arthur Besse ( cypherpunks@lemmy.ml )  to Programmer Humor@lemmy.mlEnglish · 3 years ago
message-square
12
link
fedilink
  • cross-posted to:
  • planetdyne@fed.dyne.org

cross-posted from: https://fed.dyne.org/post/43780

alert-triangle
You must log in or # to comment.
  • ColdFenix ( ColdFenix@discuss.tchncs.de ) 
    link
    fedilink
    arrow-up
    45
    ·
    3 years ago

    The trick is to split the code into smaller parts.

    This is how I code using ChatGPT:

    1. Have it analyze how to structure the program and then give me the code for the outline with not yet implemented methods and functions.
    2. Have it implement the methods and functions one by one with tests for each one.
    3. I copy the code and test for each method and function before moving on to the next one So that I always have working code.
    4. Despair because my code is working and I have no idea how it works and I have become a machine that just copies code without an original thought of my own.

    This works pretty well for me as long as I don’t work with obscure frameworks or in large codebases.

    • HurlingDurling ( HurlingDurling@lemm.ee ) 
      link
      fedilink
      English
      arrow-up
      13
      ·
      3 years ago

      Actually, that’s the trick when writing code in general, and also how unit tests help coding an application.

    • DeathsEmbrace ( DeathsEmbrace@lemmy.ml ) 
      link
      fedilink
      arrow-up
      13
      ·
      3 years ago

      This is exactly how you forget coding.

      • averyminya ( averyminya@beehaw.org ) 
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        2 years ago

        deleted by creator

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

      To be fair, you’re also describing working with other people.

  • Hazzia ( Hazzia@discuss.tchncs.de ) 
    link
    fedilink
    arrow-up
    44
    ·
    edit-2
    2 years ago

    deleted by creator

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

      As an ex webdesigner/dev, Squarespace, Weebly and the like killed my income well before ChatGPT did.

  • stebo ( stebo02@sopuli.xyz ) 
    link
    fedilink
    arrow-up
    27
    ·
    3 years ago

    I never copy code from chatgpt. It’s not my code and it probably doesn’t work. However it is great at making suggestions on how to tackle a problem or how to improve your code. Use ChatGPT like Stack Overflow, with instant replies.

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

      This. I always use that example, ChatGPT is stack overflow or a very eager intern. Review and make test cases

    • tweeks ( tweeks@feddit.nl ) 
      link
      fedilink
      arrow-up
      4
      ·
      3 years ago

      Plain copy paste without a critical view is not recommended, but it surely provides good pieces of code from time to time. Especially in obscure frameworks/languages, compared to what can be googled.

      ChatGPT 4 is a really big difference with 3.5 though. What took me hours together with the 3.5, was fixed in a few minutes with 4.

  • Empathy [he/him] ( Empathy@beehaw.org ) 
    link
    fedilink
    arrow-up
    16
    ·
    3 years ago

    Co-pilot can write some small very simple functions for me, sometimes saving me the need to look at documentation. It will still often fail at those, in my experience, and will consistently fail at anything more complex.

    It will get better, but currently it’s only a small help.

    • voxel ( vox@sopuli.xyz ) 
      link
      fedilink
      arrow-up
      4
      ·
      3 years ago

      it really helps with the boring parts and takss that require doing the same thing over and over;
      for example, i use it to generate mapping functions (like in my (abandoned) gba emulator project, function that maps arm instruction type enum to function pointers was generated almost entirely by chatgpt)

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

    I’ve been having a great time with copilot

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

      Yeah, that’s the way to go. Copilot or similar to automate the simple stuff, while you still do all the architecting and check whatever it suggests.

  • auf ( auf@lemmy.ml ) 
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    3 years ago

    deleted by creator

  • Darken ( Darken@reddthat.com ) 
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    deleted by creator

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

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: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

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

  • 1 user / day
  • 60 users / week
  • 106 users / month
  • 1.8K users / 6 months
  • 871 local subscribers
  • 43.6K subscribers
  • 1.25K Posts
  • 10.3K Comments
  • Modlog
  • mods:
  • AgreeableLandscape ( AgreeableLandscape@lemmy.ml ) 
  • cat_programmer ( cat_programmer@lemmy.ml ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code