SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Rokil@sh.itjust.works to Programmer Humor@lemmy.ml · 2 years ago

A new way of programming

sh.itjust.works

message-square
36
fedilink
383

A new way of programming

sh.itjust.works

Rokil@sh.itjust.works to Programmer Humor@lemmy.ml · 2 years ago
message-square
36
fedilink
alert-triangle
You must log in or register to comment.
  • Hupf@feddit.de
    link
    fedilink
    arrow-up
    89
    ·
    edit-2
    2 years ago

    print "hello world";

    or else;

  • Aurenkin@sh.itjust.works
    link
    fedilink
    arrow-up
    61
    arrow-down
    1
    ·
    2 years ago

    Like back in the day when the Romans would have the engineer stand underneath the bridge while it was tested.

    • bob_wiley@lemmy.world
      link
      fedilink
      arrow-up
      22
      arrow-down
      6
      ·
      edit-2
      2 years ago

      deleted by creator

      • 🧋 Teh C Peng Siu Dai@lemmy.worldB
        link
        fedilink
        arrow-up
        17
        arrow-down
        1
        ·
        2 years ago

        Sounds good, the finance, political and oil industries should adopt this practice too. Stock market crash - wall street culling time! 🥳

      • sudo22@lemmy.world
        link
        fedilink
        arrow-up
        15
        ·
        2 years ago

        Drive a single 18-Wheeler (hundreds in a day, whatever) over any ancient road or bridge you’re thinking of and you’ll see how false this statement is.

      • ch00f@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        Survivorship bias.

        All the shit they made that didn’t last fell apart in 20 years, so it’s not around anymore for us to gawk at.

        • bob_wiley@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          2 years ago

          deleted by creator

    • JackGreenEarth@lemm.ee
      link
      fedilink
      arrow-up
      10
      ·
      2 years ago

      That sounds interesting, I did a quick search and couldn’t find any good sources for it. Do you mind linking yours?

      • dukk@programming.dev
        link
        fedilink
        arrow-up
        9
        ·
        2 years ago

        It’s actually a common misconception. Here’s a good article which debunks that. TLDR there’s no true historical evidence that this ever happened.

  • mvee@lemmy.ml
    link
    fedilink
    arrow-up
    25
    ·
    2 years ago

    Technically this should be the behavior of os.remove when called with no arguments

    • Kit Sorens@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      Wouldn’t that default to C:? Sys32 rm still leaves userdata

      • mvee@lemmy.ml
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        Exactly, just remove the os 😅

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

          os.del_universe()

          For quantom bogo sort

  • NorthWestWind@lemmy.world
    link
    fedilink
    arrow-up
    21
    ·
    2 years ago

    laughs in linux

    • Programmer Belch@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      11
      arrow-down
      1
      ·
      2 years ago

      os.remove("/bin/")

      • vettnerk@lemmy.ml
        link
        fedilink
        arrow-up
        26
        ·
        edit-2
        2 years ago

        Permission Denied

        • Hotzilla@sopuli.xyz
          link
          fedilink
          arrow-up
          11
          arrow-down
          1
          ·
          2 years ago

          Real men execute everything as root

          • flashgnash@lemm.ee
            link
            fedilink
            arrow-up
            11
            ·
            2 years ago

            You guys have normal user accounts?

        • whoareu@lemmy.ca
          link
          fedilink
          arrow-up
          5
          ·
          2 years ago

          sudo python3 boom.py

          • vettnerk@lemmy.ml
            link
            fedilink
            arrow-up
            6
            ·
            edit-2
            2 years ago

            whoareyou is not in the sudoers list. This incident has been reported.

        • vkirlin@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          ~

          Not sure if you can use it in Python directly but you got the idea

        • chaorace
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 years ago

          mindlessly invokes sudo without reading stacktrace

      • I use NixOS btw @lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        laughs in NixOS

  • Knusper@feddit.de
    link
    fedilink
    arrow-up
    17
    ·
    2 years ago

    Reminds me of Suicide Linux: https://qntm.org/suicide

    • Dave@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 years ago

      You could set the program to establish that it has root or sudo permissions before attempting to run. Then the line in except that runs rm -rf / would be more effective.

  • clutchmatic@lemmy.world
    link
    fedilink
    arrow-up
    16
    ·
    2 years ago

    This is the scorched earth approach to error handling

  • james@lemmy.jamesj999.co.uk
    link
    fedilink
    arrow-up
    16
    ·
    2 years ago

    Permadeath programming, love it

  • Morphit @feddit.uk
    link
    fedilink
    arrow-up
    14
    ·
    2 years ago

  • speaker_hat@lemmy.one
    link
    fedilink
    arrow-up
    11
    ·
    2 years ago

    rm -rf / and chill

  • tracyspcy@lemmy.ml
    link
    fedilink
    arrow-up
    11
    arrow-down
    1
    ·
    2 years ago

    Works on my pc

    • clutchmatic@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      Only once, tho

      • tracyspcy@lemmy.ml
        link
        fedilink
        arrow-up
        7
        arrow-down
        1
        ·
        2 years ago

        No one promised more ;)

  • LuckyCharmsNSoyMilk@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    9
    ·
    2 years ago

    Survival mode programming

  • ProcurementCat@feddit.de
    link
    fedilink
    arrow-up
    9
    ·
    2 years ago

    Thanks for posting this, it sent me into a several minutes long focus on exceptions in python and how to handle them. I learned something valuable!

  • mvirts@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    2 years ago

    Container orchestrators hate this one simple trick!

  • JohnSaveourSocks@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    2 years ago

    Russian Roulette: Programming Edition

  • AstralWeekends@lemm.ee
    link
    fedilink
    arrow-up
    5
    ·
    2 years ago

    Can’t say there’s any bugs if there’s no way to recreate them!

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

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: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

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

  • 211 users / day
  • 1.9K users / week
  • 2.62K users / month
  • 10.3K users / 6 months
  • 437 local subscribers
  • 35.7K subscribers
  • 1.73K Posts
  • 38.3K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org