• jj4211@lemmy.world
        link
        fedilink
        arrow-up
        30
        arrow-down
        1
        ·
        edit-2
        3 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…

        • WorldsDumbestMan@lemmy.today
          link
          fedilink
          arrow-up
          8
          ·
          3 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
            ·
            3 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.

        • BCsven@lemmy.ca
          link
          fedilink
          arrow-up
          5
          ·
          3 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
            ·
            2 days 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.

    • BeMoreCareful@lemmy.world
      link
      fedilink
      English
      arrow-up
      17
      ·
      3 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.

  • psx_crab@lemmy.zip
    link
    fedilink
    English
    arrow-up
    148
    arrow-down
    1
    ·
    edit-2
    4 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
    115
    ·
    4 days ago

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

  • deepdivedylan@lemmy.world
    link
    fedilink
    English
    arrow-up
    14
    ·
    3 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
      12
      ·
      edit-2
      3 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
      3 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
        ·
        3 days 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
      ·
      3 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.

  • chronicledmonocle@lemmy.world
    link
    fedilink
    arrow-up
    65
    ·
    4 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
      ·
      4 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
          ·
          3 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
            ·
            3 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
                  ·
                  2 days 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
            ·
            4 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
                ·
                3 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
                  3 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.

  • sp3ctr4l@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    39
    ·
    edit-2
    3 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
      ·
      3 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
        ·
        3 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.

  • Machinist@lemmy.world
    link
    fedilink
    English
    arrow-up
    21
    ·
    3 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
      4
      ·
      3 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
        ·
        3 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
          ·
          3 days 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
            3
            ·
            2 days 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
      ·
      3 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
      18
      ·
      3 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
      ·
      3 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
        ·
        3 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
          ·
          3 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
        ·
        3 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.

    • hibsen@lemmy.world
      link
      fedilink
      arrow-up
      12
      ·
      3 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
      ·
      3 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
      ·
      3 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
      5
      arrow-down
      1
      ·
      4 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
        ·
        3 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
    ·
    4 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

    • Darkassassin07@lemmy.ca
      link
      fedilink
      English
      arrow-up
      41
      arrow-down
      2
      ·
      edit-2
      4 days ago

      This is a plug, not an outlet; and it shorts the live + neutral pins together. There is no ground pin present, though a wire labeled ground is also being shorted to the live+neutral pins. (basing ‘pins’ on shape/colour and ignoring that at least one is in the wrong position)

      If this doesn’t immediately trip the breaker when plugged in, it’s because you have an open neutral; and now whatever’s on the end of that ground wire (typically exposed metal) is live.

      • Norah (pup/it/she)@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        8
        arrow-down
        3
        ·
        4 days ago

        The live and neutral pins are wired together, so there’s not really a reason for the power to travel to that ground wire. Unless the path to the ground of the device, and then from there to actual ground, is shorter, then nothing will flow that way. It’s absolutely not safe, but a number of other factors would need to be present before it were deadly.

        • Darkassassin07@lemmy.ca
          link
          fedilink
          English
          arrow-up
          18
          ·
          4 days ago

          Unless the path to the ground of the device, and then from there to actual ground, is shorter, then nothing will flow that way.

          That’s not true. Electricity will take all available paths to return to ground, with current flow relative to the resistance present. In other words, two low resistance paths will share similar amounts of current when both are connected to power.

          If you were touching anything connected to that ‘ground’ wire while also connected to a true ground yourself; you could receive a harmful shock from plugging this in, even with a breaker in-line and successfully tripping. A GFCI device should prevent that shock, but a regular breaker will not trip fast enough.

          • Norah (pup/it/she)@lemmy.blahaj.zone
            link
            fedilink
            English
            arrow-up
            4
            arrow-down
            2
            ·
            edit-2
            4 days ago

            True actually. If this were the plug for a washing machine, and you were touching it and the tap for the water inlet, you would definitely get shocked still. Edit: The washing machine itself also wouldn’t generally have a connection to ground that way, as they usually use plastic hoses.

            • TrickDacy@lemmy.worldM
              link
              fedilink
              arrow-up
              6
              ·
              4 days ago

              I’m not sure which of you is correct here but it’s fascinating how confidently people on the Internet will make statements. I’m sure one of you has earned that confidence but I’ll never know which one. Sadly, the other person should question their life choices pretty hard.

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

                Unless I’m reading this thread incorrectly; I believe Norah was mistaken in the comment I replied to, but came around with my explanation.

                The mindset of ‘electricity takes the path of least resistance’ is really quite common and was actually taught in my highschool; but it’s rather misunderstood, if not outright wrong.

    • Undearius@lemmy.ca
      link
      fedilink
      English
      arrow-up
      13
      arrow-down
      1
      ·
      4 days ago

      I wouldn’t say connecting the ground wire of an appliance to the hot side of an outlet is very safe.

    • takeda@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      3 days ago

      This picture doesn’t show how to wire socket, but now to wire a plug. The wire that’s labeled ground is actually attached to live connector, although I guess that doesn’t matter as live and neutral are shorted by white wire.

            • Norah (pup/it/she)@lemmy.blahaj.zone
              link
              fedilink
              English
              arrow-up
              3
              ·
              4 days ago

              No, it’s not the only wire in the circuit. If that plug is plugged into an outlet, then the hot live wire is coming into the circuit at the pin labelled live, and connecting to the ground wire of the device. That ground wire is usually connected to the metal frame of an appliance. Because of the white wire connecting the live and neutral pins together, it’s going to immediately flow back to the breaker box. However, if for whatever reason the path from the ground of the device to actual ground is shorter, then the electricity will flow through the device. It is possible for a person to be in the path to ground. The way this is wired might also circumnavigate an RCD, preventing the safety switch from operating correctly.

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

                An RCD measures the difference in current flow between the phase and neutral, so it will trip in this scenario. An alternative path to earth is precisely what they’re designed to detect.

                • Norah (pup/it/she)@lemmy.blahaj.zone
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  4 days ago

                  Ah yeah, you’re right, my mistake. It’s wild to me as an Aussie that they aren’t universal in the States. Plenty of houses (or outlets?) don’t have them IIRC?

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

                  It should; but it’s also important to note breakers are not intended to prevent electric shocks, they are intended to protect the wiring within your walls.

                  The time in between this being plugged in and the relevant breaker tripping IS enough time to receive a harmful shock from that ‘ground’ wire. Preventing this is the purpose of GFCI devices.

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

        Connecting the earth wire, which goes to the metal casing of the appliance, directly to phase definitely isn’t safe.

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

          And where does phase go to or come from? The picture shows a short of piece of wire labelled “phase” but that doesn’t magically make an otherwise unconnected piece of wire anything active. If labelling anything “phase” could produce energy, boy would my energy bill go down fast 😂

          I keep to my statement: The pic shows a completely dead “circuit”.

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

            This is a plug, which you plug into a socket, which is where the leccy comes from.

            Of course the circuit is dead, it’s not plugged in.