KW Region Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
tfm@piefed.europe.pub to Programmer Humor@programming.devEnglish · 2 days ago

Exclusive insights

piefed.europe.pub

message-square
59
fedilink
606

Exclusive insights

piefed.europe.pub

tfm@piefed.europe.pub to Programmer Humor@programming.devEnglish · 2 days ago
message-square
59
fedilink
alert-triangle
You must log in or register to comment.
  • stupidcasey@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    21 hours ago

    But look how much effort he put into ricing his terminal this guy’s good.

  • GreenKnight23@lemmy.world
    link
    fedilink
    arrow-up
    53
    ·
    1 day ago

    what about the sleeps between each print?

    where’s the comments?

    why isn’t it DRY?

    3/10 code, PR rejected.

    • urandom@lemmy.world
      link
      fedilink
      English
      arrow-up
      15
      ·
      1 day ago

      where’s the comments?

      // this prints 80%

      • TooManyFoods@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        15 hours ago

        This is python

        • boonhet@sopuli.xyz
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          14 hours ago

          Python with semicolons? I mean I guess it’ll run but why

          • TooManyFoods@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            12 hours ago

            For the POWER of doing something UNNECESSARY because you CAN

  • Lucidlethargy@sh.itjust.works
    link
    fedilink
    arrow-up
    5
    ·
    23 hours ago

    Guys, you can’t just come in here and post exactly how hackimg works.

    That’s illegal!!1!

  • gigachad@piefed.social
    link
    fedilink
    English
    arrow-up
    159
    ·
    2 days ago

    I guess you could add some sleep(1) inbetween

    • xav@programming.dev
      link
      fedilink
      arrow-up
      84
      arrow-down
      6
      ·
      2 days ago

      This is Python. It’s already show enough.

      • StarvingMartist@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        19
        ·
        1 day ago

        Ooof starting the day with violence I see

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

          “One troll a day keeps the intelligent people away”

      • gigachad@piefed.social
        link
        fedilink
        English
        arrow-up
        30
        arrow-down
        3
        ·
        2 days ago

      • ripcord@lemmy.world
        link
        fedilink
        arrow-up
        10
        arrow-down
        1
        ·
        2 days ago

        That’s not python

        • gigachad@piefed.social
          link
          fedilink
          English
          arrow-up
          46
          arrow-down
          1
          ·
          2 days ago

          It’s valid Python code though, the semicolons will run but are unnecessary

          • NeatNit@discuss.tchncs.de
            link
            fedilink
            arrow-up
            36
            arrow-down
            2
            ·
            edit-2
            2 days ago

            demo of semicolons being allowed in Python

            I am so perplexed and horrified. I’m going to need several weeks to get over this. What is this?!

            • Mad_Punda@feddit.org
              link
              fedilink
              arrow-up
              21
              ·
              2 days ago

              A way to have several statements on the same line?

              • NeatNit@discuss.tchncs.de
                link
                fedilink
                arrow-up
                11
                ·
                2 days ago

                It seems I had semicolons confused with braces:

                if picture is broken, it’s this:

                ~ $ python -c "from __future__ import braces"
                  File "<string>", line 1
                SyntaxError: not a chance
                
                • palordrolap@fedia.io
                  link
                  fedilink
                  arrow-up
                  8
                  ·
                  1 day ago

                  Guido undoubtedly had a strong, strong hatred of the number of ways braces are overloaded in Perl.

                  Do you really want an example?

                  sub doHref { { do { ${someglobal{Href}} = {} }; last }; }

                  Every single pairing there serves a different syntactic purpose. Some are related purposes, and I’ve crowbarred a few in unnecessarily for the sake of an example, but different nonetheless.

                  The outer pair declares the sub, and the next pair is a free block that works as a once-through unlabelled loop, which is exited with the last. (Most other languages use break for this purpose.)

                  The next pair are for the do which doesn’t act as a loop like the free block does. The next innermost pairing wrap a variable and the inner, innermost pairing indicate that the variable is a member of a hash (associative array) and we’re accessing the record named Href.

                  The lone {} indicates a hash reference, so we’re assigning a reference to an empty, anonymous hash to that hash record.

                  This example is ridiculous of course. There’s no need for most of those braces and syntax to do what it actually does. Also assigning to global variables is generally frowned upon.

                  sub doHref { $someglobal{Href} = {} }

                  … is equivalent and cuts out most of the guff. Still three different uses though.

            • I Cast Fist@programming.dev
              link
              fedilink
              arrow-up
              4
              ·
              1 day ago

              What is this?!

              Python

              • NeatNit@discuss.tchncs.de
                link
                fedilink
                arrow-up
                2
                ·
                1 day ago

                Blasphemy!

          • ripcord@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            1 day ago

            Yeah but it wasnt intended to be python

            • gigachad@piefed.social
              link
              fedilink
              English
              arrow-up
              6
              ·
              1 day ago

              Maybe we should call the meme police then

              • ripcord@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                1 day ago

                On xav?

    • 9point6@lemmy.world
      link
      fedilink
      arrow-up
      90
      ·
      2 days ago

      Needs to be a sleep(3) and sleep(5) between the last ones just to add suspense

      • toynbee@lemmy.world
        link
        fedilink
        arrow-up
        41
        ·
        2 days ago
        sleep $(( 1 + $RANDOM % 5 ))
        
        • idunnololz@lemmy.world
          link
          fedilink
          arrow-up
          5
          arrow-down
          1
          ·
          1 day ago

          No it has to be controlled suspense.

      • wheezy@lemmy.ml
        link
        fedilink
        arrow-up
        9
        ·
        1 day ago

        Needs a 99% print too just before the 5 second sleep. Followed by a 99.9% and another 2 second sleep. Never print 100 and just run a traceroute in a loop.

        Followed by a “we’re in” from the hacker as we’re made to believe he’s reading the console spam like he’s Neo from the matrix as he types faster and faster into an unresponsive terminal window.

  • katy ✨@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    20
    ·
    1 day ago

    have you seen who runs the fbi? this’ll probably work irl

  • TankovayaDiviziya@lemmy.world
    link
    fedilink
    arrow-up
    34
    ·
    2 days ago

    Did he type the furiously on to the keyboard? No? Then it’s not hacking.

    • Adalast@lemmy.world
      link
      fedilink
      arrow-up
      28
      ·
      1 day ago

      I have seen like 2 movies where the hacker just ran a script and danced around the room until the progress bar got to the top, then he hit a couple inputs and ran another script and went back to dancing. It was so surreal to see something so much closer to real than the feverish hammering in a keyboard.

      • Hoimo@ani.social
        link
        fedilink
        arrow-up
        1
        ·
        19 hours ago

        There’s also The Core where the hacker says “yea, I can do it”, demands unlimited hot pockets and all of Xena Warrior Princess on VHS, then locks himself up in his room.,

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

        ah yeah, I’m always dancing when hacking gov systems

      • A_norny_mousse@feddit.org
        link
        fedilink
        arrow-up
        2
        ·
        1 day ago

        Which movies?

    • Natanael@infosec.pub
      link
      fedilink
      arrow-up
      12
      ·
      1 day ago

      https://hackertyper.com/

      • A_norny_mousse@feddit.org
        link
        fedilink
        arrow-up
        2
        ·
        1 day ago

        Classic! Sometimes I call it up just to enjoy that feeling.

  • sorter_plainview@lemmy.today
    link
    fedilink
    arrow-up
    45
    ·
    2 days ago

    You know hackers in the movies are very polite and care for their user. When they are hacking or wiping the disk they show proper progress. That is much better user experience than many corporate products. Be like hackers in the movie.

    • jaybone@lemmy.zip
      link
      fedilink
      English
      arrow-up
      22
      ·
      2 days ago

      Ransomware has better tech support and customer service than your cell phone provider or ISP.

      • wheezy@lemmy.ml
        link
        fedilink
        arrow-up
        9
        ·
        1 day ago

        Their profits come from actual “customers”. They can’t just layoff half of their work force and use stock buybacks to make the line go up. Shit has to actually work.

  • rbn@sopuli.xyz
    link
    fedilink
    arrow-up
    37
    ·
    2 days ago

    For those who want a more convincing but still low-effort variant of this, use… https://hackertyper.net/

    Press F11 in your browser to run it in fullscreen.

    • lemmyknow@lemmy.today
      link
      fedilink
      arrow-up
      8
      ·
      2 days ago

      The Hollywood command is effortless and runs on terminal

  • lemmydividebyzero@reddthat.com
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 day ago

    Yeah, few people know that the FBI tells you the progress when hacking them.

  • Damage@feddit.it
    link
    fedilink
    arrow-up
    15
    ·
    2 days ago

    It takes skill to hack such an organization using only printf

    • noughtnaut@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      1 day ago

      You’d be surprised how versatile that one thing is. Or, should I say, how much abuse it gets at ioccc…

  • PastafARRian@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    8
    ·
    1 day ago

    “ChatGPT, write me a program to hack the FBI”

    • goatinspace@feddit.org
      link
      fedilink
      arrow-up
      2
      ·
      22 hours ago

      Prints a long summary with hallucinations

  • paulbg@programming.dev
    link
    fedilink
    arrow-up
    8
    ·
    2 days ago

    behind the scenes: youtube video of a python loop

  • Evilschnuff@feddit.org
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 days ago

    The hacking in Mr Robot looked more authentic, I really liked it. But they usually just executed some random scripts without printouts lol.

  • Ephera@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    1 day ago

    deleted by creator

  • kambusha@sh.itjust.works
    link
    fedilink
    arrow-up
    9
    ·
    2 days ago

    I’ve been hacking the world this whole time!

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.03K users / day
  • 3.5K users / week
  • 9.12K users / month
  • 13.1K users / 6 months
  • 1 local subscriber
  • 26.1K subscribers
  • 599 Posts
  • 9.66K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.10
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org