3,626 karma · joined December 27, 2018
But okay, let's go further and use git submodules so that package.json is out of the picture. Even in that case we have the same problem.
Or, let's go even further and vendor the dependency so it is now copied into our source code. Even in that case too, we still have the same problem.
The dependency has been malicious all along, so if we use it in any way the game is already over.
Say more?
This installs into temp dirs and cleans it all up when you disconnect.
Personally, my old-man solution to this problem is different: always roll with defaults even if you don't like them, and don't use aliases. Not for everyone, but I can ssh into any random box and not be flailing about.
Even with OP's neat solution, it's not really going to work when you have to go through a jump box, or have to connect with a serial connection or some enterprise audit loggable ssh wrapper, etc
It seems all options have major trade-offs. We can host on big social media and lose all that control and independence. We can pay for outsized infrastructure just to feed the scrapers, but the cost may actually be prohibitive, and seems such a waste to begin with. We can move as much as possible SSG and put it all behind cloudflare, but this comes with vendor lock in and just isn't architecturally feasible in many applications. We can do real "verified identities" for bots, and just let through the ones we know and like, but this only perpetuates corporate control and makes healthy upstart competition (like Kagi) much more difficult.
So, what are we to do?
I was thinking about sqlite's test landscape as described here, in relation to simonw's recent writing about porting/recreating the justHTML engine from python to js via codex, nearly "automatically" with just a prompt and light steering.
And yet, as the industry grew and all sorts of people from all sorts of backgrounds converged in this space, the tolerance and appetite for funky/terse waned in favor of explicit/verbose/accessible. It's probably for the better in the end, but it did feel a little bit like the mom-and-pop store on the corner that had weird pickled things at the register and a meemaw in the back got replaced by a generic Circle K with a lesser soul.
Do these people have no actual work to do? Refer to legal if you really feel compelled, and just move on...
Tape? The fix is to add some tape? At least it's free...
Especially with the rise of AI, the dystopian future of war is clearer than ever. Wherein no longer do masses of humans need to believe in the cause enough to risk their own life. Soon enough, very powerful people lacking in compassion will be able to just type, "dispatch a fleet of drones in take-no-prisoners mode to seize control of $region" into the War app on their phone, and it will be done.
The fishing nets are creative for this moment, but in no way any sort of robust sustainable defense...
As far as government expecting you to interface with them using a computer, I loathe this trend. And of course it's infinitely worse if they require a specific proprietary platform like iOS or Android. But I don't think this is about that.
Maybe I'm naive, and I am definitely uncertain about how all this AI craziness is going to break -- whether empowering everyone or advancing ultra corporate dystopia. But do we think our government is gearing up to take our laptops away?
I learned a TON in the 80s as a kid by rummaging around with a retired Kaypro II running CP/M, breaking stuff by accident and fixing, and trying to hack the few games it had...