Civilloquy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sjmarf@sh.itjust.works to Programmer Humor@programming.devEnglish · 1 month ago

Oh no! 🤦‍♂️

sh.itjust.works

message-square
39
fedilink
816

Oh no! 🤦‍♂️

sh.itjust.works

Sjmarf@sh.itjust.works to Programmer Humor@programming.devEnglish · 1 month ago
message-square
39
fedilink
alert-triangle
You must log in or register to comment.
  • four@lemmy.zip
    link
    fedilink
    English
    arrow-up
    211
    ·
    1 month ago

    The “Thought for 2 seconds” and “Stopped thinking” are hilarious to me

  • x00z@lemmy.world
    link
    fedilink
    English
    arrow-up
    85
    ·
    edit-2
    1 month ago

    At least we know vibe coders will eventually destroy themselves.

    • WhyJiffie@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      17
      ·
      1 month ago

      just wait until they start vibe coding on their brain implant

  • tequinhu@lemmy.world
    link
    fedilink
    arrow-up
    72
    ·
    1 month ago

    I did this once (for real, but without AI assistance)

    • Hazzard@lemm.ee
      link
      fedilink
      arrow-up
      10
      ·
      1 month ago

      Same, I didn’t realize the directory I was deleting had a symlink to some root directory, at least until my mouse stopped working…

      • mmddmm@lemm.ee
        link
        fedilink
        arrow-up
        7
        ·
        edit-2
        1 month ago

        Gnome used to have a link to your homedir in its settings directory.

        I imagine plenty of people had tons of fun with that. But you need to modify rm to follow symlinks nowadays.

    • gwilikers@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      I did it recently. Its like watching your computer commit seppuku.

  • PastafARRian@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    70
    ·
    1 month ago

    Looks like ChatGPT will create more software jobs than it takes.

    • _____@lemm.ee
      link
      fedilink
      English
      arrow-up
      43
      ·
      1 month ago

      AI will create the most cursed entry jobs humans have yet to see.

      First job in the old days doing WordPress, managing someone’s vomit inducing PHP? Gone.

      Jobs with jQuery spaghetti calling dozens of asp APIs like a rat’s nest no rat can traverse? Gone.

      Welcome to the future: Fixing some “business” guy’s vibe coded personal hell made just for you.

      • ulterno@programming.dev
        link
        fedilink
        English
        arrow-up
        8
        arrow-down
        11
        ·
        1 month ago

        Asking AI to make my website in C.

        Who’s going to fix that “business” for me? BTW, the AI says, it’s 95% done and only needs some debugging, so you’ll be paid accordingly.

  • noctivius@lemm.ee
    link
    fedilink
    English
    arrow-up
    51
    arrow-down
    3
    ·
    1 month ago

    deserved tbh

  • Captain Aggravated@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    39
    ·
    1 month ago

    Stopped thinking

    • weirdboy@lemm.ee
      link
      fedilink
      arrow-up
      20
      ·
      1 month ago

      Never started

  • friend_of_satan@lemmy.world
    link
    fedilink
    English
    arrow-up
    37
    arrow-down
    1
    ·
    edit-2
    1 month ago

    This is why the first thing I did when my company got us an agentic LLM was set up devcontainer.

    https://containers.dev/

  • schnurrito@discuss.tchncs.de
    link
    fedilink
    arrow-up
    30
    ·
    1 month ago

    OK I’ll bite, how do you get rid of a literal ~ directory?

    • barsoap@lemm.ee
      link
      fedilink
      arrow-up
      42
      ·
      1 month ago

      Should be \~ in most shells, certainly bash. Use mkdir and rmdir when messing around to prevent accidents.

      • DacoTaco@lemmy.world
        link
        fedilink
        arrow-up
        9
        ·
        1 month ago

        Saw this post this morning and was thinking about how to delete it ( while falling back asleep ). Escaping the ~, ofc that’d work! I feel so stupid now haha

    • zarkanian@sh.itjust.works
      link
      fedilink
      arrow-up
      11
      ·
      1 month ago

      Just give rm the entire path or a relative path like ./~

    • Raltoid@lemmy.world
      link
      fedilink
      English
      arrow-up
      9
      ·
      edit-2
      1 month ago

      prefix with path, and/or quotation

    • JollyGreen_sasquatch@sh.itjust.works
      link
      fedilink
      arrow-up
      7
      ·
      1 month ago

      A method not yet mentioned is by inode, (I’ve accidentally created filenames I didn’t know how to escape at the time like -- or other command line flags/special characters)

      ls -li

      Once you get the inode

      find . -type f -inum $inode -delete

    • Captain Aggravated@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 month ago

      Using Nautilus or Dolphin.

      • schnurrito@discuss.tchncs.de
        link
        fedilink
        arrow-up
        1
        ·
        1 month ago

        True if these are installed, but if I’m on a server’s command line they probably aren’t.

    • friend_of_satan@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 month ago

      deleted by creator

      • floquant@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        26
        ·
        1 month ago

        I don’t understand the eagerness of most people to go nuclear by adding potentially dangerous arguments when not required.

        Use rmdir to remove a directory you expect to be empty, not rm -rf

        • zarkanian@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          1 month ago

          It’s because they know how to use rm -rf, and they don’t know how to use rmdir. Honestly, I can’t think of a single time I’ve ever successfully removed a directory with rmdir. I always wind up using something else.

      • xav@programming.dev
        link
        fedilink
        arrow-up
        10
        ·
        1 month ago

        In these touchy cases always add ‘-i’ to have a confirmation when doing dangerous things. This will save your ass.

      • Atherel@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        2
        ·
        1 month ago

        why -exec rm when find has a -delete flag?

        • barsoap@lemm.ee
          link
          fedilink
          arrow-up
          4
          ·
          1 month ago

          Is that some new-fangled GNU thing? It’s certainly not POSIX.

          • Atherel@lemmy.dbzer0.com
            link
            fedilink
            arrow-up
            5
            ·
            1 month ago

            Oh, for once the BSD version has more options than the GNU one.

    • fin@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      rm -rf “~” may work?

      • petersr@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        1 month ago

        No, but single quotes will.

        • fin@sh.itjust.works
          link
          fedilink
          arrow-up
          2
          ·
          1 month ago

          huh, I almost removed my entire home directory

      • ulterno@programming.dev
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 month ago

        In case you are just testing it out, don’t use -rf
        Your ~ directory is most probably empty, so use rm -d instead, to prevent all footguns in case you put the wrong character in the end.

               -d, --dir
                      remove empty directories
        

        I feel safe doing rm -d /.
        I feel safe doing sudo rm -d /.

        Because it won’t delete anything that has a file in it.

  • nomade420@lemm.ee
    link
    fedilink
    arrow-up
    27
    ·
    1 month ago

    I think it should’ve started with “stopped thinking”

  • IsThisAnAI@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    1 month ago

    You can definitely do this redirecting output. I did this to myself and sighed about 2 seconds into it after realizing what I had done.

    • SirQuack@feddit.nl
      link
      fedilink
      arrow-up
      8
      ·
      1 month ago

      Creating a ~ folder isn’t the tricky part. Removing it is.

      (until you figure it out once)

  • remotedev@lemmy.ca
    link
    fedilink
    arrow-up
    7
    ·
    1 month ago

    ctrl-z… ctrl-z…CTRL-Z

  • duckiegobrrr@kbin.earth
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    1 month ago

    I mean I have to wipe out my ~ relatively frequently on some machines at times but that’s for “actual” “reasons”, LLM hallucinations not involved

  • thatradomguy@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    1 month ago

    Is this assisted suicide?

  • Melvin_Ferd@lemmy.world
    link
    fedilink
    arrow-up
    4
    arrow-down
    4
    ·
    1 month ago

    Same energy as Republican memes

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.41K users / day
  • 3.26K users / week
  • 7.5K users / month
  • 16.5K users / 6 months
  • 1 local subscriber
  • 24.7K subscribers
  • 1.36K Posts
  • 33.3K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org