Jamesj999 Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Rokil@sh.itjust.works to Programmer Humor@lemmy.ml · 2 年前

A new way of programming

sh.itjust.works

message-square
39
fedilink
382

A new way of programming

sh.itjust.works

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

    print "hello world";

    or else;

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

    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 年前

      deleted by creator

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

        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 年前

        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 年前

        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 年前

          deleted by creator

    • JackGreenEarth@lemm.ee
      link
      fedilink
      arrow-up
      10
      ·
      2 年前

      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 年前

        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 年前

    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 年前

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

      • mvee@lemmy.ml
        link
        fedilink
        arrow-up
        3
        ·
        2 年前

        Exactly, just remove the os 😅

        • treesoid@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          2 年前

          os.del_universe()

          For quantom bogo sort

  • NorthWestWind@lemmy.world
    link
    fedilink
    arrow-up
    22
    ·
    2 年前

    laughs in linux

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

      os.remove("/bin/")

      • vettnerk@lemmy.ml
        link
        fedilink
        arrow-up
        26
        ·
        edit-2
        2 年前

        Permission Denied

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

          Real men execute everything as root

          • flashgnash@lemm.ee
            link
            fedilink
            arrow-up
            11
            ·
            2 年前

            You guys have normal user accounts?

        • whoareu@lemmy.ca
          link
          fedilink
          arrow-up
          5
          ·
          2 年前

          sudo python3 boom.py

          • vettnerk@lemmy.ml
            link
            fedilink
            arrow-up
            6
            ·
            edit-2
            2 年前

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

        • vkirlin@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          2 年前

          ~

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

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

        laughs in NixOS

  • jamesA
    link
    fedilink
    arrow-up
    21
    ·
    2 年前

    Permadeath programming, love it

  • Knusper@feddit.de
    link
    fedilink
    arrow-up
    17
    ·
    2 年前

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

    • Dave@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 年前

      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 年前

    This is the scorched earth approach to error handling

  • Morphit @feddit.uk
    link
    fedilink
    arrow-up
    15
    ·
    2 年前

  • speaker_hat@lemmy.one
    link
    fedilink
    arrow-up
    11
    ·
    2 年前

    rm -rf / and chill

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

    Works on my pc

    • clutchmatic@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      2 年前

      Only once, tho

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

        No one promised more ;)

  • LuckyCharmsNSoyMilk@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    9
    ·
    2 年前

    Survival mode programming

  • ProcurementCat@feddit.de
    link
    fedilink
    arrow-up
    9
    ·
    2 年前

    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 年前

    Container orchestrators hate this one simple trick!

  • AstralWeekends@lemm.ee
    link
    fedilink
    arrow-up
    5
    ·
    2 年前

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

  • JohnSaveourSocks@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    2 年前

    Russian Roulette: Programming Edition

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.

  • 278 users / day
  • 834 users / week
  • 1.83K users / month
  • 10.3K users / 6 months
  • 1 local subscriber
  • 35.6K subscribers
  • 1.7K Posts
  • 37.2K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org