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.

Clickhouse.build: An agentic CLI to accelerate Postgres apps with ClickHouse

https://clickhouse.com/blog/clickhouse-build-agentic-cli-accelerate-postgres-clickhouse-apps
1•samaysharma•1m ago•0 comments

Linux GPIB Drivers Declared Stable – 53 Years After HP Introduced the Bus

https://www.phoronix.com/news/GPIB-De-Staged-Linux-6.19
1•looofooo0•3m ago•0 comments

WebKit Features for Safari 26.2

https://webkit.org/blog/17640/webkit-features-for-safari-26-2/
1•dandiep•4m ago•0 comments

'The Tower and the Ruin' Review: Seeking Tolkien's Past

https://www.wsj.com/arts-culture/books/the-tower-and-the-ruin-review-seeking-tolkiens-past-a1d30b18
1•diodorus•4m ago•0 comments

Rob Reiner,Legendary Director and Actor,and Wife Found Dead in Apparent Homicide

https://www.rollingstone.com/tv-movies/tv-movie-news/rob-reiner-ldead-obituary-1235483876/
1•croes•8m ago•0 comments

Roomba maker iRobot files for bankruptcy, pursues manufacturer buyout

https://www.reuters.com/technology/irobot-enters-chapter-11-lender-acquire-roomba-maker-2025-12-15/
2•gslin•8m ago•0 comments

What's the biggest operational bottleneck in home service businesses today?

1•Homefront•12m ago•0 comments

Show HN: Zero Agent – agentless PC inventory → offline HTML/CSV reports

https://zeroagent-labs.github.io/za-sample-report/
1•zeroagenetlabs•14m ago•0 comments

Show HN: Vite plugin to call Node.js native code from CF Workers via Containers

https://github.com/inaridiy/create-nodejs-fn
1•inaridiy2•17m ago•0 comments

CSS: Mastering Margin Collapsing

https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Box_model/Margin_collapsing
1•efortis•19m ago•0 comments

Insights sea urchin mass mortality suggest a worldwide Diadematid pandemic

https://www.frontiersin.org/journals/marine-science/articles/10.3389/fmars.2025.1665504/full
2•thunderbong•32m ago•0 comments

Open Source LLM Development Landscape 2.0: 2025 Revisited

https://medium.com/@ant-oss/open-source-llm-development-landscape-2-0-2025-revisited-d18cbf0a49c2
1•jinqueeny•34m ago•0 comments

SVG Fullstack Website

https://github.com/icitry/SVGWebsite
2•modinfo•42m ago•0 comments

Iberian peninsula is rotating clockwise

https://phys.org/news/2025-12-iberian-peninsula-rotating-clockwise-geodynamic.html
1•karma_daemon•48m ago•0 comments

Show HN: Termrex – Chrome dino game for terminal

https://github.com/SATYADAHAL/termrex
1•__spd__•49m ago•0 comments

Slides: Terminal based Markdown presentation tool

https://github.com/maaslalani/slides
1•gregsadetsky•53m ago•0 comments

Australia's social media ban in chaos as youths flock to Chinese alternatives

https://www.gbnews.com/news/world/australia-social-media-ban-under-16s-china
3•delichon•53m ago•2 comments

Show HN: Track prices and stock on products across 9 major retailers

https://takemymoney.io
2•myfrontpocket•59m ago•3 comments

The Dark and Predatory World of Crypto Casinos

https://www.nytimes.com/interactive/2025/12/09/us/crypto-casinos-gambling-streamers.html
3•Townley•1h ago•0 comments

Show HN: Create multi-voice podcasts with VibeVoice

https://github.com/skorotkiewicz/vibevoice-podcast
2•modinfo•1h ago•0 comments

Why Some AI SaaS Ideas Reach $100M

1•alexdsouzatopg•1h ago•0 comments

Show HN: Rankiwiki – voting-based rankings for small groups

https://rankiwiki.com
1•rankiwiki•1h ago•1 comments

Fop – Filter Orderer and Preener (Rust Edition) for Adblock

https://github.com/ryanbr/fop-rs
1•mp3geek•1h ago•1 comments

Read Something Wonderful

https://readsomethingwonderful.com/
37•snorbleck•1h ago•6 comments

The Hardest Part of Starting a Startup Isn't Code, It Is This

2•suhaspatil101•1h ago•0 comments

Why Self-Driving Cars Still Don't Exist

https://dan.bulwinkle.net/blog/full-self-driving-cars/
2•pilingual•1h ago•0 comments

The Whole App is a Blob

https://drobinin.com/posts/the-whole-app-is-a-blob/
7•valzevul•1h ago•0 comments

Vibe Coding as 2025 word of the year in Collins dictionary

https://en.wikipedia.org/wiki/Word_of_the_year
1•py4•1h ago•0 comments

Why Florida Crocs Are Thriving Outside a Nuclear Power Plant

https://www.smithsonianmag.com/smart-news/florida-crocs-are-thriving-outside-nuclear-power-plant-...
1•thunderbong•1h ago•0 comments

Broadcom reveals its mystery $10B customer is Anthropic

https://www.cnbc.com/2025/12/11/broadcom-reveals-its-mystery-10-billion-customer-is-anthropic.html
3•indigodaddy•1h ago•0 comments