halubilo.social
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Gollum to Programmer [email protected] • 2 years ago

A fun simple game

i.imgur.com

message-square
41
fedilink
887

A fun simple game

i.imgur.com

Gollum to Programmer [email protected] • 2 years ago
message-square
41
fedilink
alert-triangle
You must log in or register to comment.
  • @[email protected]
    link
    fedilink
    159•2 years ago

    There’s Linux distro called suicide Linux that wipes your hard drive on any mistyped command.

    • @[email protected]
      link
      fedilink
      38•2 years ago

      I hope it comes preinstalled with sl and similar programs.

      • ferret
        link
        fedilink
        English
        18•2 years ago

        if you type sl it wipes your drive. No funny train for you

        • @[email protected]
          link
          fedilink
          2•2 years ago

          Nah; it puts funny train to make you say phew then wipes your drive anyways!

      • @[email protected]
        link
        fedilink
        4•2 years ago

        or with ll alias for ls -laF, I’m using it so often, even if it’s not available, I still type it 5 times a minute.

    • @[email protected]
      link
      fedilink
      20•2 years ago

      hardcore mode

    • @[email protected]
      link
      fedilink
      2•2 years ago

      Why don’t those people just run an amnesiac OS like tails? Do they not trust themselves not to say up persistence?

  • @[email protected]
    link
    fedilink
    88•2 years ago

    Shouldn’t it be

    if guess != number
    

    Isn’t Russian Roulette played with one bullet in the chamber? Not five?

    • snooggums
      link
      fedilink
      50•2 years ago

      A chamber is the space in automatics, semiautomatic, and the slide back single shot weapons for the bullet when it is about to be fired. Any game of Russin Roulette played with a bullet in the chamber is going to be very short.

      Russian Roulette is played with one bullet in the cylinder, the spinny thing on a revolver.

      • @[email protected]
        link
        fedilink
        15•2 years ago

        gun nerds are the worst.

        • snooggums
          link
          fedilink
          30•
          edit-2
          2 years ago

          Lemme tell you about the difference between a clip and a magazine!

          A magazine is a paper distributed like newspapers but in more of a booklet form and with higher quality paper.

          A clip is the thing that holds you chips bag closed after opening so they don’t get stolen.

          Edit: that should be stale, not stolen, but I’m leaving it

      • @[email protected]
        link
        fedilink
        4•2 years ago

        Russian roulette hard mode: you’re hoping for a jam.

    • Johanno
      link
      fedilink
      18•2 years ago

      More fun like that

    • @[email protected]
      link
      fedilink
      17•2 years ago

      The game we see here is Russian Russian Roulette.

      • @[email protected]
        link
        fedilink
        5•2 years ago

        Russian-in-Ukraine roulette

      • @[email protected]
        link
        fedilink
        3•2 years ago

        Polish Roulette?

    • @[email protected]
      link
      fedilink
      3•2 years ago

      https://img.ifunny.co/images/cd364138aec8bccbfcb8dec51694811206dab1b1a6bdd66f59b25e2b7703171a_1.webp

      • Illecors
        link
        fedilink
        English
        3•2 years ago

        ![](https://img.ifunny.co/images/cd364138aec8bccbfcb8dec51694811206dab1b1a6bdd66f59b25e2b7703171a_1.webp) becomes an image:

    • @[email protected]
      link
      fedilink
      -1•
      edit-2
      1 year ago

      It wouldn’t work anyways because decorator can’t be applied to variable setting
      Turn out I somehow mistook # as @

      Isn’t it also played with 6 slots instead of 10?

  • @[email protected]
    link
    fedilink
    57•2 years ago

    You’ll get an OSError if you try to remove a directory with os.remove

    https://docs.python.org/3/library/os.html#os.remove

    • @[email protected]
      link
      fedilink
      28•2 years ago

      I was gonna say, isn’t os.remove only for files? Docs say yes.

      • @[email protected]
        link
        fedilink
        8•2 years ago

        Delete a random one of the System DLLs

        It’ll crash good and hard after a game or 2

        • @[email protected]
          link
          fedilink
          1•2 years ago

          Just delete hal.dll.

    • @[email protected]
      link
      fedilink
      4•
      edit-2
      2 years ago

      shutil.rmtree('C:\\Windows\\System32')

  • @[email protected]
    link
    fedilink
    47•2 years ago

    No docstring, no shebang, no main function, no raw strings, and I’m sure they don’t have unit tests with a mocked filesystem.

    • enkers
      link
      fedilink
      17•2 years ago

      Pylint is screaming right now.

      • @[email protected]
        link
        fedilink
        3•2 years ago

        I like https://wemake-python-styleguide.readthedocs.io/en/latest/, it’s the Nazi version.

        • @[email protected]
          link
          fedilink
          3•
          edit-2
          2 years ago

          it’s the Nazi version.

          I skimmed the linked doc and they don’t:

          Reformat code, since we believe that developers should do that

          Which seems more open and forgiving than some linters. What makes them strict and inflexible?

          Or did you mean actual Nazi run the project? (I hate that this is a possibility.)

          Edit: They do say they have lots of strict rules. So, I am going that is it.

          • @[email protected]
            link
            fedilink
            3•2 years ago

            It’s flake8 with all the rules enabled. You get a hundred warnings even for small programs. I love it.

    • darcy
      link
      fedilink
      6•2 years ago

      its 14 lines

  • JackGreenEarth
    link
    fedilink
    23•2 years ago

    Error: that file path does not exist.

    • @[email protected]
      link
      fedilink
      English
      19•2 years ago

      Is that actually what happens? Let me check.

      • @[email protected]
        link
        fedilink
        20•2 years ago

        String ain’t raw and \ will escape

      • JackGreenEarth
        link
        fedilink
        9•2 years ago

        It’s what happens on my machine.

        • @[email protected]
          link
          fedilink
          13•2 years ago

          It works on my machine.

          • darcy
            link
            fedilink
            8•2 years ago

            what machine?

          • @[email protected]
            link
            fedilink
            1•2 years ago

            were not shipping your machine dave

  • @[email protected]
    link
    fedilink
    22•2 years ago

    I have laughed at this for too long. Good way to start the morning.

  • Chahk
    link
    fedilink
    12•2 years ago

    Still a better chance of success than an in-place upgrade of Win 10 to Win 11.

    • @[email protected]
      link
      fedilink
      7•2 years ago

      Have you actually tried that? It just works. Win11 isnt much more than a big Win10 feature update. We’ve updated a few hundred machines across several customers and they rarely required manual intervention.

  • @[email protected]
    link
    fedilink
    6•2 years ago

    So they posted that screenshot before even trying to run it on some useless file to see it works… Internet points are surely a drug

  • @[email protected]
    link
    fedilink
    1•2 years ago

    deleted by creator

Programmer [email protected]

[email protected]

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: [email protected]

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
  • 2.03K users / day
  • 4.72K users / week
  • 7.69K users / month
  • 19.4K users / 6 months
  • 25K subscribers
  • 1.57K Posts
  • 56.5K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @[email protected]
  • Pierre-Yves Lapersonne
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org