frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Just nuked 120 unused NPM deps from a Nx monorepo

https://johnjames.blog/posts/cleaning-house-in-nx-monorepo-how-i-removed-120-unused-deps-safely
27•birdculture•1h ago

Comments

juujian•1h ago
Not supposed to be a judgemental question. Not every repo has to be a labor of love for sure. But how do you get to that place where there are 120 unused dependencies? I'm sure there are many different pathways where things get a bit out of control. People doing the equivalent of pip freeze? Or (too) many cooks?
rtpg•59m ago
I have witnessed a lot of kinda spurious pinning going on. Or like "ok we need to fix the bounds for this transitive dependency for a bit" and then it just sticks around.

Over a decade that's once a month, which is a lot though!

I think sometimes people will hear advice like "pin your deps" and do a `pip freeze | requirements.lock.txt`, without really absorbing that pinning transitive dependencies like this is generally not what you want.

You want a lock file! But you tend to want transitive dependencies that aren't locked down to get upgraded when you upgrade your direct dependencies. But it's a subtlety that can get lost in the noise.

zdragnar•23m ago
1- I want my dependencies to define a range for the libraries that they work with, so we don't have 20 different versions of some common library because our dependencies are hyper specific

2- I want every install of my project- be it on a dev machine or deploy machine- to have the exact same versions of dependencies, including transitive ones. I don't want to deal with bugs caused by surprise version changes

3- if I upgrade a dependency or remove it, I want the transitive dependencies managed automatically. I don't want orphaned transitive dependencies. In fact, I don't even want to think about them at all other than know that they work and aren't adding bloat or security risks.

You need a package manager with more than a passing thought for handling lock files. For the longest time, npm wasn't it. I'd argue that it still isn't, because "npm install" should NOT be the command used for both "set up a project for the first time" and "add a new package". In the first case, I want a reproducible, deterministic result of a known state. In the second case, I want to modify the dependency graph, producing a new state.

ziml77•21m ago
I assure you that hearing "pin you dependencies" is not why people create a requirements file using pip freeze. It's simply because that has long been how people have said to generate a requirements file, because Python spent much of its life lacking proper project dependency management.

And now it's extremely hard to get people to stop. There's so much info out there on the internet that says to use pip freeze that people are going to continue to run into and continue to learn to use.

ipaddr•56m ago
The ecosystem is setup to encourage this type of pollution.
twodave•46m ago
In my experience it’s usually engineers who run install commands until it builds locally, then check in whatever they’ve got.
wging•24m ago
It sounds like they are counting transitive dependencies. If so, that means they deleted far fewer than 120 different lines in their own config to end up with that level of reduction.

Cursor Learn

https://cursor.com/learn
1•tortilla•5m ago•0 comments

Show HN: Eintercon – Global AI friendship experiment

https://www.eintercon.com/
1•abilafredkb•10m ago•0 comments

Show HN: Eintercon – AI friendship experiments across 200 countries

https://apps.apple.com/app/eintercon/id6738729123
1•abilafredkb•12m ago•0 comments

The Elusive Roots of Rosin Potatoes

https://bittersoutherner.com/feature/2022/the-elusive-roots-of-rosin-potatoes
1•moonka•12m ago•0 comments

America Isn't Pivoting to Natural Gas

https://www.distilled.earth/p/america-isnt-pivoting-to-natural
1•_delirium•18m ago•0 comments

Setting up a DIY router using Fedora 41 and an old PC

https://discussion.fedoraproject.org/t/setting-up-a-diy-router-using-fedora-41-and-an-old-pc/144121
1•sipofwater•28m ago•1 comments

Opal: Build, edit and share mini-AI apps using natural language

https://opal.withgoogle.com/landing/
1•thatxliner•32m ago•0 comments

Extreme branchless: Expr without GADTs or sum-types

https://gautier.difolco.dev/2025-09/extreme-branchless-expr-fields/
1•stevefan1999•33m ago•0 comments

Wan Animate – One-click AI text and image to video generation tool

https://wananimate.live/
1•easytube•34m ago•1 comments

F-Droid and Google's Developer Registration Decree

https://f-droid.org/2025/09/29/google-developer-registration-decree.html
5•gumby271•43m ago•1 comments

Show HN: Free developer-first OneNote alternative

https://app.janta.dev
1•Isaac-Westaway•49m ago•0 comments

Ways to Raise Brave Boys

https://www.outsideonline.com/culture/active-families/raise-brave-boys/
1•mooreds•51m ago•0 comments

Finding God in the App Store–millions turn to chatbots for guidance from on high

https://www.nytimes.com/2025/09/14/us/chatbot-god.html
1•bookofjoe•51m ago•1 comments

Show HN: Step-by-step RPG game on Telegram

1•pyxru•52m ago•0 comments

Pong Wars

https://pong-wars.koenvangilst.nl/
1•simonpure•53m ago•0 comments

A Deep Research Agent for Curating Vision Datasets

https://arxiv.org/abs/2509.22631
2•barthelomew•54m ago•0 comments

RubyGems (2006)

https://www.linuxjournal.com/article/8967
2•mooreds•56m ago•0 comments

Show HN: 4-model AI pipeline that handles 952 photo specs across 172 countries

https://visapics.org/
1•romanpodpriatov•1h ago•0 comments

Avoiding Common Pitfalls in Terraform Module Design

https://www.ricky-dev.com/coding/2025/09/terraform-pitfalls/
1•DigitallyBorn•1h ago•0 comments

Xi Is Chasing a Concession from Trump: Opposing Taiwan Independence

https://www.wsj.com/world/china/trump-xi-talks-china-taiwan-8ed82d1b
7•ivape•1h ago•2 comments

Larry Ellison predicts rise of the modern surveillance state

https://fortune.com/2024/09/17/oracle-larry-ellison-surveillance-state-police-ai/
3•mooreds•1h ago•1 comments

Take Care of Your Own Shadow Milk – Play Online Free

https://takecareofyourownshadowmilk.net
1•heihieih•1h ago•0 comments

In an era of AI slop, is it time for cultural snobbery to make a comeback?

https://www.theguardian.com/tv-and-radio/2025/sep/28/cultural-snobbery-too-much-studio-rogen-hous...
3•pseudolus•1h ago•1 comments

The workflow behind my 637-day journaling streak

https://www.njbrown.com/blog/73/
2•ntnbr•1h ago•0 comments

Rainer Weiss (/waɪs/ WYSSE, German: [VAɪs]; Sept 29, 1932 – Aug 25, 2025)

https://en.wikipedia.org/wiki/Rainer_Weiss
1•stmw•1h ago•1 comments

3 Years Later, Playdate Is Still Gaming's Best-Kept Secret

https://www.wired.com/story/three-years-on-playdate-is-still-gamings-best-kept-secret/
4•christophilus•1h ago•6 comments

IT³: Idempotent Test-Time Training

https://www.youtube.com/watch?v=eKGKpN8fFRM
1•E-Reverance•1h ago•0 comments

Polish Skier Climbs Everest and Skis Down Without Extra Oxygen

https://www.nytimes.com/2025/09/26/sports/andrzej-bargiel-mount-everest-oxygen-skiing.html
4•pseudolus•1h ago•3 comments

Reasoning LLM Errors Arise from Hallucinating Critical Problem Features

https://arxiv.org/abs/2505.12151
2•PaulHoule•1h ago•0 comments

Primer on FedEx's Distribution Network (2024)

https://ontheseams.substack.com/p/a-brief-primer-on-fedexs-distribution
33•hyperific•1h ago•0 comments