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

Pretty straight forward

swg-empire.de

message-square
45
link
fedilink
723

Pretty straight forward

swg-empire.de

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

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

  • Scoopta@programming.dev
    link
    fedilink
    arrow-up
    116
    arrow-down
    1
    ·
    1 year 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
      ·
      1 year ago

      That wouldn’t necessarily be bash though

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

        deleted by creator

        • xthexder@l.sw0.com
          link
          fedilink
          arrow-up
          9
          ·
          1 year ago

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

          • ultrafastsloth@lemmy.world
            link
            fedilink
            arrow-up
            17
            ·
            1 year ago

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

          • Beanie@programming.dev
            link
            fedilink
            arrow-up
            4
            ·
            1 year 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
            ·
            1 year ago

            deleted by creator

      • Scoopta@programming.dev
        link
        fedilink
        arrow-up
        21
        ·
        1 year 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
Visibility: Public
globe

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

  • 447 users / day
  • 3.5K users / week
  • 8.62K users / month
  • 17.7K users / 6 months
  • 1 local subscriber
  • 31.6K subscribers
  • 1.84K Posts
  • 54.9K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org