Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
tfm ( tfm@piefed.europe.pub )  to Programmer Humor@programming.devEnglish · 1 year ago

Exclusive insights

piefed.europe.pub

message-square
23
link
fedilink
365

Exclusive insights

piefed.europe.pub

tfm ( tfm@piefed.europe.pub )  to Programmer Humor@programming.devEnglish · 1 year ago
message-square
23
link
fedilink
alert-triangle
You must log in or # to comment.
  • gigachad ( gigachad@piefed.social ) 
    link
    fedilink
    English
    arrow-up
    113
    ·
    1 year ago

    I guess you could add some sleep(1) inbetween

    • xav ( xav@programming.dev ) 
      link
      fedilink
      arrow-up
      60
      ·
      1 year ago

      This is Python. It’s already show enough.

      • gigachad ( gigachad@piefed.social ) 
        link
        fedilink
        English
        arrow-up
        20
        ·
        1 year ago

  • sorter_plainview ( sorter_plainview@lemmy.today ) 
    link
    fedilink
    arrow-up
    35
    ·
    1 year 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 ( jaybone@lemmy.zip ) 
      link
      fedilink
      English
      arrow-up
      15
      ·
      1 year ago

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

      • wheezy ( wheezy@lemmy.ml ) 
        link
        fedilink
        arrow-up
        4
        ·
        1 year 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 ( rbn@sopuli.xyz ) 
    link
    fedilink
    arrow-up
    28
    ·
    1 year 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 ( lemmyknow@lemmy.today ) 
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      The Hollywood command is effortless and runs on terminal

  • katy ✨ ( cupcakezealot@piefed.blahaj.zone ) 
    link
    fedilink
    English
    arrow-up
    14
    ·
    1 year ago

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

  • Damage ( Damage@feddit.it ) 
    link
    fedilink
    arrow-up
    10
    ·
    1 year ago

    It takes skill to hack such an organization using only printf

  • paulbg ( paulbg@programming.dev ) 
    link
    fedilink
    arrow-up
    8
    ·
    1 year ago

    behind the scenes: youtube video of a python loop

  • Evilschnuff ( Evilschnuff@feddit.org ) 
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 year ago

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

  • misteloct ( misteloct@lemmy.dbzer0.com ) 
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    11 months ago

    deleted by creator

    • goatinspace ( goatinspace@feddit.org ) 
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Prints a long summary with hallucinations

  • lemmydividebyzero ( lemmydividebyzero@reddthat.com ) 
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

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

  • dumnezero ( dumnezero@piefed.social ) 
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    not even a loop.

    • tfm ( tfm@piefed.europe.pub ) OP
      link
      fedilink
      English
      arrow-up
      15
      ·
      1 year ago
      import sys
      import time
      from typing import Iterable, Callable, Any
      
      class ProgressSimulator:
          """
          A class to simulate and display the progression of a hacking process,
          with unnecessary abstraction and complexity for dramatic effect.
          """
      
          def __init__(self, description: str = "FBI"):
              self.description = description
              self.progress_steps = [0, 20, 40, 60, 80, 100]
              self.messages = [
                  f"Starting Hack...",
                  *[f"Hacking {self.description} {step}%" for step in self.progress_steps],
                  f"{self.description} Hacked Successfully"
              ]
      
          def generate_progress(self) -> Iterable[str]:
              """Generates the progress messages."""
              for message in self.messages:
                  yield message
      
          def display_progress(self, delay: float = 0.5) -> None:
              """Displays the progress messages with a delay."""
              for message in self.generate_progress():
                  print(message)
                  time.sleep(delay)
      
          def execute_hack(self, callback: Callable[[str], Any] = print) -> None:
              """Executes the hacking process with a callback for each step."""
              for message in self.generate_progress():
                  callback(message)
      
      def create_hacking_sequence(description: str = "FBI") -> ProgressSimulator:
          """Factory function to create a hacking sequence."""
          return ProgressSimulator(description)
      
      def main() -> None:
          """Main function to orchestrate the hacking simulation."""
          hacking_sequence = create_hacking_sequence()
          hacking_sequence.display_progress()
      
      if __name__ == "__main__":
          main()
      
      • orhtej2 ( orhtej2@eviltoast.org ) 
        link
        fedilink
        English
        arrow-up
        9
        ·
        1 year ago

        Enterprise grade 👌

        • yogsototh ( yogsototh@programming.dev ) 
          link
          fedilink
          arrow-up
          4
          ·
          1 year ago

          yep https://github.com/leo-aa88/HelloWorldEnterpriseEdition

      • tetris11 ( tetris11@lemmy.ml ) 
        link
        fedilink
        arrow-up
        5
        ·
        1 year ago

        “How many times are you going to run this, and how many in parallel?”

        “Just once, and exactly one.”

        “Better make a full OO class for it.”

      • dumnezero ( dumnezero@piefed.social ) 
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

      • jaybone ( jaybone@lemmy.zip ) 
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        I can do this in C in three lines.

        • OfCourseNot ( OfCourseNot@fedia.io ) 
          link
          fedilink
          arrow-up
          5
          ·
          1 year ago

          Newlines mean nothing in c. You can literally write any program in three lines of c, if you don’t give a crap about readability.

          • jaybone ( jaybone@lemmy.zip ) 
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            Oup, don’t forget about those preprocessor directives.

  • Ephera ( Ephera@lemmy.ml ) 
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    deleted by creator

  • MonkderVierte ( MonkderVierte@lemmy.zip ) 
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    deleted by creator

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.

  • 515 users / day
  • 1.62K users / week
  • 3.02K users / month
  • 7.23K users / 6 months
  • 463 local subscribers
  • 33.5K subscribers
  • 1.53K Posts
  • 25.1K Comments
  • Modlog
  • mods:
  • Feyter ( Feyter@programming.dev ) 
  • adr1an ( anzo@programming.dev ) 
  • BurningTurtle ( BurningTurtle@programming.dev ) 
  • Pierre-Yves Lapersonne ( pylapp@programming.dev ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code