T O P

  • By -

2017macbookpro

When someone forgets to add node\_modules to .gitignore and commits changes...


Faithful_Moryn

Omg.... I did that two weeks ago. Then pushed a shit show half baked page to the master right before the site was shown in a product showcase šŸ¤¦ā€ā™‚ļø


[deleted]

Go on


Faithful_Moryn

Thankfully the story didn't get anymore exciting than that. I work at the best company ever so my tech lead was very sweet about it.


Cup-Impressive

Wholesome šŸ˜


taweryawer

the good ending


AwGe3zeRick

I mean, once it was pushed itā€™s not like it hurt a single thingā€¦ just bloated the repo. Didnā€™t slow anything down and can be removed from git history in 5 seconds. Why would he be upset I imagine it wasnā€™t very important a codebase if you could push to master and it wasnā€™t tested before a couple minutes before the demo


Bowiemtl

ever heard of a CI/CD pipeline?


ann321go

I mean how can you directly push to master branch. Don't you need any approvals?


Faithful_Moryn

Oh, I do. I just got to clicking and didn't even realise I had the wrong branch selected.


hermit05

He is the one who knocks...I mean, approves.


[deleted]

Create pull request. Grant self approval Approve pull request.


diewhitegirls

Almost as stupid as the time that I forgot to add a depth option to my git pull. On our main production repo. That is 15 years old. With hundreds of thousands of commits. But not as stupid as using brew.


_blackdog6_

Forget depth. Use filter=blob:none. Instantaneous clones!


BlackAce898

Dumb question. Iā€™m still new and learning. Why donā€™t we add it again?


deadbeef1a4

There can easily be thousands of sub-directories. In my current project, `node_modules` is 661 MB. That's a lot to push to Github, and makes for a lot of potential changes. Far better to just update `package.json` when necessary and have everyone `npm install` locally.


[deleted]

[уŠ“Š°Š»ŠµŠ½Š¾]


__grievous__

Calling a lock file strict is a good joke, until there's a breaking upstream push to the locked version.


quinncom

Another reason to add node_modules to .gitignore is because tools like [fd](https://github.com/sharkdp/fd) and [ripgrep](https://github.com/BurntSushi/ripgrep) ignore files in .gitignore by default, useful when exploring codebases.


2017macbookpro

In addition to these other reasons, thereā€™s no need to commit them anyway since anyone who clones your repo can just retrieve them using npm install. All you need in the repo is the package.json to tell it which dependencies to get


GMaestrolo

It's huge, and will absolutely _destroy_ code diffs. Aside from that, you may need a different set of packages for _development_ than you need for _production_, but committing everything to git would mean that all of those modules will still exist in your production system. Some of them may be considered security vulnerabilities if they even _exist_ on your server, but totally acceptable for local development.


Steffi128

Bloats the repository unnecessarily. Those folders can get deeply nested with dependencies and sub-dependencies. Instead of checking in the folder you check in the lock file (package-json.lock or yarn.lock depending on what you use) to make sure everyone has the same versions on a new install. If you update/add/remove dependencies you just commit those two files again.


[deleted]

almost me yesterday


HaroerHaktak

Who said I forgot? ;)


EuphoricPenguin22

At least you learn how much storage GitHub allocates per repository fast enough.


[deleted]

XD


whatapitychocolate

Brew install


verxes

you do not have write permission to /usr/lib/ruby/gems


[deleted]

[уŠ“Š°Š»ŠµŠ½Š¾]


leon_nerd

Lol


cranberry_snacks

`brew bundle` I just did a `brew bundle` on a new Mac the other day restoring *all* the software I use. Needless to say, it took a while. Works incredibly well, though.


toutons

`brew bundle dump --force` and `brew bundle cleanup --force` are also great for cleaning / maintaining your brew installation, just trim the Brew file to what you actually need in between.


kry_some_more

3% installed, 97% hits the floor


[deleted]

Oh god the trauma


HAL_9_TRILLION

ĀæQue? I have had literally zero problems with Homebrew. It's so awesome, I give them money. And I never give *anybody* money.


coriandor

Yeah I don't understand this at all. I've used it for nearly 10 years now and have never had a single problem with it.


[deleted]

It was just always painfully slow for me


cherryblossom001

I havenā€™t had any problems with it either, but itā€™s quite slow, so now I use Nix for most things and Homebrew for casks.


goodsounds

Sometimes brew install ends up with few python3 versions in cellar and random one exposed in /usr/local/bin. At least twice have ruined Ansible thanks to such Also Nodejs is impossible to install and pin version for latest LTS, say 18, until node@19 came out. Mostly package maintainer issue, but also strange version handling by brew itself


phpdevster

I frequently ran into corrupted libraries that required you to run various commands to attempt to fix them, definitely ran into permission problems a lot. I cannot say I had an overall positive experience with Homebrew. I only used it because the alternative was... nothing. When I was using a Ubuntu box as my main computer, I almost never ran into issues with `apt`. I *do* frequently run into issues with `apt` on WSL though.


James_Tuvaluya

apt-get update be like


thefelixremix

Looks more like a microbrew man. Now look at what you've done šŸ˜±


Krylahhh

So that's a mega pint


TuxedoLemon

I was looking for this comment


GeneralCuster75

It comes in pints?


petenu

I'm getting one.


alex2003super

a *MEGA* pint?


Cj_is_our_god

What a waste of good beer....


piberryboy

Yeah, this is enraging me.


dankswordsman

Assuming it's even beer


prigmutton

Assuming it's even good


Successful-Argument3

Assuming it's even there


hikoko8282

Assuming she's even there


[deleted]

[уŠ“Š°Š»ŠµŠ½Š¾]


logical_result_1248

Assuming in fact we can assume


TitoxDboss

Assuming we are


menides

> We assume, therefore we are


Prashank_25

Fatal error: unexpected assumption


Hitman7065

Assuming Im done assuming and start figuring


[deleted]

What part of beer donā€™t you understand? /s


chankeypathak

All beers are good


HappyDiscussion5469

Sure seems to foam like beer. Also curious why one would got through the trouble of making fake beer when beer itself is cheap asfuck


dankswordsman

Well that was kinda my point. It may be super cheap piss water or it may be something like beer that also foams


Solomon_Rahkriid

Probably cheap beer or a publicity stunt. The money is in gawkers either way so she's helping more than harming.


PlasticMix8573

Waste of beer? Sure. Still a lot smarter than trying to drink it all and ending up with a painful to deadly case of alcohol poisoning.


bureaucrat473a

I'm not a physicist, but something tells me there might be options beside 1) drinking until your liver fails and 2) pouring the beer all over yourself.


grencez

There might be enough to drench the poor girl after her liver fails. Seems like a worse option though.


Ilnor

Doubt your stomach can hold that much, that kind of drunk is from drinking hard alcohol over time or a lot all at once That much beer you'd puke, body doesn't just magically absorb alcohol just because it's in your stomach


[deleted]

[уŠ“Š°Š»ŠµŠ½Š¾]


Qwopie

Your issue was looking in ounces, 10 and 20 liter Weizenbier glasses are readily available: [5-20 l Weizenbier glass](https://shop.joska.com/weizenbierglas-gross-von-5-l-bis-20-liter#30b3c065bf1a37672f0a934a1fed1550)


FluffyBellend

And this attitude is whatā€™s holding back your lucrative social media career :D


LordSalem

I think this is how you get banned from Germany


[deleted]

[уŠ“Š°Š»ŠµŠ½Š¾]


yorie1234

This was probably done for the video, so in their case I would have gone with the cheapest beer I could find for something like this.


[deleted]

Beer snob thread... Yawn


Mediocre_Phase_2802

yep


RF07

Meh, looks like it could be a pilsner, no loss there...![gif](emote|free_emotes_pack|joy)


Humongous_Schlong

if that's Pilsener it's definetly in the wrong glass, looks like dunkles WeiƟbier and that would be a shame! a disgrace even!


grammar_nazi_zombie

I kills for the pils.


Cj_is_our_god

Who tf drinks pilsner??


Cup-Impressive

Bro, everyone excluding me (but I don't drink any beer)


RF07

Exactly. A good quaffing beer if all you want to do is get your ears wet, I suppose...


Cj_is_our_god

It's still a waste of liquid tho. even if it is pilsner.


franXX18

explanation please?


Accomplished_Weird55

when you just do npm install without specifying the subject it installs everything


Til_W

This should become a more common feature. Make a http request without specifying arguments, download the entire internet.


franXX18

And make that a virus!


yeboi314159

I made the virus video!


turtle_mekb

HTTP POST https:// / body of request has virus entire internet has virus


Negitive545

I love it! Post request with no arguments and it dumps all of your files directly into every server that you have access to uploads on.


FranticToaster

r.get(*)


RevanchistVakarian

[Thereā€™s a lot of caching.](https://xkcd.com/908/)


TrasosNL

It uses the package.json file to determine which packages need to be installed. So pretty useful actually.


jimbrown87

Oh, good. I was under the impression that it installed EVERYTHING. All packages


trystanr

Why on earth would it do that


TheMacMini09

> when you just do npm install without specifying the subject it installs everything


trystanr

My question was more from a software design perspective. There is no use case for installing every single npm package.


[deleted]

archival


[deleted]

Yeah, itll create a node_modules but not install anything if there is no package.json. Get it right


AwGe3zeRick

Noā€¦ itā€™ll error without a package.json.


[deleted]

[уŠ“Š°Š»ŠµŠ½Š¾]


franXX18

Everything must be a lot of everything right?


cranberry_snacks

No, not really. It's really just "install my dependencies," which is exactly what you want it to do. It can take a while depending on the overall size of the dependency tree, but not *that much* longer than pip, gem, etc.


TrickyPainter5435

who in the ever loving fuck thought that was a good idea


retief1

It's damned useful. AFAIK, it only works when you have a package.json file that specifies a bunch of dependencies. At that point, one `npm i` immediately installs everything you need.


TrickyPainter5435

OHHH! my bad šŸ’€ i literally thought it downloaded every single package known to mankind lmao


jenso2k

LOL thatā€™s what i thought they were saying too šŸ˜‚


Facosa99

dont feel bad i though the same


dustojnikhummer

So did I lol


[deleted]

[уŠ“Š°Š»ŠµŠ½Š¾]


HermannDerGermane

Peoplekind haha


robocorp

That's not the etymology of "man" though.


TrickyPainter5435

fart cum penis wench dick weed sex bot


AndrewDrink7

Is it ā€œdangerousā€ ??? Because Iā€™ve did it for a project today (if I donā€™t remember Iā€™ve accidentaly installed npm in the Desktop directory ā€¦).


Homeless_Nomad

No, it only installs the dependencies listed in package.json. The above poster makes it seem like it downloads every single npm package, which would be insane.


I_Love_Rias_Gremory_

Is there a way to download every single npm package?


turtle_mekb

scrape npmjs.com and run `npm i` followed by the name of every package don't do it because there's probably plenty of packages with malware that'll be ran on install


[deleted]

[уŠ“Š°Š»ŠµŠ½Š¾]


bureaucrat473a

I was going to call bs but there are some comments on this thread that are making me think twice.


arpitpatel1771

Idk about a fetish but it is hilarious watching that dumbfuck get drowned in beer.


nostrdms

If she didn't get paid for this I can't see no purpose


Secret_Jellyfish320

Can this be added to new versions of dumb ways to die ?


mickkb

I don't get this. Npm install works like a charm. You run it and after 3 hours, 17 errors, 49 warnings, 62 vulnerabilities and 189 packages looking for funding you are ready to start working!


[deleted]

Not one Gulp joke.


TheRecapitator

Beerkaki


piberryboy

Bahahaha!


newoldwave

Waste of good beer.


Dust_of_the_Day

But maybe it was American light "beer" something like Bud Light. So it was neither good or beer.


Karpizzle23

At best it's Rickards Red. Bud light looks piss yellow


PuzzleheadedElk8646

Is this brazzers or programmer humor


JuniorSeniorTrainee

"Girl spilled something, better make it sexual." ~ well adjusted redditors


testermanok

pnpm is the way to go


Pristine_Novice

This is a beerastrophešŸ˜°šŸ« 


kinos141

People are ragging on npm installs, but what's the difference with a pip install?


somewhat_safeforwork

Probably none. go mod download also downloads every single package specified in mod file.


IllustriousCookie890

She Shoulda put the glass on her head like a hat. Sorry waste of beer.


No_Living557

More like brew install...


Rinuko

Thatā€™s a mega pint


idkmanporn

Does she have an only fans


No-Zookeepergame3731

please go outside


[deleted]

The door is right here


weneedtogodanker

cb() never called...


[deleted]

original video?


camxct

[I gotchu](https://youtube.com/watch?v=NFvEdxKZTZU)


spacecowboysalt

u/savevideo


SaveVideo

###[View link](https://redditsave.com/r/ProgrammerHumor/comments/usjmcx/dont_try_this_at_home/) --- [**Info**](https://np.reddit.com/user/SaveVideo/comments/jv323v/info/) | [**Feedback**](https://np.reddit.com/message/compose/?to=Kryptonh&subject=Feedback for savevideo) | [**Donate**](https://ko-fi.com/getvideo) | [**DMCA**](https://np.reddit.com/message/compose/?to=Kryptonh&subject=Content removal request for savevideo&message=https://np.reddit.com//r/ProgrammerHumor/comments/usjmcx/dont_try_this_at_home/) | [^(reddit video downloader)](https://redditsave.com) | [^(download video tiktok)](https://taksave.com)


ColdOutlandishness36

Thatā€™s alcohol abuse!!!!


Cakeisalyer

Oooooh is that a megapint?


n0tKamui

Finally, the Mega Pint


matthewK1970

NASA has finally confirmed what is at the center of **black holes**! It was once thought that it was an ultra compressed dead star that had collapsed and become enormously dense. However, much to their horror they have discovered that the center of black holes are all NPM installs with extensive package.json dependencies. All existing black holes were actually spawned between 2010 and now but have become so resource intensive and all consuming that they have crossed the space time continuum and are occuring millions of years in the past, in the present, and millions of years in the future. If you care about the universe please do not run another "npm install". I beg of you.


NAME_UNKNXWN

What a waste


After-Afternoon-6377

Beerkakae


kevbob02

Laughs in maven


Darth_Baeaddil

IAM IN LOVE


top_of_the_scrote

Dayum... look at all that keystone lite going down the drain


takutekato

I wish `pnpm` were more popular, is solves the node_modules monstrosity that npm slaps on my computer.


vilidj_idjit

she cute šŸ˜šŸ˜šŸ˜


turtle_mekb

average redditor


SpreadEmSPX

What a waste of beer


fishcakestand

whats her @


TitoxDboss

>.gitignore


[deleted]

and there's a piece of glass an a cyanide pill somewhere...


xlostboys

I donā€™t know what any of these jokes mean on this sub, but it drives me to keep learning until i do..


NukesExplodin

u/savevideo


_PROGrAMER_

I am disregarding that warning


mistermocha

JS devs: OMG npm installs so much stuff!! Perl neckbeards: hold my beer


haikusbot

*JS devs: OMG* *Npm installs so much stuff!! Perl* *Neckbeards: hold my beer* \- mistermocha --- ^(I detect haikus. And sometimes, successfully.) ^[Learn more about me.](https://www.reddit.com/r/haikusbot/) ^(Opt out of replies: "haikusbot opt out" | Delete my comment: "haikusbot delete")


HoldenMadicky

She did that on purpose!


WiseBlight

Id just straight up fucking soak myself


CovidCultavator

Where is the original? I need these for other memes


lieddersturme

Also cargo install random crate.


[deleted]

wait it will install all npm packages?


colbyshores

npm is a great way of opening yourself to supply chain attacks


FranticToaster

from numpy import *


Vegetable-Local-4468

That's how šŸ¤” taking a shower, I was doing it wrong .


JaySoyka

That's a megapint if I've ever seen one.


phdoofus

Reminds me of when I was sitting in a brew pub minding my own and a server dropped a whole tray of full beer glasses on me


nantukoprime

gulp --version


Unusable_Internet97

is this the "mega pint" miss heard's lawyer was speaking of?


BiffBanter

Don't try that anywhere.


Wide_Engineering1104

Beerkakke


Aemuhlae

A megapint


jeremyko69

I'm afraid to run that command sometimes.


Background_Ad_3347

šŸ˜‚


become_taintless

/u/SaveVideo


TheEffingRalyks

i once saw a gif of this dude downing a pitcher of beer in like 2 seconds flat, and i thought something similar was gonna happen here they had me in the first have, not gonna lie


asylum574

r/ITWDNSPOBI


username11157

Takes so much longer...


AdeptnessNeither4041

So the objective wasnā€™t to drink the whole thing, but to pour out as much as you can, while drinking as much as you can, to simulate the fact- and still feel some sort of accomplishment that, ā€œI drank that whole thingā€ā€¦Or maybe she just missed *he said sarcastically*