• jj4211@lemmy.world
        link
        fedilink
        arrow-up
        28
        arrow-down
        1
        ·
        edit-2
        2 days ago

        There been so much gaslighting I keep thinking I’m missing something as I keep doing the mandatory AI usage from work and largely throwing away the results. Yet I keep repeatedly hear people hush about how great it is.

        Last week I finally had something that I thought would be right up it’s alley: a fairly milquetoast program that needed to be ported from one language to another. It generated the ugliest unmaintainable code I could imagine. I went to execute the test suite and it failed every single one. The code was ugly, hard to follow, failed to important a number of sanity checks, kept repeating common code without factoring, making up calls that didn’t exist. In trying to salvage it, I decided to ask it to implement a super simple check that should have been a one liner and it suggested splatting over a hundred lines of code all over the file to randomly mess with imaginary end points for no apparent reason and still falling to just check the length of the array I told it to.

        Meanwhile people at my company who don’t even commit any code are writing on internal blogs about how transformative it is, how much it makes their coding better (that they didn’t even do) and executives are commenting their vision and intelligence and promoting them…

        • BCsven@lemmy.ca
          link
          fedilink
          arrow-up
          5
          ·
          2 days ago

          There are a few things it does well, like movie suggestions based on a list of shows you like. And its good at reformatting data you feed it. But It’s crap overall. Often takes more time to correct it, than starting from scratch.

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

            Definitely feel the waste of time trying to salvage junk it generated. At best I might have it take a horrible stab at it and then just look for key bits to Internet search, read documentation, and do it the actual right and maintainable way.

            3-5 lines of code or has a decent chance at being usable or needing a minor tweak. More than that and it just sucks.

            Also did use it with some messy list to find essentially duplicate things that weren’t exactly duplicate. It wasn’t 100%, with false negatives and positives, but it let me find a lot of them easily and the situation didn’t require me to find every single duplicate.

        • WorldsDumbestMan@lemmy.today
          link
          fedilink
          arrow-up
          8
          ·
          2 days ago

          I actually tried to get an AI to code a simulation for AI agents. God, it’s so shitty at everything it does, it is only good to torture for entertainment…and to teach Excel apparently, only uses I found for it.

          • jj4211@lemmy.world
            link
            fedilink
            arrow-up
            7
            ·
            2 days ago

            I will say there’s a few common boilerplate things that is easier to express as quick prose and get 4-5 lines out of it, highly predictable lines that I could have probably done myself, a little more convenient when I’m rusty on a language or library. Also code completion, same thing of only good for like 3-5 lines at a time.

            Still have to watch it like crazy and carefully fix the mistakes and still throw out what it suggested and it can be pretty annoying, but I’m willing to believe it saved me a smidge of time on those. But anything beyond that and it’s a horrible mess I would never abide that’s more trouble to try to fix than just scrap and start over. It’s hard to stay vigilant and micromanage the details as I’m used to reviewing human code and the sorts of mistakes the LLMs make are distinct from what humans make.

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

      It was legit a little scary how long I stared at this diagram in utter bewilderment.

      It’s 2025 and the tech bros have made it where I can’t believe my own lying eyes.

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

    I get that it’s a bad idea to trust AI to something so important. And that it’s probably going to shock or kill you.

    But since I’m not an electrician, ELI5. What’s wrong with this diagram?

    • monotremata@lemmy.ca
      link
      fedilink
      English
      arrow-up
      11
      ·
      edit-2
      2 days ago

      In addition to what the other person said, there’s a wire here connecting the two prongs together. This is a short circuit and would at least blow a breaker and at worst start a fire.

    • kieron115@startrek.website
      link
      fedilink
      English
      arrow-up
      9
      ·
      edit-2
      2 days ago

      This picture is so frustrating. There’s no apparent source for the “live” wire. But if you tried following this with your real wiring (white, black and green do exist), you would be connecting your hot, neutral and ground lines all together. I doubt it would kill you at 120 V but it would definitely trip your breaker the moment you plug it in, and almost certainly make some nice big arcs.

      • Snazz@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        1 day ago

        Its ok, the AI predicted this and oriented the prongs incorrectly so there is no chance to accidentally plug it into an outlet.

    • SwingingTheLamp@midwest.social
      link
      fedilink
      arrow-up
      6
      ·
      2 days ago

      The outlet has three wires (black, white, and green), and the device to be plugged in has three wires (black, white, and green). The whole point of the plug is to connect each color wire to its counterpart, and only to its counterpart.

  • Annoyed_🦀 @lemmy.zip
    link
    fedilink
    English
    arrow-up
    145
    arrow-down
    1
    ·
    edit-2
    3 days ago

    Everytime someone ask AI for wiring diagram, Medhi’s mom will go slap them with a slipper.

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

    It’s almost as though an AI designed to make pictures of kittens with boobs has no understanding of how electricity works.

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

    This is fucking fantastic.

    Just as a PSA, black wire to brass screw, white wire to silver screw, bare or green wire to screw on rounded prong. Also, black wire is hot, white is neutral, green is ground.

    • TheSporkBomber@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      2 days ago

      As another PSA, if you reply on comments like this to go about wiring anything electrical, do yourself a favor and call a professional.

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

        I mean, replacing a plug on a cord is like a basic human thing that most people should be able to do. A one minute video will show you how.

        If you can’t figure out how to change out a plug, you probably can’t adult.

        • Echolynx@lemmy.zip
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 day ago

          Adult checking in here. I’ve never had to replace a plug for anything… can’t say I know how to either.

          • GreyEyedGhost@lemmy.ca
            link
            fedilink
            arrow-up
            2
            ·
            1 day ago

            If the only thing wrong with your appliance is a damaged cord, which usually happens near where it’s plugged into the wall, and it is a three-pronged cord, the information above is sufficient to replace the plug. Note that you will need to be able to identify the three wires and the color they represent, which is usually followed in decent power cords (of course, not all of them are decent).

            Absolutely, if you aren’t confident in your knowledge and don’t have someone who can verify your work, don’t do it. It’s cheaper to throw away any given appliance than it is to throw away your home via an electrical fire. But basic AC electricity isn’t that complicated, even if it’s more complicated than basic DC electricity.

    • BCsven@lemmy.ca
      link
      fedilink
      arrow-up
      3
      ·
      2 days ago

      Except when white is hot for odd light switch layouts. (Which should be wrapped in black tape, but you know Shady DYI or I Know a Guy electricians.)

    • luciferofastora@feddit.org
      link
      fedilink
      arrow-up
      17
      ·
      2 days ago

      Maybe the point is rather “It generates random bullshit diagrams and if you rely on them, things will go wrong”. This one might not be lethal, but some other design it produces might.

    • Jg1@lemmy.zip
      link
      fedilink
      arrow-up
      6
      ·
      2 days ago

      This isn’t the outlet, it’s the plug that goes into the outlet. Presuming you had it would fit into (the plugs are oriented wrong), it would be about as safe as shoving a fork in instead.

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

        I understand what it is. But any normal GFCI would trip before it could cause any harm to anything. Even a normal breaker would trip before it created a problem, well other than sparks and likely fire. Since this is covered unlike a bare fork it is moderately safer and would not allow current through the body.

        It’s irrelevant though as the image is just stupid. If you can’t immediately see that you should never be allowed near anything electrical.

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

          And there actually is a plug that is oriented like that. It’s a Nema 6-15. And the great thing about it is it’s a 220v 15amp connector. And the plug would also fit in a Nema6-20 which is 20amps. So even more deadly.

      • BanMe@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        2 days ago

        The neutral is hot but it’s also grounded, electricity should take the path to the ground instead of doing anything meaningful on the neutral. You could probably measure a bit of current but not 220.

  • sp3ctr4l@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    39
    ·
    edit-2
    2 days ago

    For reference / non electrical engineers / visual learners:

    https://engineerfix.com/electrical/plugs/how-to-wire-a-us-plug/

    NA 2 Prong, Type A

    NA 3 Prong, Type B

    ‘Earth’ = Ground = the 3rd, round prong

    You can maybe see the AI has kinda sorta merged elements from both of these.

    The main problem is that uh… notice how in these real diagrams none of the lines are looped into each other, they are 2 or 3 distinct lines that feed into whatever is being plugged in…

    … whereas in the AI diagram… it just forms a continuous loop.

    Which… basically means that what the AI labels as ‘neutral’ and ‘ground’… aren’t.

    Doing that would instantly cause a short cicruit and potentially immediately start a or multiple fires, trip circuit breakers, etc, depending on the voltage/amperage avalaible to the outlet this AI ‘death-plug’ ie connected to, and how long it takes the circuit breaker to trip.

    … thats my layman understanding, corrections from any actual EEs would be appreciated if I’ve mucked something up.

    • Thunderbird4@lemmy.world
      link
      fedilink
      arrow-up
      23
      ·
      2 days ago

      Just a heads up, those diagrams are also insufficient on their own. They don’t indicate which line goes to the wide blade and which goes to the narrow blade on the plug. Getting that backwards on some devices can cause switching and fusing to be on the wrong line and defeat certain circuit and safety protections.

      Much as I encourage people to fix their own things, wiring AC mains connections is one of those “if you have to ask, you probably shouldn’t” kind of things.

      • sp3ctr4l@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 days ago

        Thank you, those are very good points to add!

        I managed to be busy nearly all day, glad other people have upvoted your addendum.

  • chronicledmonocle@lemmy.world
    link
    fedilink
    arrow-up
    62
    ·
    3 days ago

    What the actual fuck. The prongs aren’t even oriented correctly. And the ‘live’ wire is just tied to ground.

    So glad we’re burning down the rainforests for this.

    • Darkassassin07@lemmy.ca
      link
      fedilink
      English
      arrow-up
      25
      ·
      3 days ago

      I was curious and found we do actually have plugs with those pin orientations.

      It’s 240v though, which means two live wires on opposing phases shorted together and connected to the appliances ground wire… Even better.

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

          No no no, you just get assigned to the great omni pattern buffer, may O’Brien find and rematerialize you as soon as he is able =P

          • scathliath@lemmy.dbzer0.com
            link
            fedilink
            arrow-up
            2
            ·
            2 days ago

            Instructions unclear, Baron Samedi rematerialized me. Does this mean I gotta go shock myself stupid again until O’Brien does it?

                • sp3ctr4l@lemmy.dbzer0.com
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  1 day ago

                  Ah I was trying to keep going with pop culture jokes and was suggesting you may have been Twin Peaks Season 3 zapped into an alternate timeline, where maybe it was back when… was it The Living Daylights?

                  Whenever it was when whichever Bond movie had Samedi as the big bad came out.

                  =P

          • Darkassassin07@lemmy.ca
            link
            fedilink
            English
            arrow-up
            10
            arrow-down
            1
            ·
            3 days ago

            Not very common in North America.

            We’re required to have them (called GFCI here) near water; bathrooms, kitchens, that sort of thing, but I haven’t seen many installed in panels protecting entire homes/shops or protecting banks of several circuits. I don’t think I’ve ever seen one on larger wattage items like clothes dryers or large shop tools either.

              • Darkassassin07@lemmy.ca
                link
                fedilink
                English
                arrow-up
                1
                ·
                2 days ago

                Unless that changed within the last 5ish years; not they aren’t. But this is nuance that varies region to region; North America doesn’t have one single unified electrical code, though most of it is more or less the same.

                I’m in a new (rental) home, built roughly 6years ago; the only places I have GFCI is bathrooms and kitchen. (and I believe the outdoor outlet too, but not certain without checking)

                Bedrooms and the living room have AFCI breakers, but that’s not for protection against shocks. (and no, they’re not dual purpose breakers).

                https://www.legrand.us/ideas/blogs/gfci-outlet-requirements

                Tldr:

                Where are GFCI Outlets Required? Generally installed in areas near water or potential moisture, GFCI outlets are commonly used in kitchens, bathrooms, laundry rooms, garages, unfinished basements, or outdoor spaces, as required by the NEC.

                • chronicledmonocle@lemmy.world
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  edit-2
                  2 days ago

                  CAFI breakers are required for new builds, which replaced the function of GFCI outlets and also adds arc fault protection.

                  Not all districts are using the latest version of the NEC, so some regions may not require it yet.

                  The NEC ground fault protection covers basically every outlet and appliance now except living rooms and bedrooms. Garages, kitchens, bathrooms, exterior outlets, AC units, crawl spaces, accessory buildings…you name it. Pretty much 70% of your home’s electrical has to be ground fault protected now in new builds.

                  All outlets pretty much everywhere require arc fault protection now, including bedrooms, living rooms, and everywhere ground fault is required.

    • hibsen@lemmy.world
      link
      fedilink
      arrow-up
      12
      ·
      2 days ago

      Cropping is a lost art that was under appreciated in its time. Oddly, I see it done less even though it’s become substantially easier to do over time, with the tools often built into whatever took the screenshot.

    • Yondoza@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      2 days ago

      Honestly doesn’t look particularly dangerous. I think this nets you a ground neutral connection with two test points?

      Would it be useful? Absolutely not. Dangerous? p Probably not.

    • absentbird@lemmy.world
      link
      fedilink
      arrow-up
      12
      ·
      2 days ago

      That’s a text response, this post is about image generation. Gemini is okay at finding stuff on google to show you, it’s basically like a ‘Let me Google that for you’ machine. The problem is when you ask it to make something new.

      Behold, the image response I got using your prompt:

    • Ilovethebomb@sh.itjust.works
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      2 days ago

      You’re in trouble if you also have a broken neutral somewhere.

      But yes, the most likely outcome is breaker goes pop.

      • dual_sport_dork 🐧🗡️@lemmy.world
        link
        fedilink
        English
        arrow-up
        11
        ·
        2 days ago

        For what it’s worth, the terminal screws on US outlets and replacement plugs usually actually are color coded. The screws for the hot (black) wire are gold or brass, and the screws for the neutral (white) wire have a silver finish. The ground screws are usually anodized green.

        You’ll actually find green colored ground screws in tons of devices, not just outlets and plugs.

  • TrickDacy@lemmy.worldM
    link
    fedilink
    arrow-up
    13
    arrow-down
    1
    ·
    2 days ago

    If this truly needs to be said, a giant meteor is too good for us. I get that people are stupid as fuck but Jesus, trusting your life to AI at this point is next level idiocy

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

        It’s not even that! The electrons don’t even move particularly much. The energy is moved by the E/M field created around the circuit, which is even more wild and mind bending.

      • JeremyHuntQW12@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        2 days ago

        Waves flow like water along invisible rivers in the air. So, light doesn’t radiate from the sun so much as its like water flowing down a sinkhole, except in reverse, and without a spiral.