ShinyLemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Björn@swg-empire.de to Programmer Humor@programming.dev · 2 years ago

Pretty straight forward

swg-empire.de

message-square
45
link
fedilink
724

Pretty straight forward

swg-empire.de

Björn@swg-empire.de to Programmer Humor@programming.dev · 2 years ago
message-square
45
link
fedilink

By https://www.youtube.com/@yousuckatprogramming

  • Scoopta@programming.dev
    link
    fedilink
    arrow-up
    116
    arrow-down
    1
    ·
    2 years ago

    …this is so much more cursed than it needs to be. If you want to bash in C just system("echo hello world");

    • tempest@lemmy.ca
      link
      fedilink
      arrow-up
      58
      ·
      2 years ago

      That wouldn’t necessarily be bash though

      • smeg@feddit.uk
        link
        fedilink
        English
        arrow-up
        60
        arrow-down
        1
        ·
        2 years ago

        deleted by creator

        • xthexder@l.sw0.com
          link
          fedilink
          arrow-up
          9
          ·
          2 years ago

          Now print “¯\_(ツ)_/¯” with the quotes

          • ultrafastsloth@lemmy.world
            link
            fedilink
            arrow-up
            17
            ·
            2 years ago

            I decided to throw my PC in the composter and become a gardener

          • Beanie@programming.dev
            link
            fedilink
            arrow-up
            4
            ·
            2 years ago

            my best guess: system("bash -c 'echo \\\"¯\\\\_(ツ)_/¯\\\"'");

            which will get parsed as: bash -c 'echo \"¯\\_(ツ)_/¯\"'

            which will run: echo "¯\_(ツ)_/¯"

            and since echo just prints whatever was given to it, it’ll print "¯\_(ツ)_/¯" with the quotes

          • smeg@feddit.uk
            link
            fedilink
            English
            arrow-up
            3
            ·
            2 years ago

            deleted by creator

      • Scoopta@programming.dev
        link
        fedilink
        arrow-up
        21
        ·
        2 years ago

        Fair, should’ve just said shell

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
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

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

  • 987 users / day
  • 4.45K users / week
  • 9.38K users / month
  • 16.5K users / 6 months
  • 1 local subscriber
  • 34K subscribers
  • 2.61K Posts
  • 101K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.21
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org