724 karma · joined March 27, 2023
The linked fly.io article discusses why containers aren't a good fit for sandboxes that need persistent state and how sprites.dev addresses the challenges.
This is needed for sandboxes if you don't want to throw them away and start over when something goes wrong.
With sprites.dev you can create an additional checkpoint and then turn Claude Code (or your preferred agent) loose to do anything. Even if it burns down the sandbox you can just restore a checkpoint in about a second.
People aren't saying "I'm never using Claude Code again" just like they aren't saying "I'm never driving again". That's not what the post or most of the discussion is about.
Leave CC permission checks on or run in a sandbox. At a minimum, understand there are risks even if you haven't personally encountered them. See https://en.wikipedia.org/wiki/Faulty_generalization
Site: https://kubb.dev/
Seeing that flake.nix badge of complexity lets me know a project will be a nightmare to set up and will break every other week. It's usually right next to the Cargo.toml badge with 400 dependencies underneath.
Might as well rewrite all your scripts in Rust too while you're layering on unholy amounts of complexity.
> The shallow copy saves memory....
Versus not making a copy? A shallow copy of primitives still copies them and uses additional memory. Maybe there's some low-level optimization that makes it more efficient than that, but it's not relevant here. And there isn't any deep cloning happening in the example.
Might as well get rid of the complexity and instantiate a new Book class every time. And maybe stop shallow-copying class instances into new plain objects. It works for the example but has footguns.
Conveniently, there are other patterns on the site that would help you avoid creating an amalgamation of random merged class instances and objects.
The whole example is a mess.
In spite of that, there are plenty of reasonable use cases for singletons in many languages, including JavaScript. For example, ES Modules are effectively singletons. If you import the same module in multiple places, it only gets evaluated once.
Let's not turn the singleton pattern into forbidden knowledge.
[1]: https://www.patterns.dev/vanilla/singleton-pattern/#tradeoff...
It looks like `addBook` is using the spread operator, which always creates a shallow copy of the book instance properties, thus nullifying any benefits of the flyweight pattern. It also attaches extra arbitrary properties, but still assigns the result to a `book` variable. I don't think this is a great example.
[1]: https://www.patterns.dev/vanilla/flyweight-pattern/
Edit: I forgot to give you kudos for all the effort it must have taken to create all this content, and I appreciate that you're making it available for free.
BTW according to the study I linked, less than half of Starlink customers get service that meets the anemic FCC definition of broadband.
> It's massively changed the market dynamics. And I suspect Elon will push the pricing down further and further.
This is hand-wavey conjecture, not an argument. He might lower the pricing if he gets enough welfare for his companies from the government. But only if that's a requirement, otherwise no he's not going to lower any pricing. The monthly pricing for Starlink has gone up, not down.
That's not defining a color palette, which would probably go in CSS. You're describing a UI selector. It doesn't "define" anything related to implementing the functionality.
You're still missing the point of this entire thread. Go back and look at the top-level comment. I think there might be a language barrier here or something, so I'm going to bow out. Good luck.
The discussion is about site owners making light/dark mode configurable. Your first reply reads like you're saying that Wikipedia has an article for how to implement configurable light/dark mode on a site. I now think maybe you just meant "Here's how to change the setting on Wikipedia, it's so easy!" which still misses the point and is not easy for most people.
Maybe if you link to the Wikipedia page you're talking about that would help. I can only find variables like the above in documentation about templates and themes. That wouldn't be helpful anywhere outside of Wikipedia.
I'm sure there are still plenty of people who would appreciate a site toggle for dark mode with a theme of your choosing.
Also, just because they advertise "up to 305Mbps" doesn't mean everyone is getting that. A friend of mine with Starlink in the midwest gets about 100Mbps during off-hours. See <https://www.ookla.com/articles/starlink-us-performance-2025> - median speeds are typically less than 150Mbps.
Starlink also costs about 2x-4x as much per Mbps as 1Gbps service (at least where I am). I doubt they're going to suddenly offer 1Gbps speeds in the next year without changing their pricing. They'll add a new, more expensive plan.
Even 1Gbps Starlink (which would be more than 3x the current max speeds) is going to have other differences such as increased latency (they mention 30-40ms in one place, 25-100ms in another), more jitter, and lost signal sometimes during bad weather. Starlink also uses CGNAT which eliminates a bunch of use cases and introduces its own problems with certain apps and games.
They've had issues with capacity before where they wouldn't accept signups for some areas. Adding capacity involves launching more satellites.
Starlink isn't the ultimate solution to everyone's Internet access problems.
These days, any non-AI project that doesn't attempt to interject AI somehow is refreshing.