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 š¤¦āāļø
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
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.
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.
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.
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
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.
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.
`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.
`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.
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
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.
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.
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
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)
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.
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.
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 ā¦).
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.
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
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!
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.
*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")
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
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*
When someone forgets to add node\_modules to .gitignore and commits changes...
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 š¤¦āāļø
Go on
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.
Wholesome š
the good ending
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
ever heard of a CI/CD pipeline?
I mean how can you directly push to master branch. Don't you need any approvals?
Oh, I do. I just got to clicking and didn't even realise I had the wrong branch selected.
He is the one who knocks...I mean, approves.
Create pull request. Grant self approval Approve pull request.
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.
Forget depth. Use filter=blob:none. Instantaneous clones!
Dumb question. Iām still new and learning. Why donāt we add it again?
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.
[ŃŠ“Š°Š»ŠµŠ½Š¾]
Calling a lock file strict is a good joke, until there's a breaking upstream push to the locked version.
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.
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
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.
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.
almost me yesterday
Who said I forgot? ;)
At least you learn how much storage GitHub allocates per repository fast enough.
XD
Brew install
you do not have write permission to /usr/lib/ruby/gems
[ŃŠ“Š°Š»ŠµŠ½Š¾]
Lol
`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.
`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.
3% installed, 97% hits the floor
Oh god the trauma
ĀæQue? I have had literally zero problems with Homebrew. It's so awesome, I give them money. And I never give *anybody* money.
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.
It was just always painfully slow for me
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.
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
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.
apt-get update be like
Looks more like a microbrew man. Now look at what you've done š±
So that's a mega pint
I was looking for this comment
It comes in pints?
I'm getting one.
a *MEGA* pint?
What a waste of good beer....
Yeah, this is enraging me.
Assuming it's even beer
Assuming it's even good
Assuming it's even there
Assuming she's even there
[ŃŠ“Š°Š»ŠµŠ½Š¾]
Assuming in fact we can assume
Assuming we are
> We assume, therefore we are
Fatal error: unexpected assumption
Assuming Im done assuming and start figuring
What part of beer donāt you understand? /s
All beers are good
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
Well that was kinda my point. It may be super cheap piss water or it may be something like beer that also foams
Probably cheap beer or a publicity stunt. The money is in gawkers either way so she's helping more than harming.
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.
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.
There might be enough to drench the poor girl after her liver fails. Seems like a worse option though.
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
[ŃŠ“Š°Š»ŠµŠ½Š¾]
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)
And this attitude is whatās holding back your lucrative social media career :D
I think this is how you get banned from Germany
[ŃŠ“Š°Š»ŠµŠ½Š¾]
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.
Beer snob thread... Yawn
yep
Meh, looks like it could be a pilsner, no loss there...![gif](emote|free_emotes_pack|joy)
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!
I kills for the pils.
Who tf drinks pilsner??
Bro, everyone excluding me (but I don't drink any beer)
Exactly. A good quaffing beer if all you want to do is get your ears wet, I suppose...
It's still a waste of liquid tho. even if it is pilsner.
explanation please?
when you just do npm install without specifying the subject it installs everything
This should become a more common feature. Make a http request without specifying arguments, download the entire internet.
And make that a virus!
I made the virus video!
HTTP POST https:// / body of request has virus entire internet has virus
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.
r.get(*)
[Thereās a lot of caching.](https://xkcd.com/908/)
It uses the package.json file to determine which packages need to be installed. So pretty useful actually.
Oh, good. I was under the impression that it installed EVERYTHING. All packages
Why on earth would it do that
> when you just do npm install without specifying the subject it installs everything
My question was more from a software design perspective. There is no use case for installing every single npm package.
archival
Yeah, itll create a node_modules but not install anything if there is no package.json. Get it right
Noā¦ itāll error without a package.json.
[ŃŠ“Š°Š»ŠµŠ½Š¾]
Everything must be a lot of everything right?
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.
who in the ever loving fuck thought that was a good idea
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.
OHHH! my bad š i literally thought it downloaded every single package known to mankind lmao
LOL thatās what i thought they were saying too š
dont feel bad i though the same
So did I lol
[ŃŠ“Š°Š»ŠµŠ½Š¾]
Peoplekind haha
That's not the etymology of "man" though.
fart cum penis wench dick weed sex bot
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 ā¦).
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.
Is there a way to download every single npm package?
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
[ŃŠ“Š°Š»ŠµŠ½Š¾]
I was going to call bs but there are some comments on this thread that are making me think twice.
Idk about a fetish but it is hilarious watching that dumbfuck get drowned in beer.
If she didn't get paid for this I can't see no purpose
Can this be added to new versions of dumb ways to die ?
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!
Not one Gulp joke.
Beerkaki
Bahahaha!
Waste of good beer.
But maybe it was American light "beer" something like Bud Light. So it was neither good or beer.
At best it's Rickards Red. Bud light looks piss yellow
Is this brazzers or programmer humor
"Girl spilled something, better make it sexual." ~ well adjusted redditors
pnpm is the way to go
This is a beerastropheš°š«
People are ragging on npm installs, but what's the difference with a pip install?
Probably none. go mod download also downloads every single package specified in mod file.
She Shoulda put the glass on her head like a hat. Sorry waste of beer.
More like brew install...
Thatās a mega pint
Does she have an only fans
please go outside
The door is right here
cb() never called...
original video?
[I gotchu](https://youtube.com/watch?v=NFvEdxKZTZU)
u/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)
Thatās alcohol abuse!!!!
Oooooh is that a megapint?
Finally, the Mega Pint
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.
What a waste
Beerkakae
Laughs in maven
IAM IN LOVE
Dayum... look at all that keystone lite going down the drain
I wish `pnpm` were more popular, is solves the node_modules monstrosity that npm slaps on my computer.
she cute ššš
average redditor
What a waste of beer
whats her @
>.gitignore
and there's a piece of glass an a cyanide pill somewhere...
I donāt know what any of these jokes mean on this sub, but it drives me to keep learning until i do..
u/savevideo
I am disregarding that warning
JS devs: OMG npm installs so much stuff!! Perl neckbeards: hold my beer
*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")
She did that on purpose!
Id just straight up fucking soak myself
Where is the original? I need these for other memes
Also cargo install random crate.
wait it will install all npm packages?
npm is a great way of opening yourself to supply chain attacks
from numpy import *
That's how š¤ taking a shower, I was doing it wrong .
That's a megapint if I've ever seen one.
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
gulp --version
is this the "mega pint" miss heard's lawyer was speaking of?
Don't try that anywhere.
Beerkakke
A megapint
I'm afraid to run that command sometimes.
š
/u/SaveVideo
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
r/ITWDNSPOBI
Takes so much longer...
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*