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.

My App Will Harm You Physically, Using Math

https://prolost.com/blog/drinkingbuddy
1•dougskinner•9s ago•0 comments

Show HN: Symbolic Circuit Distillation: prove program to LLM circuit equivalence

https://github.com/neelsomani/symbolic-circuit-distillation
1•nsomani•19s ago•0 comments

Firefox 146 Now Available with Native Fractional Scaling on Wayland

https://www.phoronix.com/news/Firefox-146-Released
1•nateb2022•1m ago•0 comments

A Strategy That Ignores the Real Threats

https://www.theatlantic.com/international/2025/12/national-security-strategy-ignores-real-threats...
1•breve•2m ago•0 comments

Mathgpt

https://mathgpt.today/
1•umeedsto•3m ago•1 comments

Lactone signaling modulates bacterial community associated with dental plaque

https://www.nature.com/articles/s41522-025-00846-z
1•PaulHoule•4m ago•0 comments

Brainrot

http://muratbuffalo.blogspot.com/2025/12/brainrot.html
1•speckx•5m ago•0 comments

How Stealth Works

https://linch.substack.com/p/how-stealth-works
1•eatitraw•5m ago•0 comments

Yew 0.22 – For Real This Time

https://yew.rs/blog/2025/11/29/release-0-22
1•todsacerdoti•5m ago•0 comments

Debt myths that can hold you back from making smart financial decisions

https://text.npr.org/nx-s1-5564766
1•mooreds•7m ago•0 comments

Spending on Shoppable Services in Health Care (2016) [pdf]

https://healthcostinstitute.org/wp-content/uploads/images/easyblog_articles/110/Shoppable-Service...
1•mooreds•7m ago•0 comments

Career Planning in the AI Era

https://declanbright.com/software/career-planning-in-the-ai-era/
1•dclnbrght•10m ago•0 comments

Watch an AI Scientist Think

https://platform.sundialscientific.com/
2•belindamo•12m ago•1 comments

Better email search/contact management?

1•jll29•12m ago•0 comments

AI is hallucinating its way into research

https://thelibre.news/why-is-science-full-of-ai/
1•speckx•15m ago•1 comments

Building an AI-Native Engineering Team

https://developers.openai.com/codex/guides/build-ai-native-engineering-team/
1•gmays•15m ago•0 comments

Google Production Kernel

https://github.com/googleprodkernel
1•doener•16m ago•0 comments

I'm Done with FlutterFlow [video]

https://www.youtube.com/watch?v=8GkOX0i00Mg
1•gozzoo•24m ago•0 comments

The Federated Trust Fabric for the Agent-Native Era

https://www.keycard.ai/blog/the-federated-trust-fabric-for-the-agent-native-era
1•mooreds•25m ago•0 comments

Ask HN: Did Google know about RLHF(breakthru) only after OpenAI shared

1•elarocks•25m ago•1 comments

Washington state Medicare users could soon have claims denied by AI

https://www.kuow.org/stories/thousands-of-washington-state-medicare-users-could-soon-have-claims-...
2•coloneltcb•25m ago•0 comments

I Set a Trap for a Book-Marketing Scammer

https://rwwgreene.substack.com/p/i-set-a-trap-for-a-book-marketing
2•rznicolet•26m ago•0 comments

POTUS says he will sign 'One Rule' executive order to federalize AI regulation

https://www.foxbusiness.com/politics/trump-says-he-sign-one-rule-executive-order-federalize-ai-re...
1•schmuckonwheels•26m ago•1 comments

MicroTimes Interviews T/Maker's Heidi Roizen and Royal Farros (1994)

https://computeradsfromthepast.substack.com/p/microtimes-interviews-tmakers-heidi
1•rbanffy•27m ago•0 comments

Why Hyundai Has to Recall Only Silver Cars over a Serious Safety Defect

https://www.theautopian.com/why-hyundai-has-to-recall-only-silver-cars-over-a-serious-safety-defect/
4•nreilly•30m ago•1 comments

CSS Wrapped 2025

https://chrome.dev/css-wrapped-2025/
1•zhs•31m ago•1 comments

If Your Electron App Is "Just a Browser Wrapper" You're Doing It Wrong

https://www.jasonscheirer.com/weblog/on-electron/
1•speckx•31m ago•0 comments

Static Linux

https://sta.li/index.html
2•Koshkin•31m ago•0 comments

Europe Is Under Siege

https://www.noahpinion.blog/p/europe-is-under-siege
4•alephnerd•34m ago•0 comments

Spotify Wrapped but for Your Terminal

https://github.com/thegoldenmule/terminal-wrapped
1•benthehutt•34m ago•0 comments