Have you ever found a GitHub project or anything that seemed nice and tempting to install until you dug a bit deeper?

What are some red flags that should detur anyone from installing and running something?

  • kescusay@lemmy.world
    link
    fedilink
    arrow-up
    66
    arrow-down
    5
    ·
    6 days ago

    Evidence of vibe-coding. Em dashes and emojis sprinkled throughout the documentation? Code with inline comments pointlessly describing some change, as if you want to know what that block of code used to do more than what it actually does?

    It’s vibe-coded garbage by someone who doesn’t know how to code. Stay far away.

    • Clent@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      22
      ·
      6 days ago

      inline comments pointlessly describing some change, as if you want to know what that block of code used to do more than what it actually does?

      Oh, shit, am AI.

        • Clent@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          3
          ·
          6 days ago

          Exactly. I worked on a interface where the elements where shift under conflicting business interests. The comments where a log of dates, person, and what they asked for as we worked on our side to build a case against the insanity.

          The comments listed not only what it clearly did but also what it had previously done. Then inevitably something comes in hours before a launch window and that part does not get its comment updated.

        • Tja@programming.dev
          link
          fedilink
          arrow-up
          10
          arrow-down
          10
          ·
          6 days ago

          That ship has sailed. The question is how to use AI to code, for every project there’s a sweet spot and it rarely is 0% or 100%.

          • Victor@lemmy.world
            link
            fedilink
            arrow-up
            17
            arrow-down
            2
            ·
            6 days ago

            You really don’t need to. Nobody is forcing you.

            And if they are, seriously considering finding another place of work.

                  • Victor@lemmy.world
                    link
                    fedilink
                    arrow-up
                    1
                    arrow-down
                    1
                    ·
                    4 days ago

                    What do you mean “and?”?

                    I didn’t say you said it was impossible lol. You said good luck, implying it’s hard, I said I found one immediately because I’m working at one. And I know several other companies and workplaces, too.

                    It’s not hard. Take the L.

            • Tja@programming.dev
              link
              fedilink
              arrow-up
              5
              arrow-down
              5
              ·
              6 days ago

              I very much enjoy using AI for all the biloilerplate, test cases, suggestions, etc. It really makes me more productive, hard metrics behind it. Nobody is forcing me to, they just provide the license and let us use our judgment.

              I honestly can’t think of a project where 0% AI would be better. For 100% maybe a very trivial PoC, but even that would require at least a code revision.

              So, as with many things, use in moderation is fine.

              • kescusay@lemmy.world
                link
                fedilink
                arrow-up
                7
                arrow-down
                1
                ·
                6 days ago

                It’s almost certainly also making your code worse.

                It’s not impossible to use AI effectively (although I would argue it’s impossible to use large “frontier” models ethically, as the companies making them are burning the planet down to power the process), but you have to be extremely vigilant and thoughtful about what you’re using it for, and you have to review every single line of code it produces, or you’re going to miss bugs and you’re going to lose skills.

                A good way to test yourself is to see if you can still scaffold out an application by hand. Doesn’t matter what… A to-do list, some buttons, whatever. Just test yourself to see if you can still do it.

                If you can’t, then you’ve lost the skills necessary to be certain that what you’re producing with AI is actually good.

                And if the idea of testing yourself like this makes you uncomfortable? Then AI isn’t a tool you use, it’s an addiction.

                • Tja@programming.dev
                  link
                  fedilink
                  arrow-up
                  2
                  arrow-down
                  1
                  ·
                  5 days ago

                  I mean, I do leet code semi-regularly, so I’m not too worried about getting rusty. Writing tests is boring as hell, the AI does a decent enough job for at least 90% of them.

                  • kescusay@lemmy.world
                    link
                    fedilink
                    arrow-up
                    1
                    arrow-down
                    1
                    ·
                    5 days ago

                    Leet code is good for making sure you still have a good grasp of programming conceptually, but I don’t think it’s good for testing your own practical skills.

                    Seriously, just take an hour or two to scaffold out something new. Doesn’t have to be complicated, just something to confirm for yourself that you can still do it. The only rule is to do it without AI.

                    When I did it myself, it was after months of my work requiring me to use AI, and there was a moment at the start where I was tempted to just fire up Copilot and tell it to do the work, which - of course - would have defeated the purpose. It was that moment where I realized I was addicted, and needed to go cold turkey.

                    Now I do the bare minimum with AI I’m required to at work, and focus on crafting my code carefully, by hand as much as possible. And it shows. My code quality has improved.

    • alakey@piefed.social
      link
      fedilink
      English
      arrow-up
      2
      ·
      6 days ago

      Emoji ridden repos just scream scam to me, too. I feel like people who genuinely want to make an app and actually keep it maintained wouldn’t resort to AI slop code or even a description.