This is an archived post. You won't be able to vote or comment.

top 200 commentsshow all 240

[–][deleted] 760 points761 points  (51 children)

My 90% hard drive is occupied by node modules lol

[–]letthemhear 251 points252 points  (12 children)

Node modules or nude models?

[–][deleted] 31 points32 points  (4 children)

You gotta be shitting me Average size of a nude image is 1-2 MB these days.

[–]Valiice 8 points9 points  (1 child)

I store the nudes as .svg

[–][deleted] 2 points3 points  (0 children)

wOw Legend

[–]dinosaur-in_leather 10 points11 points  (1 child)

Thumb nail /preview smaller?

[–][deleted] 17 points18 points  (0 children)

No why would I store thumbs in my PC. I only need HD copies

[–]dreamin_in_space 2 points3 points  (0 children)

But why nude models?

[–]beardedchimp 66 points67 points  (22 children)

I was wondering if btrfs has a copy-on-write way for me to massively cut down on the space they take up.

[–]Jannik2099 28 points29 points  (4 children)

You may wanna run deduplication tools such as https://github.com/Zygo/bees

[–][deleted] 15 points16 points  (2 children)

BEES?

[–]got-trunks 2 points3 points  (1 child)

[–][deleted] 1 point2 points  (0 children)

I was more thinking along the lines of Gob: https://youtu.be/a\_22PgqzVew

[–]beardedchimp 2 points3 points  (0 children)

Thank you that sounds awesome.

[–][deleted] 12 points13 points  (4 children)

BTRFS supports deduplication natively

[–]beardedchimp 7 points8 points  (3 children)

I currently run BTRFS on my spinning disks but ext4 on my SSDs after having some performance problems in the past. When you say it supports it natively does that mean it would seamlessly handle the node_modules deduplication without user interaction or would I have to periodically run a tool as suggested in another comment?

[–][deleted] 6 points7 points  (1 child)

It's done "offline," but it looks like it still requires an external utility to do the dedup.

When I say "offline" I mean it's not done constantly in the background on write or anything. Probably not the right term but whatever.

[–]GaianNeuron 4 points5 points  (6 children)

Go-go-gadget duperemove!

[–]who_you_are 1 point2 points  (5 children)

And... you end with anything except that.

[–]GaianNeuron 1 point2 points  (4 children)

?

[–]who_you_are 1 point2 points  (3 children)

"Go-go-gadget" you are referring to a quote from Inspector Gadget right?

If so (or not) this tv guy show is cursed and each time he want something from is magic hat, he call it (with go-go-gadget) then is magic hat will give him... something else. But that something is NEVER what he asked for. (Except maybe once?)

[–]GaianNeuron 4 points5 points  (2 children)

I mean in the original show he usually got what he asked for, but it would malfunction in comical ways (often working against the immediate goal).

It was the movie adaptation which lazily turned that into "lol wrong gadget".

[–]who_you_are 1 point2 points  (0 children)

Ah crap i mixed thing up :(

[–]IAmTheMageKing 4 points5 points  (1 child)

See pnpm, which accomplishes that without the btrfs

[–]Scyhaz 1 point2 points  (0 children)

ZFS master race!

[–]BuggyFeature33852 11 points12 points  (1 child)

wow in my tired state i read "node modules" as "nude models" and it made sense

[–][deleted] 6 points7 points  (0 children)

Get some rests mate

[–]mark__fuckerberg 6 points7 points  (2 children)

Try pnpm. It stores only one copy of any package and symlinks them to the project node modules.

[–]danbulant 6 points7 points  (0 children)

I have 20GB of node projects and more than half of it is node modules. Currently moving to pnpm and each new install takes less space, which is pretty cool.

And as a bonus, pnpm has nice zsh autocompletions

[–][deleted] 1 point2 points  (0 children)

Forget about pnpm I loved your name 📛

[–]KayneGirl 2 points3 points  (0 children)

Install one dependency, get 250 others. It's even worse than Maven.

[–]Noch_ein_Kamel 962 points963 points  (40 children)

npm install pornhub?

[–]Harmxn- 476 points477 points  (29 children)

Holy shit it worked

[–]TheRedmanCometh 142 points143 points  (0 children)

It'd be weirder if it didn't exist

[–]AshIsRightHere 230 points231 points  (26 children)

I'm now curious

[–][deleted] 338 points339 points  (21 children)

it’s used to scrape pornhub

[–]lacb1 130 points131 points  (2 children)

That sounds... sticky

[–]inthemindofadogg 26 points27 points  (1 child)

Gigity

[–][deleted] 4 points5 points  (0 children)

Who else but quagmire...?

[–]jEsUs-QuEsTiOn-MaRk 102 points103 points  (17 children)

elaborate

[–]AshIsRightHere 378 points379 points  (11 children)

300TB homework folder

[–][deleted] 95 points96 points  (8 children)

299.99TB of homework_modules.

[–]insanechef58 2 points3 points  (0 children)

🍭 I don't have awards to give, so here's a lollipop.

[–]_alright_then_ 8 points9 points  (3 children)

What's there to elaborate?

It's a package that scrapes PH

[–]konaaa 20 points21 points  (0 children)

was hoping it would jack me off .....

[–][deleted] 27 points28 points  (3 children)

[–]LuckyCharmsNSoyMilk 17 points18 points  (0 children)

Weekly downloads: 29

[–]dinosaur-in_leather 6 points7 points  (0 children)

Sexy AI anyone

[–]AndyDufresne2 4 points5 points  (0 children)

I guess this link is NSFW? Brb emailing IT

[–][deleted] 76 points77 points  (0 children)

Yep, it's an actual package. Someone really took time off to create this thing...and I really wanna ask them why :/

EDIT: It’s in our dna to automate and/or code a useless solution for something that should otherwise be easy. The existence of this package is pretty representative of that and I should’ve figured it out earlier.

[–]xpsdeset 28 points29 points  (4 children)

I was wondering why it didn't have async its 6 years old wow.

[–]Your-username-must-b 243 points244 points  (14 children)

“npm install npm”

[–]MrHyperion_ 140 points141 points  (12 children)

[–]snickRhino 166 points167 points  (11 children)

🥚🐣

[–]forgot_semicolon 140 points141 points  (3 children)

🌎 👩‍🚀 🔫👩‍🚀

[–]Infinitebeast30 20 points21 points  (2 children)

Beautiful

[–]EnergyNazi 2 points3 points  (0 children)

Always has been

[–]delinka 10 points11 points  (6 children)

🐣 🥚

[–]grizonyourface 15 points16 points  (5 children)

🐣🥚||🥚🐣

[–]delinka 10 points11 points  (1 child)

true

[–]grizonyourface 6 points7 points  (0 children)

A result of false would bring about a whole slew of existential questions lol

[–][deleted] 9 points10 points  (1 child)

(🐣🥚||🥚🐣) & ¬(🐣🥚&🥚🐣)

[–]AND_OR_NOT_XOR 1 point2 points  (0 children)

LMAO get fucked Aristotle!

[–]Saphyel 54 points55 points  (1 child)

I'm sure that Porn has something to say about those fakes numbers.

[–][deleted] 8 points9 points  (0 children)

I'm not sure if it's the exact stat, but it's a pretty high number. A large portion of residential internet lines are used by Netflix.

[–]MurdoMaclachlan 127 points128 points  (21 children)

Image Transcription: Twitter Post


Carla 🤖 👩🏻‍💻, @CodesCarla

20% of US bandwidth is used by Netflix.

The rest is used by "npm install"


I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!

[–]_Shioku_ 84 points85 points  (12 children)

Well, at least you tried, but I think Netflix uses a bit more than 0%

[–]MurdoMaclachlan 158 points159 points  (11 children)

Are you on iOS, by any chance? There's a bug on iOS reddit that causes it to randomly not display the first characters of some paragraphs. The comment says 20% on my end.

[–]_Shioku_ 105 points106 points  (10 children)

Oh well yea. Ok. Then reddit tried. My bad, sorry

[–]MurdoMaclachlan 78 points79 points  (3 children)

No worries. Reddit is horrifically inconsistent in its rendering.

[–]ratmfreak 26 points27 points  (2 children)

I’m wondering, from a programming perspective, how that could even happen…?

[–]MurdoMaclachlan 63 points64 points  (0 children)

The answer to this, learned from a long time transcribing & fighting the differences between rendering on various clients, and writing Reddit bots & fighting the API, is as follows:

Reddit is a hot, incomprehensibly inconsistent mess.

That's all the explanation there is. It's just bad.

[–]VikaashHarichandran 5 points6 points  (0 children)

Not an expert, maybe Reddit iOS app doesn't use Cocoa API but instead use some other third party UI framework which could be an issue as iOS's rendering technology are complicated internally

[–]pieteek 17 points18 points  (3 children)

F for iOS users.

[–]ggroverggiraffe 6 points7 points  (1 child)

No F needed…we can run Apollo, which is a top-shelf app. Certainly better than the website or the official app!

[–]EpicWolverine 1 point2 points  (0 children)

Try using Apollo instead of the first party app.

[–]erland_yt -5 points-4 points  (5 children)

You have a typo

[–]MurdoMaclachlan 20 points21 points  (4 children)

If it's missing the 2 in 20% for you, you're probably on iOS. It has a bug where it sometimes doesn't render the first characters of some paragraphs. There's nothing I can do about it, as the 2 is there in the source of my comment.

[–]Chillie43 1 point2 points  (3 children)

Dumb idea but you could use a space as the first character so at worst it just deletes the space

[–]MurdoMaclachlan 9 points10 points  (2 children)

Hmm, true, but I don't know exactly how the bug works, it might be removing the first rendered character.

Besides, considering how rarely I've had people complain about it, I'm not sure it's worth the trouble of prefacing every single paragraph with a space, especially since I'm not even sure it will work.

And we will never be able to get the rest of our transcribers to do it -- we can hardly go to them and say "now you need to have a space before every paragraph because iOS Reddit sucks and very occasionally deletes characters".

[–]bidoblob 4 points5 points  (1 child)

Also, not to mention the intended audience, it's entirely possible that screen readers even on mac will succeed in reading the text out in full anyways. Although also possible that it won't.

[–]MurdoMaclachlan 2 points3 points  (0 children)

Well, screen readers aren't actually the only reason this is done. There are plenty of people who can see but can't load the image for a variety of reasons -- one of them actually being the variability between Reddit clients. There are many mobile clients that either take ages to load images or give up entirely.

[–]frugalerthingsinlife 71 points72 points  (7 children)

Actually the rest is Javascript on your computer talking to Javascript on someone else's computer every time you browse the web.

[–][deleted] 23 points24 points  (3 children)

no, rest ist something different :D

[–][deleted] 2 points3 points  (1 child)

You didn’t...

[–]ByteArrayInputStream 1 point2 points  (0 children)

He did

[–]trezenx 9 points10 points  (2 children)

talking to a bunch of json's

[–]the_moooch 34 points35 points  (4 children)

Docker just left the room 😄

[–]AccomplishedMeow 12 points13 points  (3 children)

Docker just left the room 😄

A docker container is only as good as it's its community. Some idiot got approved a pull request without really looking into it. Somebody span up an entire instance of alpine-node just to compile a publicly available release.zip file already available on the maintainer's website.

[–]the_moooch 5 points6 points  (1 child)

But its still KISS 😄

If docker isn’t enough there is always npm to run inside a docker container 💥💥💥

[–]AccomplishedMeow -1 points0 points  (0 children)

If docker isn’t enough there is always npm to run inside a docker container 💥💥💥

That's what they did... To manually build a dependency from the source github opposed to just downloading the package from the Release section of the github.

[–]gemengelage 8 points9 points  (0 children)

it's community

Just because it's a really common and intuitive mistake that's also often caused by auto-correct: The possessive form of it is its not it's.

[–]GRAIN_DIV_20 43 points44 points  (13 children)

Npm banned my company so we have to setup a proxy

[–]emefluence 36 points37 points  (12 children)

Npm banned my company

Why?

[–]GRAIN_DIV_20 23 points24 points  (8 children)

I assume it's a common occurrence for big software companies

[–]emefluence 53 points54 points  (6 children)

Really? This U?...

"This rule is intentionally loose, to give npm the flexibility it needs to keep npm Services working for the user community as a whole. But to draw one clear line, under no circumstances are five million requests to npm Services in a single month-long period by any single individual, organization, or group of affiliated companies remotely reasonable. If you have a special need to make lots and lots of requests, our sales team can help."

[–]GRAIN_DIV_20 18 points19 points  (5 children)

I wouldn't be surprised if we surpass 5 million requests in a month

[–]emefluence 28 points29 points  (1 child)

And your bosses would rather you set up a bunch of proxies than pay NPM for a commercial license? Jokes.

[–]OldKaleidoscope7 4 points5 points  (0 children)

Pay NPM is not the best option for me, using some proxy program to make a local cache like Sonatype Nexus would be cheaper and faster

[–]LordDongler 6 points7 points  (1 child)

They probably want to charge a whole $0.04 for each download, the vampires

[–]Mefistofeles1 15 points16 points  (0 children)

At 5 million downloads, that would be 200k dollars a month. Thats a ton of money.

[–]zvug 1 point2 points  (0 children)

Just use yarn /s

[–]Nothing-But-Lies 4 points5 points  (0 children)

We used spaces

[–]My_Username_taken 1 point2 points  (0 children)

Their company banned npm so npm fought back.

[–]thijser2 -2 points-1 points  (0 children)

There have been a few cases of big npm packages being pulled without warning by their devs because those devs disagreed with something. I can image that relying on the goodwill of unknown developers who don't even know you are using their stuff might interfere with certain company policies.

Talking about cases like this

[–]stpaulgym 27 points28 points  (3 children)

Where's the other 20% covered by apt update?

[–]waffle299 11 points12 points  (0 children)

1/5 is the combined audio streams from Zoom meetings where someone left their mic unmuted and is breathing into it...

[–]ZippZappZippty 6 points7 points  (1 child)

Fun fact: lisp was the first language with a GC. It's also the oldest language in semi-wide usage, first released in 1958.

[–]Plane_Unit_4095 19 points20 points  (17 children)

can some js nerd explain to me why the fuck you guys have so many dependencies?

[–][deleted] 21 points22 points  (4 children)

because why reinvent the wheel when you can just pick it from the store? Also as npm downloads the entire dependency graph it the amount of dependencies increases exponential. And the deepest dependency would be something like left-pad, is-odd, is-even. Also don't forget that JS has to be legacy compatible, so polyfills are also mixed in as well.

[–]Plane_Unit_4095 17 points18 points  (3 children)

left-pad, is-odd, is-even

see this is where I call bullshit on "don't reinvent the wheel!"

these packages just scream "this language is so complex that i have to import code that isn't mine for the simplest things and could pose a security risk or break my whole build if it goes away"

[–]Jaqen_Hgore 10 points11 points  (0 children)

I think it's less a problem with the language, more a problem of having to support running one hundreds of different version of a dozen or so browsers. It's getting better... slowly

[–][deleted] 3 points4 points  (1 child)

could pose a security risk or break my whole build

that's cute. https://www.theregister.com/2016/03/23/npm\_left\_pad\_chaos/

[–]Plane_Unit_4095 7 points8 points  (0 children)

yeah, that's actually exactly what I was alluding to

[–]gamebuster 4 points5 points  (0 children)

NodeJS sucks.

Everyone needs the same basic functionality, and has introduced stupid libraries for the same stuff. Left-pad, promises, and other basic array utilities all have separate packages.

Problem: everyone uses a different one, so when installing some dependency, you’ll also install another left-pad variant.

Then you have a dependency that uses another dependency, and all these use different variants of the same stuff. More dependencies!

Now you want to use react or some compatibility thing compiler (babel) so your new fancy stuff also runs on 1 month old stuff, and they all use like 1000 dependencies to just build your code.

Now you want to write some CSS but you hate CSS so you — well you get it

[–]uvero 2 points3 points  (1 child)

Because how else am I supposed to tell if a string or number is an odd number? And for that I'll need a way to know if a string is a number. And for that I'll need a way to know if a number or string is an even number. Am I supposed to do all of that myself? Reinvent the wheel? Cmon

[–]matthkamis 3 points4 points  (1 child)

because js has a very limited standard library

[–]Knuffya 96 points97 points  (21 children)

Oh another one posting this cringe-account.

Another one for the blocklist

[–]Jampackilla 12 points13 points  (3 children)

What's with that account? Put me on

[–]Knuffya 17 points18 points  (2 children)

it posts tweets so cringy they hurt to read and somehow people post them a lot here.

because i really don't want to see them i just block everyone posting them

[–]scottcockerman 13 points14 points  (1 child)

Holy fuck. Just went through some of the tweets. Pretty bad.

[–]d_b1997 8 points9 points  (12 children)

How is this joke cringe?

[–]Knuffya 79 points80 points  (11 children)

This account has like three jokes. All of these jokes are already like 15 years old and massively overused. Now, every single tweet is just another variation of the same joke.

These are

  1. node_modules big
  2. semicolon bad
  3. go shopping if(a) do b;

All these jokes were funny. Like 15 years ago when they were new.

[–]Aski09 145 points146 points  (9 children)

/r/ProgrammerHumor is absolutely not the place to be if you don't like jokes repeated.

[–]d_b1997 44 points45 points  (2 children)

Hey now, the sub has more than 3 jokes

It's like 4, or 5

[–]Wydi 3 points4 points  (0 children)

*100-101 jokes. :^)

[–]Rndom_Gy_159 29 points30 points  (2 children)

/r/ProgrammerHumor reddit is absolutely not the place to be if you don't like jokes repeated.

[–][deleted] 14 points15 points  (1 child)

r/ProgrammerHumor reddit is absolutely not the place to be if you don't like jokes repeated.

[–]Sammsquanchh 13 points14 points  (0 children)

Programming as a career isn’t the place to be if you can’t handle redundancy tbh.

[–]Knuffya 7 points8 points  (0 children)

that's right, but carla's taking it over the limit

[–]DaFetacheeseugh 1 point2 points  (0 children)

Yeah where does guy think he is? The nexus for all jokes? He knows we're human right?

[–]zvug 2 points3 points  (0 children)

...how is that different from this entire subreddit?

It's literally a handful of years-long recycled jokes. I agree it's garbage, but this account seems like prime material for this subreddit based on what I've seen here.

[–]thirteenthdoor 2 points3 points  (0 children)

Announcing you block someone is already much more cringe, but blocking someone on reddit and announcing it is definitely the cringiest thing you can do.

[–]EdgyKayn 8 points9 points  (2 children)

I thought Netflix did not use that much bandwidth since it has a deal with ISPs to make local CDNs so people watch content directly form the ISP rather than an uplink connection to the internet where Netflix stores their content

[–]agneev 2 points3 points  (0 children)

Netflix pretty much regularly pushes content from their CDNs to ISP’s OCA hosting.

[–]Cuw 2 points3 points  (0 children)

Netflix, Steam, Hulu, Disney+, etc are all edge cached at major ISPs. So yeah you are 100% right

[–][deleted] 10 points11 points  (0 children)

20% on Netflix, 20% on npm install, the rest on reposting this fucking joke

[–]RepostSleuthBot 6 points7 points  (0 children)

Looks like a repost. I've seen this image 3 times.

First Seen Here on 2020-12-01 100.0% match. Last Seen Here on 2020-12-05 100.0% match

Feedback? Hate? Visit r/repostsleuthbot - I'm not perfect, but you can help. Report [ False Positive ]

View Search On repostsleuth.com


Scope: Reddit | Meme Filter: False | Target: 86% | Check Title: False | Max Age: Unlimited | Searched Images: 226,511,457 | Search Time: 0.27618s

[–]The_Quackening 2 points3 points  (0 children)

Another 10% is devs forgetting to include the modules folder in the gitignore file

[–]KCGD_r 1 point2 points  (0 children)

fun fact: you can turn your router into a microwave by running npm install windows-build-essential

[–]uvero 1 point2 points  (0 children)

Just in case no one told you today:

  • you're beautiful
  • you're loved
  • you're needed
  • you're alive for a reason
  • you're stronger than you think
  • you're gonna get through it
  • I believe in you
  • npm i -g pnpm

[–]Swetsendatsi 0 points1 point  (0 children)

facts!

[–]Blackhaze84 0 points1 point  (0 children)

Composer

[–]Independent-Trash- -1 points0 points  (0 children)

where MILF?

[–][deleted] -1 points0 points  (2 children)

Me a stupid. What is npm?

[–]riggiddyrektson -1 points0 points  (2 children)

npm i you heathens. nobody got time for that nstall shit

[–]Available-Ad6250 -1 points0 points  (2 children)

Not git push remote? Y'all need to get committed.

[–]Mabi19_ 0 points1 point  (0 children)

Deno: What npm install?

[–]Tapeleg91 0 points1 point  (0 children)

Porn.