开发者
编程技术、框架工具、最佳实践
共 6725 篇 · 第 67/337 页
No Spanish Reading Crisis?
Codex scraped the ICM website and discovered 2026 Fields Medal winner list
9 Tips to Get More Out of Google Chat
There’s more to Google’s messaging app than you might realize.
Codex starts encrypting sub-agent prompts
Python Is So Slow. Can Julia Solve the Two-Language Problem?
submitted by /u/araujoms [link] [留言]
Can humans hibernate their way to Mars?
Australia Just Found a Way to Put Solar on Apartments [video]
Actegories
The great digital fatigue: How digital burnout is changing social media use
C3 0.8.2 a Modest Improvement
X's algorithm will finally prioritize replies from people you already follow
X has made a tweak to give your replies a boost in your friends' comment section.
This Luddite Puppet Hopes You’re Not Reading This on Your Smartphone
On this week’s episode of The Big Interview podcast, WIRED’s senior culture editor Manisha Krishnan talks to Gowanus about eschewing Big Tech, going outside, and rejection in the age of dating apps.
Google's Genkit Ships Agents API with Detached Turns and Human-in-the-Loop for TypeScript and Go
Google released the Genkit Agents API in preview for TypeScript and Go. The open-source framework packages message history, tool loops, streaming, and state persistence behind a single chat() interface. Detached turns let agents work after clients disconnect. Interruptible tools provide human-in-the-loop control with anti-forgery validation on resume. By Steef-Jan Wiggers
Making ServiceLoader usable: a provider factory
I keep coming back to java.util.ServiceLoader . I have used it to put a JSON layer behind a contract, so the core code carries no direct dependency on any particular JSON library and I can swap the implementation without touching callers. The same shape works for JWT handling, where the concrete library might be jose4j or another JOSE implementation, and you can easily find other decoupling use-cases. The motivation is always the same: the application should depend on a capability, not on a vendor. A while back I wrote about exactly that idea in Rediscovering Java ServiceLoader: Beyond Plugins and Into Capabilities , where the argument was to treat ServiceLoader as capability discovery rather than a plugin system. That piece hit the limitation everyone hits — the no-argument constructor — and worked around it with a default constructor plus a dynamic proxy that built the real object through a factory on each call. It works, but it is indirection bolted on after the fact, not a design. This post is the part I never pinned down back then: turning that workaround into a small, explicit pattern. The running example below is a mock payments system, with Stripe and PayPal specializations, because it is compact enough to show end to end. The JSON and JWT cases cited can be built with the same structure. The two limits ServiceLoader leaves you The first is the no-argument constructor. Whatever ServiceLoader instantiates must have a public, parameterless constructor. My StripePaymentService takes an API key, so it cannot be the class ServiceLoader loads — not unless I bolt on some init-after-construction step, which I would rather avoid. The second is selection, or rather the lack of it. ServiceLoader gives you every implementation it finds, in roughly classpath order. There is no id, nothing to prioritise on, and no way to ask whether a given one even applies in the current environment. With two backends on the classpath and only one configured, working out which to use is
Learn 7 common MongoDB query mistakes with simple find() examples, including $or, $in, nested fields, dates, and text search.
7 MongoDB Query Mistakes That Return the Wrong Results VisuaLeaf VisuaLeaf VisuaLeaf Follow Jul 14 7 MongoDB Query Mistakes That Return the Wrong Results # mongodb # coding # software # database 3 reactions Add Comment 5 min read
Making Software: How to make a font
Google bought all of a major solar farm's output to offset its dirty data center emissions
Google has struck a deal to purchase a major solar project's entire electrical output to offset its fossil fuel emissions.