508
top 13 comments
sorted by: hot top controversial new old
[-] kamen@lemmy.world 54 points 1 year ago

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

[-] magic_lobster_party@kbin.social 28 points 1 year 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 9 points 1 year ago
[-] v1605@lemmy.world 33 points 1 year ago
[-] Feirdro@lemmy.world 10 points 1 year 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 13 points 1 year 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 6 points 1 year ago

Right, the “open” part of open source.

[-] DarkenLM@kbin.social 3 points 1 year 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 2 points 1 year 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@lemmy.jhjacobs.nl 8 points 1 year ago

That was a rather nice read :) thank you!

[-] milkjug@lemmy.world 5 points 1 year ago

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

[-] magic_lobster_party@kbin.social 20 points 1 year ago

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

[-] bjoern_tantau@swg-empire.de 9 points 1 year ago

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

this post was submitted on 05 Sep 2023
508 points (98.8% liked)

Programmer Humor

19572 readers
1575 users here now

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

founded 1 year ago
MODERATORS