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•10mo ago

Comments

zoezoezoezoe•10mo 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•10mo 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.

FSC Age Verification Bill Tracker

https://action.freespeechcoalition.com/age-verification-bills/
1•muyuu•2m ago•0 comments

Disney+ Teases Creator-Driven Content as It Launches Vertical Video Feature

https://www.hollywoodreporter.com/business/digital/disney-creator-content-launches-vertical-video...
1•andsoitis•3m ago•0 comments

The FermAI Paradox: Agents Need Their IDE Moment

https://docs.ctx.rs/blog/the-fermai-paradox
2•ripped_britches•4m ago•0 comments

New F1 regulations take bravery out of the sport, drivers say

https://www.reuters.com/sports/formula1/new-f1-regulations-take-bravery-out-sport-drivers-say-202...
2•samizdis•7m ago•0 comments

Local Agents with Llama.cpp and Pi

https://huggingface.co/docs/hub/agents-local
2•kristianpaul•7m ago•0 comments

Show HN: Aurion OS – A 32-bit GUI operating system written from scratch in C

https://github.com/Luka12-dev/AurionOS
3•Luka12-dev•8m ago•0 comments

Ask HN: Rethinking SaaS architecture for AI-native systems

2•RobertSerber•8m ago•1 comments

Weak Cyberdefenses Threaten U.S. Tech Dominance

https://www.foreignaffairs.com/united-states/americas-endangered-ai
2•fheiding•9m ago•0 comments

Anthropic invests $100M into the Claude Partner Network

https://www.anthropic.com/news/claude-partner-network
2•surprisetalk•9m ago•0 comments

gstack – Garry Tan's Claude Code Setup

https://github.com/garrytan/gstack
2•jumploops•11m ago•0 comments

The Tao of Kung Fu: The Undiscerning Mind [video]

https://www.youtube.com/watch?v=Q5J4nHdr134
1•jamesgill•11m ago•0 comments

Is MacBook Neo "The One"? [video]

https://www.youtube.com/watch?v=AwuKCgSgcR4
2•tosh•12m ago•0 comments

WebZero – a web server that serves 5k req/SEC on a 2001 Pentium III

https://github.com/davitotty/webzero
2•Davitotty1•13m ago•1 comments

'The shine has been taken off': Dubai faces existential threat

https://www.theguardian.com/world/2026/mar/11/the-shine-has-been-taken-off-dubai-faces-existentia...
2•akbarnama•13m ago•0 comments

Speculative Branching Cache

https://medium.com/@dmitrijs.gavrilovs.swampus/speculative-branching-cache-managing-temporary-sta...
1•swampus•14m ago•0 comments

Valea: An AI-native systems programming language

https://github.com/hvoetsch/valea
1•hvoetsch•14m ago•1 comments

TrueTime Meetings – open-source video meetings, built for customization

https://www.red5.net/truetime/meetings/
1•mondainx•16m ago•0 comments

Mapping the Forests with Precision:Introducing Canopy Height Maps

https://ai.meta.com/blog/world-resources-institute-dino-canopy-height-maps-v2/?_fb_noscript=1
2•tzury•17m ago•0 comments

Axiom Raises $200M Series A at a $1.6B Valuation

https://menlovc.com/perspective/ai-will-write-all-the-code-mathematics-will-prove-it-works/
1•doppp•18m ago•0 comments

My PostgreSQL database got nuked lol

https://akselmo.dev/posts/they-broke-my-server/
1•birdculture•19m ago•0 comments

The Bitter Lesson Has No Utility Function

https://gfrm.in/posts/bitter-lesson-missing-half/index.html
1•slygent•19m ago•0 comments

Show HN: blunder.clinic, realistic daily chess puzzles

https://blunder.clinic/
2•mcyc•20m ago•0 comments

Show HN: Raccoon AI – Collaborative AI Agent for Anything

https://raccoonai.tech
3•scorchy38•21m ago•1 comments

When Weight-Loss Drugs Don't Work

https://www.nytimes.com/2026/03/12/well/weight-loss-drugs-response-wegovy-zepbound.html
4•paulpauper•22m ago•0 comments

The Met Introduces High-Definition 3D Scans of Art Historical Objects

https://www.thisiscolossal.com/2026/03/metropolitan-museum-of-art-3d-models-art-history/
1•paulpauper•23m ago•1 comments

Why Is the USDA Involved in Housing?

https://marginalrevolution.com/marginalrevolution/2026/03/why-is-the-usda-involved-in-housing.html
1•paulpauper•23m ago•0 comments

AI may never be as cheap to use as it is today

https://www.axios.com/2026/03/12/ai-models-costs-ipo-pricing
3•giuliomagnifico•23m ago•0 comments

C++26 Safety Features Won't Save You (and the Committee Knows It)

https://lucisqr.substack.com/p/c26-safety-features-wont-save-you
1•pjmlp•24m ago•0 comments

Moscow Reverts to 90s Communication Tools as Internet Outages Cause Chaos

https://united24media.com/latest-news/moscow-reverts-to-90s-communication-tools-as-internet-outag...
1•hkmaxpro•24m ago•0 comments

Pragmatic by design: Engineering AI for the real world

https://www.technologyreview.com/2026/03/12/1133675/pragmatic-by-design-engineering-ai-for-the-re...
1•joozio•25m ago•0 comments