I’ve heard people mention curl and imagemagick. Any others that you know about?

81 points
*

Left pad https://arstechnica.com/information-technology/2016/03/rage-quit-coder-unpublished-17-lines-of-javascript-and-broke-the-internet/

Had GPT summarize what happened.

The “left pad” incident refers to a controversy that arose in 2016 when a developer named Azer Koçulu removed his JavaScript package called “left-pad” from the NPM (Node Package Manager) registry. This caused a ripple effect, breaking numerous projects that relied on this package and highlighting the potential risks of relying on external dependencies. The incident sparked a debate about the stability and trustworthiness of the open-source ecosystem and led to discussions about best practices for managing dependencies in software development.

permalink
report
reply
17 points

This is the one I came to post about. The fact there’s a library for this is so stupid to me.

I feel like it demonstrates how npm and modules have probably to some degree gotten out of hand.

permalink
report
parent
reply
9 points

This famously broke builds at Facebook.

permalink
report
parent
reply
6 points

From memory the NPM blokes had to have a think about how they handle important packages because of that. Didn’t they revert the changes to left pad to ensure everything else didn’t break?

Fascinating to see the house of cards some of these solutions / libraries are built off

permalink
report
parent
reply
7 points

Yes. They added it back. The policy now is that you can’t remove packages that are depended on (or something to that extent, I don’t know the specifics).

permalink
report
parent
reply
3 points

Yeah I’m pretty sure Github themselves restored the package if I recall correctly

permalink
report
parent
reply
5 points

That’s always the one I’m thinking of when anyone mentions the xkcd.

npm is one crazy infrastructure.

permalink
report
parent
reply
72 points

Log4j was a fun one to watch unfold everywhere when things went haywire

permalink
report
reply
33 points

The neat thing about the log4j thing was even a cursory explanation of the vulnerability made anyone with a passing familiarity with security say, “Why the fuck would that even be a feature?!”

permalink
report
parent
reply
12 points

What was it?

permalink
report
parent
reply
8 points
*

Basically it involved parsing JNDI stuff which involved grabbing remote code (but that was a niche feature of JNDI in the Dev’s defense). Basically, you may think it is just something like variable substitution but can involve much crazier stuff.

Edit: and for more context, JNDI is typically a thing for getting a database connection stored on the application server. The idea being you just ask for “customer database” and don’t have to define the connection in the code. The server has it defined elsewhere. So in each environment it works the same. Basically glorified and standardized config file type of thing.

permalink
report
parent
reply
1 point

this is cool

permalink
report
parent
reply
11 points

Wait until you learn that PDFs support embedded Javascript.

permalink
report
parent
reply
2 points

??? What the what now?

permalink
report
parent
reply
16 points

That was not a fun week to be a developer.

permalink
report
parent
reply
23 points

As a non-java company developer at the time, I think our biggest challenge was explaining to everyone that Log4j didn’t affect us. It took a non-zero amount of effort because a lot of customers panicked. To be fair, it was also an industry where confidentiality is important.

permalink
report
parent
reply
7 points

Also a lot of people were pulling it transitively.

permalink
report
parent
reply
6 points

Oh man. I missed it by like a month. I graduated with my bachelors in December, and started in January. I was hearing horror stories from my new coworkers about how people had to cancel vacations to get stuff patched asap

permalink
report
parent
reply
4 points

It was if none of your code used log4j. I remember being very grateful that I had chosen java.util.logging and Logback for my Java logging needs.

permalink
report
parent
reply
3 points

Lol, yeah for us we didn’t own any of the code that used it but depended on server software made internally that did. At the time we managed our own hosts, so it was a long week of deployments.

permalink
report
parent
reply
6 points

That one was so annoying because you had to be using the log server to have any issues. If your network was locked down, the log server was disabled, or if you happened to be using a version that was from before the log server was added, then there were no issues. But clients just heard “log4j” and thought it was unsafe.

permalink
report
parent
reply
1 point

Couldn’t remember which logging library it was, thanks for mentioning it, it would have low-key bugged me all day.

permalink
report
parent
reply
70 points
*

Werner Koch, the guy who created, and who has maintained for 25 years now, pretty much all by himself, GnuPG, the modern email encryption replacement for PGP.

Just the other day, I realized I actually live just a few kms away from the guy, here in Germany … very tempted to reach out to him someday and actually buy him an actual coffee.

permalink
report
reply
2 points

That was the one I couldn’t remember, I got GPG and PGP confused but I remember it involved email encryption.

This guy was the reason that every security dev had those personal public keys clearly posted next to their email address on every announcement and blog post they ever released.

permalink
report
parent
reply
61 points

Sci-Hub anyone?

Alexandra Elbakyan manages this truly awesome source of scientific papers completely on her own. She got sued twice and lost, had to change the URL multiple times due to takedowns and only gets along by donations.

permalink
report
reply
19 points

It is a crime to humanity to lock knowledge behind a huge paywall. She does God’s work.

And it’s not like the actual scientists/academics support knowledge being locked away either, or profit from it.

permalink
report
parent
reply
5 points

shit, scihub is easier to use than the library, so we’re all grateful to her too.

permalink
report
parent
reply
10 points

She’s the best thing that’s happened to the s scientific publishing field. I’m no longer a student but I still enjoy reading scientific papers and I’ll be damned if I have to pay $20 per article (which doesn’t go to the authors) since I no longer have access to a library that maintains relationships with these big publishers.

permalink
report
parent
reply
47 points

cURL was one of these for a while (according to my limited understanding)

It was made in the 90s and it didn’t get commercial support until a few years ago.

permalink
report
reply

Programming

!programming@programming.dev

Create post

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Community stats

  • 3.1K

    Monthly active users

  • 1.8K

    Posts

  • 30K

    Comments