frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Patterns for Defensive Programming in Rust

https://corrode.dev/blog/defensive-programming/
39•PaulHoule•2h ago

Comments

empath75•41m ago
This is one of the best Rust articles I've ever read. It's obviously from experience and covers a lot of _business logic_ foot guns that Rust doesn't typically protect you against without a little bit of careful coding that allows the compiler to help you.

So many rust articles are focused on people doing dark sorcery with "unsafe", and this is just normal every day api design, which is far more practical for most people.

brohee•33m ago
The very useful TryFrom trait landed only in 1.34, so hopefully the code using unwrap_or_else() in From impl predates that...

Actually the From trait documentation is now extremely clear about when to implement it (https://doc.rust-lang.org/std/convert/trait.From.html#when-t...)

rolandog•18m ago
As someone unfamiliar with Rust (yet! it's on my ever growing list of things I'd like to absorb into my brain), unwrap_or_else() sounds like part of the "What You See Is What I Threatened the Computer To Do" paradigm.
Y_Y•4m ago
> INTERCAL has many other features designed to make it even more aesthetically unpleasing to the programmer: it uses statements such as "READ OUT", "IGNORE", "FORGET", and modifiers such as "PLEASE". This last keyword provides two reasons for the program's rejection by the compiler: if "PLEASE" does not appear often enough, the program is considered insufficiently polite, and the error message says this; if it appears too often, the program could be rejected as excessively polite.

Netflix to Acquire Warner Bros

https://about.netflix.com/en/news/netflix-to-acquire-warner-bros
1028•meetpateltech•6h ago•845 comments

Shingles vaccination prevented or delayed dementia

https://www.cell.com/cell/fulltext/S0092-8674(25)01256-5
92•Archelaos•1h ago•31 comments

I'm Peter Roberts, immigration attorney who does work for YC and startups. AMA

79•proberts•2h ago•67 comments

Cloudflare outage on December 5, 2025

https://blog.cloudflare.com/5-december-2025-outage/
307•meetpateltech•3h ago•187 comments

Synadia and TigerBeetle Pledge $512,000 to the Zig Software Foundation

https://tigerbeetle.com/blog/2025-10-25-synadia-and-tigerbeetle-pledge-512k-to-the-zig-software-f...
30•cratermoon•2h ago•10 comments

Making RSS More Fun

https://matduggan.com/making-rss-more-fun/
125•salmon•5h ago•66 comments

Patterns for Defensive Programming in Rust

https://corrode.dev/blog/defensive-programming/
39•PaulHoule•2h ago•4 comments

Framework Laptop 13 gets ARM processor with 12 cores via upgrade kit

https://www.notebookcheck.net/Framework-Laptop-13-gets-ARM-processor-with-12-cores-via-upgrade-ki...
167•woodrowbarlow•3h ago•79 comments

UniFi 5G

https://blog.ui.com/article/introducing-unifi-5g
293•janandonly•11h ago•231 comments

Onlook (YC W25) the Cursor for Designers Is Hiring a Founding Fullstack Engineer

1•D_R_Farrell•1h ago

Show HN: SerpApi MCP Server

https://github.com/serpapi/serpapi-mcp
4•thefoolofdaath•20m ago•1 comments

Building a Copying GC for the Plush Programming Language

https://pointersgonewild.com/2025-11-29-building-a-copying-gc-for-the-plush-programming-language/
6•ibobev•4d ago•0 comments

The Forgotten Roman Ruins of the ‘Pompeii of the Middle East’

https://news.artnet.com/art-world/huge-jerash-jordan-pompeii-middle-easy-2708480
17•pseudolus•6d ago•0 comments

Netflix’s AV1 Journey: From Android to TVs and Beyond

https://netflixtechblog.com/av1-now-powering-30-of-netflix-streaming-02f592242d80
468•CharlesW•18h ago•241 comments

Most technical problems are people problems

https://blog.joeschrag.com/2023/11/most-technical-problems-are-really.html
212•mooreds•5h ago•191 comments

BMW PHEV: Safety fuse replacement is extremely expensive

https://evclinic.eu/2025/12/04/2021-phev-bmw-ibmucp-21f37e-post-crash-recovery-when-eu-engineerin...
387•mikelabatt•17h ago•413 comments

Wall Street races to protect itself from AI bubble

https://rollingout.com/2025/12/05/wall-street-protects-itself-ai-bubble/
17•zerosizedweasle•28m ago•2 comments

I have been writing a niche history blog for 15 years

https://resobscura.substack.com/p/why-i-have-been-writing-a-niche-history
225•benbreen•1d ago•41 comments

Jony Ive's OpenAI Device Barred from Using 'Io' Name

https://www.macrumors.com/2025/12/05/openai-device-barred-from-io-name/
44•thm•2h ago•17 comments

Nimony (Nim 3.0) Design Principles

https://nim-lang.org/araq/nimony.html
100•andsoitis•3d ago•60 comments

Show HN: Pbnj – A minimal, self-hosted pastebin you can deploy in 60 seconds

https://pbnj.sh/
32•bhavnicksm•5h ago•9 comments

Show HN: Kraa – Writing App for Everything

https://kraa.io/about
78•levmiseri•1d ago•48 comments

The AI Backlash Is Here: Why Public Patience with Tech Giants Is Running Out

https://www.newsweek.com/ai-backlash-openai-meta-friend-10807425
71•zerosizedweasle•1h ago•75 comments

WikiFlix: Full Movies Hosted on Wikimedia Commons

https://commons.wikimedia.org/wiki/User:Spinster/WikiFlix
12•netule•41m ago•1 comments

New 3D scan reveals a hidden network of moai carvers on Easter Island

https://www.sciencedaily.com/releases/2025/11/251130050717.htm
26•saikatsg•4d ago•4 comments

After 40 years of adventure games, Ron Gilbert pivots to outrunning Death

https://arstechnica.com/gaming/2025/12/after-40-years-of-adventure-games-ron-gilbert-pivots-to-ou...
171•mikhael•4d ago•68 comments

Trick users and bypass warnings – Modern SVG Clickjacking attacks

https://lyra.horse/blog/2025/12/svg-clickjacking/
301•spartanatreyu•18h ago•41 comments

Gemini 3 Pro: the frontier of vision AI

https://blog.google/technology/developers/gemini-3-pro-vision/
7•xnx•2h ago•2 comments

Kenyan court declares law banning seed sharing unconstitutional

https://apnews.com/article/kenya-seed-sharing-law-ruling-ad4df5a364299b3a9f8515c0f52d5f80
254•thunderbong•9h ago•75 comments

CSS now has an if() conditional function

https://caniuse.com/?search=if
247•aanthonymax•5d ago•201 comments