frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Avoid Continue

https://www.teamten.com/lawrence/programming/avoid-continue.html
2•todsacerdoti•7mo ago

Comments

zoezoezoezoe•7mo ago
I dont know if I fully agree. Sure, there is definitely an argument the be had about whether or not `continue` is the best word to use in this instance, but why avoid it entirely? Every programmer is able to easily understand what code like this would do:

``` for (Node node : nodeList) { if (node.isBad()) { continue; } processNode(node); } ```

Every keyword in any programming language is largely arbitrary in my opinion let's take a look at the beginning of the codeblock `for (Node node : nodeList)` also completely arbitrary, though it's clear to anyone who's ever written C++ that it is equivalent to saying "for every node in nodeList".

Continue is not meant to read as "continue execution" it's meant to be "continue to the next item of the list", and I think avoiding it entirely is a pointless effort.

Ukv•7mo ago
I feel `skip` may have been a better name, but disagree with it being logically difficult to parse beyond that.

If I'm reading a loop and see

    for x in y {
        if exclusions.contains(x) { skip; }
        if x.children.length == 0 { skip; }
        if os.file.exists(x.name) { skip; }
        ...
I instantly know that processing for those elements is skipped, and they won't be relevant for the rest of the loop.

Whereas if I see

    for x in y {
        if !exclusions.contains(x) {
            if x.children.length != 0 {
                if !os.file.exists(x.name) {
        ...
I feel like there's still mental overload with not knowing where those `if` blocks end, and so having to keep the conditions in mind. It doesn't immediately tell me that the rest of the loop is being skipped.

The `log()` mistake seems no less likely to happen using early-returns in function instead, and I'd argue nesting checks actually introduces more room for that kind of error overall, where you append something at the end within the wrong set of brackets, compared to a flatter structure.

The AI Price Hike

https://molodtsov.me/2025/12/ai-price-hike/
1•speckx•19s ago•0 comments

The open hardware water cooling controller project

https://github.com/kennycoder/waku-ctl
1•kennycoder•2m ago•1 comments

Datadog built a low-latency, multi-tenant data replication platform

https://www.datadoghq.com/blog/engineering/cdc-replication-search/
1•mooreds•2m ago•0 comments

Odies – AI Companions living on your screen

https://www.youtube.com/watch?v=uwQjUHvm0JM
1•omoistudio•3m ago•0 comments

Static Analysis of APL Code [video]

https://www.youtube.com/watch?v=d4pRvKMcp_g
1•pillowshift•3m ago•0 comments

"I've failed 17 times with the exact same error": An agent debugging tale

https://blog.tonkotsu.ai/p/ive-failed-17-consecutive-times-with
1•derekcheng08•4m ago•1 comments

A smart-glasses HUD app for guiding IKEA assembly [video]

https://www.youtube.com/watch?v=1bgYNNsjEAI
1•tash_2s•5m ago•1 comments

Dingo – a meta-language for Go

https://dingolang.com/
1•ezekg•5m ago•0 comments

Show HN: Banking-Grade Validators for IBAN, Swift, OFAC and Blockchain Networks

https://zkorigoplus.com/
1•ADCXLAB•5m ago•1 comments

Backpropagation: Find Partial Derivatives [video]

https://www.youtube.com/watch?v=lZrIPRnoGQQ
1•dwa3592•6m ago•0 comments

Discover the World's Top Vibe Coders

https://www.vibolio.com/
1•helloviby•6m ago•0 comments

Due to relentless AI scrapers notabug.org is currently down

https://notabug.org
3•ankitpati•7m ago•1 comments

Berkeley professor's camera caught student allegedly sabotaging another student

https://www.mercurynews.com/2025/12/08/uc-berkeley-professor-installed-secret-camera-allegedly-ca...
2•justin66•8m ago•0 comments

Developing a food-safe finish for my wooden spoons and cups

https://alinpanaitiu.com/blog/developing-hardwax-oil/
1•speckx•12m ago•0 comments

DocuSign phishing ranks as top inbox threat, analysis finds

https://www.scworld.com/news/docusign-phishing-ranks-as-top-inbox-threat-analysis-finds
1•Bender•14m ago•0 comments

Pompeii construction site confirms recipe for Roman concrete

https://arstechnica.com/science/2025/12/study-confirms-romans-used-hot-mixing-to-make-concrete/
1•Bender•15m ago•0 comments

Days after COP30, Brazil weakened Amazon safeguards

https://insideclimatenews.org/news/09122025/brazil-weakens-amazon-forest-protection/
1•Bender•15m ago•0 comments

Firewood Banks Aren't Inspiring. They're a Sign of Collapse

https://newrepublic.com/article/204051/firewood-banks-heating-bill-winter
7•toomuchtodo•15m ago•1 comments

Show HN: Redis Shield – Token bucket rate limiting in Redis at 50K req/s (Rust)

https://github.com/ayarotsky/redis-shield
1•ayarotsky•15m ago•0 comments

2026: The Last Year Before AGI

https://www.tenmas.tech/post/2026-the-last-year-before-agi-and-how-to-build-software-teams-that-s...
1•avivby•16m ago•0 comments

Lidar is being used to modernize complex infrastructure

https://www.lanl.gov/media/publications/1663/lidar-at-lansce
1•LAsteNERD•16m ago•0 comments

Show HN: AutEng Docs – Generate and Share Markdown and Mermaid and Katex

https://auteng.ai
1•llabs•17m ago•0 comments

Boom Supersonic to Power AI Data Centers with Superpower Natural Gas Turbines

https://www.businesswire.com/news/home/20251209195489/en/Boom-Supersonic-to-Power-AI-Data-Centers...
1•pixelesque•18m ago•0 comments

Jay – An i3 look and feel inspired Wayland WM written in Rust

https://github.com/mahkoh/jay/blob/master/docs/features.md
1•foxrider•19m ago•0 comments

Thinking About Thinking, with Reference to Galileo

https://www.ystrickler.com/the-galileo-method-private-first-public-when-ready/
1•OhMeadhbh•19m ago•1 comments

Now CachyOS Is Eating Arch Linux' Lunch on Desktop

https://boilingsteam.com/now-cachy-os-is-eating-arch-linux-lunch/
2•ekianjo•19m ago•0 comments

Egypologists find 225 'exceptional' figurines in pharaoh's tomb

https://www.france24.com/en/live-news/20251205-amazing-figurines-find-in-egyptian-tomb-solves-mys...
1•gmays•20m ago•0 comments

Someone hijacked Spotify's Share-to-Instagram asset for a 2004 track

https://ercanermis.com/when-spotifys-share-to-instagram-flow-turns-into-a-free-billboard/
1•ermis•20m ago•1 comments

Open-source, AI-powered flashcards with modern UX

https://github.com/maltsevmki/flashcards_backend
1•maltsevmki•21m ago•1 comments

Node.js Security Pre-Alert for Upcoming Releases on Monday, Dec 15, 2025

https://nodejs.org/en/blog/vulnerability/december-2025-security-releases
1•ezekg•22m ago•0 comments