MTGZone
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
alphacyberranger@sh.itjust.works to Programmer Humor@programming.dev · 2 years ago

What could possibly go wrong

sh.itjust.works

message-square
13
fedilink
508

What could possibly go wrong

sh.itjust.works

alphacyberranger@sh.itjust.works to Programmer Humor@programming.dev · 2 years ago
message-square
13
fedilink
alert-triangle
You must log in or register to comment.
  • kamen@lemmy.world
    link
    fedilink
    arrow-up
    54
    ·
    2 years ago

    Left pad is a good example of why you shouldn’t.

    • magic_lobster_party@kbin.social
      link
      fedilink
      arrow-up
      28
      ·
      2 years ago

      Event stream as well. TL;DR: popular npm library get infested with Bitcoin stealing code.

      https://blog.npmjs.org/post/180565383195/details-about-the-event-stream-incident

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

      can you elaborate

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

        https://qz.com/646467/how-one-programmer-broke-the-internet-by-deleting-a-tiny-piece-of-code

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

          This was excellent, but conveniently left off any discussion that npm can “un-un-publish” a programmer’s code against their wishes, and apparently without repercussions?

          Fuck npm, I guess.

          • mexicancartel@lemmy.dbzer0.com
            link
            fedilink
            English
            arrow-up
            13
            ·
            2 years ago

            Absolutely they can un-unpublish since the programmer has given everyone the rights to use his code wherever they want, with its open license. Npm can actually use the older version of the code and give it to everyone. Its actually a good thing

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

              Right, the “open” part of open source.

          • DarkenLM@kbin.social
            link
            fedilink
            arrow-up
            3
            ·
            2 years ago

            Thank fuck for that, cause if they didn’t faker.js and node-ipc would have caused a lot of trouble, with the developers adding malware to a new version and later deleting the entire packages, breaking tons of projects. And those were everything but small packages.

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

            All for the greater good, especially if it’s the choice between one guy’s desire to nuke their own code VS tens / hundreds of thousands of projects that depend on it.

        • Johannes Jacobs@lemmy.jhjacobs.nl
          link
          fedilink
          arrow-up
          8
          ·
          2 years ago

          That was a rather nice read :) thank you!

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

          Thank you for sharing this. I learn something new everyday, much appreciated.

  • magic_lobster_party@kbin.social
    link
    fedilink
    arrow-up
    20
    ·
    2 years ago

    It’s all fine and dandy, until the package one day prevents you from upgrading some other package.

  • Björn Tantau@swg-empire.de
    link
    fedilink
    arrow-up
    9
    ·
    2 years ago

    Well, how else would I add the Konami code for desktop and touchscreen devices?

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.

  • 2.33K users / day
  • 5.27K users / week
  • 9.2K users / month
  • 17.9K users / 6 months
  • 4 local subscribers
  • 23.2K subscribers
  • 1.39K Posts
  • 50.8K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org