Lately I have been using AI more and more in my codebase and that’s been a bit of a hit and miss if you ask me.

I reckon it’s an amazing tool that allows developers to truly optimise their workflow, however at times laziness take over and code reviews are not as frequent as they should be.

I really REALLY wanted to build something without using AI after having spent months and months getting a bit too complacent. And this is the first idea that came to mind. Of course to celebrate this occasion I went for a technology I hadn’t used in almost a decade: jQuery!!!

You can find the repo here: https://github.com/fccview/ackchyually-ai
You can play around with the tool on fccview.github.io/ackchyually-ai

Few disclaimers:

  • I am a full stack javascript developer (with extensive knowledge of php and a very good grasp of shell). This means majority of the detection will be revolving around javascript, if you develop in a different language and you feel like you know AI patterns in that language PLEASE do create a pull request so we can make the detection even more accurate for other type of syntax!
  • The tool uses MY OWN metrics, this is doing what I usually do to see if something is (in my opinion) been made with AI and barely reviewed by a human. It’s not gospel, it’s not a scientific method, it’s most definitely going to be flawed, so keep it with a grain of salt, it can always be improved and collaboration/community support will definitely help with it
  • I don’t hate AI, on contrary I enjoy using it and I find value in not needing to “google it” whenever I hit a blocker, more times than not, AI has a valid solution that can be used, refined and applied properly. What I have mostly an issue with is people randomly generating code, not reviewing it and trying to sell you the moon when they barely understand the architecture of what they built
  • Please do not make this post a fight between pro/against AI individuals, that’s not the aim of it

All the patterns I am using to identify possible AI code are here: https://github.com/fccview/ackchyually-ai/tree/main/data if you come up with more patterns/ideas and have more ideas on what to look for please reply here, open an issue and/or make a pull request, but at ONE CONDITION, do NOT use AI for this. It’d go against the core principle of this one pure little app I decided to build <3

  • shads@lemy.lol
    link
    fedilink
    English
    arrow-up
    19
    ·
    2 days ago

    I was trying to solidify a joke about beating up people who are pro-AI, but just can’t get the timing right.

    But I do have a question for someone who can apparently see things from both sides. Do you think that people’s perceptions and engagement would be different if “AI” was marketed as natural language processing coding / programming expert system.

    I feel like some of the visceral pushback against “AI” would be reduced if we didn’t all have to pretend there was actual intelligence in operation. Plus it would seem more like the successor to context aware code completion, rather than the successor to the individual sat at the keyboard.

    • Appoxo@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 hours ago

      natural language processing coding

      I believe the hype would be basically non existant and most of it would be bashing against it because it get’s most things wrong (basically a StackOverflow copy bot)

    • rumba@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      16 hours ago

      Maybe.

      I think the pushback stems from a bunch of different things.

      It’s genuinely bad at some things. asking it to make a clock out of CSS and HTML is mostly awful.

      Historically, it’s been really bad at everything. So if someone hasn’t done a serious dive on it recently, they’re going to have the impression that it’s even worse than it really is.

      A lot of people don’t understand how to use it, a lot of times it’s like working with a monkey’s paw. You’ve got to pre-guess all the things that could go wrong and keep adding detail until it has no choice but to do it right. And even then, you have to come back and do iterations sometimes.

      It’s making a bunch of oligarchs extremely wealthy, for no good reason, on the backs of the working class, while we can barely buy RAM. At the same time, they’re burning through a hell of a lot of natural resources.

      They’re shoving options and features down our throats and making us pay for them even if we don’t want to use them.

      Some people are genuinely scared that corporations will use it to replace skiled labor with unskilled labor, which they are.

      I have seen advanced versions rewrite an entire cross-platform basic interpreter in a couple of tries.

      I lost a rather complicated Python program I wrote to manage projectors for my Halloween display. I had it make a framework. I went through all of my different options and modes one at a time and explained exactly how they needed to work. I recreated a couple of weeks of work in a couple of hours and added a significant number of features.

      It’s crap like make that admin page look good on a cell phone that’s absolutely bananas. That’s a feature I would never have the time to sit down and work on because it’s not that big of a deal. But it would literally be a day of trial and error on multiple test devices for me to write it myself.

      Would it be better received if it were marketed differently? Probably a little bit. But not beyond the things that I wrote about. It would be a subtle improvement in visibility I feel.

    • fccview@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 day ago

      100% it would! I think the biggest issue around the AI hate is a total misunderstand of how it works, paired with people using it for the dumbest reasons, actually draining important resources when there’s absolutely no need for it.

      I think eventually it’ll be inevitably regulated as the actual shortage of water we’re seeing in the US is unmanageable, and once it does get regulated things will start working way better

      p.s. i’m not talking about local models, I doubt these would ever be regulated and they SHOULDN’T, I’m talking about how many resources a company that allows AI usage should be able to utilise, mostly.

      • irmadlad@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 day ago

        I think eventually it’ll be inevitably regulated

        I know some fear regulation, or over regulation, but right now it’s the wild wild west. Reminiscent of when the internet first became available to the general public. Regulation is necessary, as much as I sometimes chafe at the thought. Corporate penny pinchers are noticing the increased bandwidth u$age and there is no quid pro quo for them.

        • fccview@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          23 hours ago

          Regulation is absolutely needed, anyone saying otherwise is just deluded at this point 😅

    • thedeadwalking4242@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      I wish it want thrown around like it was AGI.

      AI for ML systems has always kinda been a misleading term after it was co-oped by science fiction