开发者
编程技术、框架工具、最佳实践
共 7156 篇 · 第 197/358 页
Apple announces significant price increases for MacBooks, iPads, more
Colossal and the US Government Are Creating an Endangered Species ‘BioVault’
The move comes as the Trump administration is trying to weaken the act that’s meant to protect endangered species from going extinct in the first place.
Apple just Increased Prices: here’s what’s changed
Mobile Web Computing Before Smartphones. (University of Liverpool, ~2010) [pdf]
RuView WiFi Repo Scam?
Found this YouTube video of these kids demoing the densepose repo. However, I believe there was a huge fuss about this being vibe-coded slop and not actually running. This video also seems super suspect as the wifi is only detecting him and not the cameraman or anything else. Has anyone got this Repo up and running? submitted by /u/Wonderful-Bass-8993 [link] [留言]
Type-Safe Env Vars Without Zod
Most TypeScript projects treat environment variables like second-class citizens. They're string | undefined everywhere, asserted with ! and parsed with parseInt() . TypeScript can't help because process.env is typed as Record<string, string | undefined> . Schema-based validation fixes this. But most solutions bring zod, which adds 50 KB to your bundle. CtroEnv does it with zero dependencies and 6.5 KB gzipped. How Inference Works The type system reads each validator's configuration at compile time: type InferredValue < V > = V extends Validator < infer T > ? V [ " metadata " ] extends { hasDefault : true } ? T // .default() → non-nullable : V [ " metadata " ] extends { optional : true } ? T | undefined // .optional() → nullable : T // required → guaranteed present : never This means the schema defines the type: const env = defineEnv ({ PORT : number (). port (). default ( 3000 ), // ^? number — default makes it always present DB_URL : string (). url (), // ^? string — required DEBUG : boolean (). optional (), // ^? boolean | undefined — optional NODE_ENV : pick ([ " dev " , " prod " , " staging " ] as const ), // ^? "dev" | "prod" | "staging" — exact union }) No interface Env { ... } . No z.infer<typeof Schema> . Add a new validator, and the type updates automatically. Default vs Optional vs Required The three states and their types: Declaration Type Runtime behavior string() string Required — throws if missing string().optional() `string \ undefined` string().default("x") string Falls back to "x" string().optional().default("x") string Default overrides optional TypeScript reflects this exactly. Optional gives you | undefined . Default removes it. The as const Requirement pick() needs as const to preserve literal types: pick ([ " dev " , " prod " ]) // type: string — widened pick ([ " dev " , " prod " ] as const ) // type: "dev" | "prod" — exact union Without as const , TypeScript widens the array to string[] and you lose the union. Exhaustive Checking With exact l
Regular expressions that work "everywhere"
OpenStreetMap running on an ESP32 with TypeScript and Canvas [video]
Google will open the Play Store to outside billing on June 30
Google will allow developers to offer alternative billing in the US, the UK and Europe starting on June 30.
Building a European Cloud Orchestration Platform within an Enterprise
Modern cloud deployments involve many tools with different lifecycles, creating a heavy burden on engineers. The Kubernetes ecosystem offers a unified Control Plane approach. Sharing best practices through tech talks and inner-source collaboration can create an engaged community and drive adoption. By Ben Linders
Dolphin Emulator Progress Release 2606
Social Fetch
Social media scraper API for every major platform Discussion | Link
Cloudflare Ships Agent Skills for Zero Trust Deployment and Migration
Cloudflare released the Cloudflare One stack, an open-source library of agent skills for planning, deploying, and managing Zero Trust environments. The skills include automated migration logic for Zscaler and Palo Alto Networks, the same logic used in Cloudflare's Descaler program that has moved enterprise customers in hours rather than months. By Steef-Jan Wiggers
Bringing Swift to the Apple ][
99 Prime Day Deals on Gear We Stand By, Up To 50% Off (2026)
We've gone from A to Z to find Amazon's best Prime Day deals on the gear worth owning.
We found a bug in the hyper HTTP library
The US Army Issued Ocarinas to Soldiers in World War II
DRAM Price Fixing Scandal
Opus: A Lament
submitted by /u/jonko_ds [link] [留言]