Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programmer Humor
  3. Instant production ready code

Instant production ready code

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
28 Posts 18 Posters 1 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • cm0002@lemmy.worldC This user is from outside of this forum
    cm0002@lemmy.worldC This user is from outside of this forum
    [email protected]
    wrote last edited by
    #1
    This post did not contain any content.
    tabbsthebat@pawb.socialT D N P anonbd@techhub.socialA 6 Replies Last reply
    352
    • cm0002@lemmy.worldC [email protected]
      This post did not contain any content.
      tabbsthebat@pawb.socialT This user is from outside of this forum
      tabbsthebat@pawb.socialT This user is from outside of this forum
      [email protected]
      wrote last edited by
      #2

      Guys I asked ChatGPT for a secure code for my website; is this correct:

      if getting.hacked == true; don't

      korne127@lemmy.worldK H mitch@piefed.mitch.scienceM P 4 Replies Last reply
      55
      • tabbsthebat@pawb.socialT [email protected]

        Guys I asked ChatGPT for a secure code for my website; is this correct:

        if getting.hacked == true; don't

        korne127@lemmy.worldK This user is from outside of this forum
        korne127@lemmy.worldK This user is from outside of this forum
        [email protected]
        wrote last edited by
        #3

        keyboard@lemmy.worldK 1 Reply Last reply
        61
        • tabbsthebat@pawb.socialT [email protected]

          Guys I asked ChatGPT for a secure code for my website; is this correct:

          if getting.hacked == true; don't

          H This user is from outside of this forum
          H This user is from outside of this forum
          [email protected]
          wrote last edited by
          #4

          The explicit comparison to true makes it even better.

          1 Reply Last reply
          10
          • tabbsthebat@pawb.socialT [email protected]

            Guys I asked ChatGPT for a secure code for my website; is this correct:

            if getting.hacked == true; don't

            mitch@piefed.mitch.scienceM This user is from outside of this forum
            mitch@piefed.mitch.scienceM This user is from outside of this forum
            [email protected]
            wrote last edited by
            #5

            Most InfoSec researchers are unaware that most hackers can be stopped by saying "please."

            tabbsthebat@pawb.socialT 1 Reply Last reply
            14
            • mitch@piefed.mitch.scienceM [email protected]

              Most InfoSec researchers are unaware that most hackers can be stopped by saying "please."

              tabbsthebat@pawb.socialT This user is from outside of this forum
              tabbsthebat@pawb.socialT This user is from outside of this forum
              [email protected]
              wrote last edited by
              #6

              "Remember kids: if you're being robbed just say "no". They can't do anything without your consent"

              mitch@piefed.mitch.scienceM 1 Reply Last reply
              15
              • tabbsthebat@pawb.socialT [email protected]

                "Remember kids: if you're being robbed just say "no". They can't do anything without your consent"

                mitch@piefed.mitch.scienceM This user is from outside of this forum
                mitch@piefed.mitch.scienceM This user is from outside of this forum
                [email protected]
                wrote last edited by
                #7

                echo "echo "\Please don't hack me. I'm just a little guy. 👶"\" > ~/.bashrc

                U 1 Reply Last reply
                11
                • tabbsthebat@pawb.socialT [email protected]

                  Guys I asked ChatGPT for a secure code for my website; is this correct:

                  if getting.hacked == true; don't

                  P This user is from outside of this forum
                  P This user is from outside of this forum
                  [email protected]
                  wrote last edited by [email protected]
                  #8

                  I don't know, I don't know how to code.

                  But I just asked Chat GPT and it said yeah.

                  1 Reply Last reply
                  5
                  • cm0002@lemmy.worldC [email protected]
                    This post did not contain any content.
                    D This user is from outside of this forum
                    D This user is from outside of this forum
                    [email protected]
                    wrote last edited by
                    #9

                    Vibe coder: DO NOT DELETE THE DATABASE. DO NOT DELETE THE DATABASE. DO NOT DELETE THE DATABASE.

                    Chatgpt: All I heard was "delete the database" three times.

                    otter@lemmy.caO C U 3 Replies Last reply
                    34
                    • D [email protected]

                      Vibe coder: DO NOT DELETE THE DATABASE. DO NOT DELETE THE DATABASE. DO NOT DELETE THE DATABASE.

                      Chatgpt: All I heard was "delete the database" three times.

                      otter@lemmy.caO This user is from outside of this forum
                      otter@lemmy.caO This user is from outside of this forum
                      [email protected]
                      wrote last edited by [email protected]
                      #10

                      That's an actual problem with some of them. It chunks up the prompt and assigns weights to different parts, and doesn't understand the original intent

                      Saying "No food on the plate" might have it decide "plate + food + no"

                      Compared to saying "empty plate" for example

                      1 Reply Last reply
                      4
                      • D [email protected]

                        Vibe coder: DO NOT DELETE THE DATABASE. DO NOT DELETE THE DATABASE. DO NOT DELETE THE DATABASE.

                        Chatgpt: All I heard was "delete the database" three times.

                        C This user is from outside of this forum
                        C This user is from outside of this forum
                        [email protected]
                        wrote last edited by [email protected]
                        #11

                        I remember my first day of my first professional programming job back in 1996. I had just learned SQL that morning (which I'd never even heard of before) and that afternoon I forgot to add a WHERE clause to a DELETE command. Good times ...

                        Fortunately this was in production and not in any important environment like development or test.

                        C korne127@lemmy.worldK D 3 Replies Last reply
                        25
                        • korne127@lemmy.worldK [email protected]

                          keyboard@lemmy.worldK This user is from outside of this forum
                          keyboard@lemmy.worldK This user is from outside of this forum
                          [email protected]
                          wrote last edited by
                          #12

                          😂😂😂😂

                          1 Reply Last reply
                          1
                          • C [email protected]

                            I remember my first day of my first professional programming job back in 1996. I had just learned SQL that morning (which I'd never even heard of before) and that afternoon I forgot to add a WHERE clause to a DELETE command. Good times ...

                            Fortunately this was in production and not in any important environment like development or test.

                            C This user is from outside of this forum
                            C This user is from outside of this forum
                            [email protected]
                            wrote last edited by
                            #13

                            If they gave a newbie full r/w creds to a prod db, that's 100% on them and not you.

                            C 1 Reply Last reply
                            8
                            • C [email protected]

                              I remember my first day of my first professional programming job back in 1996. I had just learned SQL that morning (which I'd never even heard of before) and that afternoon I forgot to add a WHERE clause to a DELETE command. Good times ...

                              Fortunately this was in production and not in any important environment like development or test.

                              korne127@lemmy.worldK This user is from outside of this forum
                              korne127@lemmy.worldK This user is from outside of this forum
                              [email protected]
                              wrote last edited by
                              #14

                              Onosecond

                              1 Reply Last reply
                              4
                              • C [email protected]

                                If they gave a newbie full r/w creds to a prod db, that's 100% on them and not you.

                                C This user is from outside of this forum
                                C This user is from outside of this forum
                                [email protected]
                                wrote last edited by
                                #15

                                Lol "credentials". This was done directly on the server, which was kept always logged in with the admin account so anybody in the server room could access it. It was OK though, this was just a small company ... just Reliance Electric, now part of Rockwell Automation.

                                And you thought "security through obscurity" was bad - this was "security through apathy".

                                S 1 Reply Last reply
                                5
                                • C [email protected]

                                  Lol "credentials". This was done directly on the server, which was kept always logged in with the admin account so anybody in the server room could access it. It was OK though, this was just a small company ... just Reliance Electric, now part of Rockwell Automation.

                                  And you thought "security through obscurity" was bad - this was "security through apathy".

                                  S This user is from outside of this forum
                                  S This user is from outside of this forum
                                  [email protected]
                                  wrote last edited by
                                  #16

                                  That was the 90s. It's so long ago, we've come so far, so luckily there is no way any respectable company in 2025 does anything like that anymore.

                                  Meanwhile: There's me joining a ~400k employee corporation half a year ago to find out that they don't have a dev env and testing is done on production, we just have to not push the "publish" button to keep our tests in preview mode instead of going live in our customer-facing ecom solution. 😬

                                  1 Reply Last reply
                                  2
                                  • C [email protected]

                                    I remember my first day of my first professional programming job back in 1996. I had just learned SQL that morning (which I'd never even heard of before) and that afternoon I forgot to add a WHERE clause to a DELETE command. Good times ...

                                    Fortunately this was in production and not in any important environment like development or test.

                                    D This user is from outside of this forum
                                    D This user is from outside of this forum
                                    [email protected]
                                    wrote last edited by
                                    #17

                                    That's why I start my dangerous queries with a broken first word like ELETE FROM table... and do a proofread before adding the D. Saves you from annoying mistakes either by stupidity or fat fingering the enter key.

                                    C 1 Reply Last reply
                                    1
                                    • cm0002@lemmy.worldC [email protected]
                                      This post did not contain any content.
                                      N This user is from outside of this forum
                                      N This user is from outside of this forum
                                      [email protected]
                                      wrote last edited by
                                      #18

                                      I genuinely heard this given as advice yesterday.

                                      1 Reply Last reply
                                      0
                                      • D [email protected]

                                        Vibe coder: DO NOT DELETE THE DATABASE. DO NOT DELETE THE DATABASE. DO NOT DELETE THE DATABASE.

                                        Chatgpt: All I heard was "delete the database" three times.

                                        U This user is from outside of this forum
                                        U This user is from outside of this forum
                                        [email protected]
                                        wrote last edited by
                                        #19

                                        Some guy outside the company: Why don't you just remove the ability to delete the database from the API?
                                        The guy that made the thing vibeable before being laid-off: There is no API, I just piped the ChatGPT output to sh

                                        1 Reply Last reply
                                        4
                                        • cm0002@lemmy.worldC [email protected]
                                          This post did not contain any content.
                                          P This user is from outside of this forum
                                          P This user is from outside of this forum
                                          [email protected]
                                          wrote last edited by
                                          #20

                                          hard to be an engineer these days.

                                          anonbd@techhub.socialA 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups