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.

CraneSched: An open-source distributed scheduler for HPC and AI workloads

https://github.com/PKUHPC/CraneSched/blob/master/README_EN.md
1•infinet•2m ago•0 comments

Show HN: Spark-LLM-eval – Distributed LLM evaluation for Spark

https://github.com/bassrehab/spark-llm-eval
1•subhadipmitra•3m ago•1 comments

How do you debug when your AI agent makes wrong decisions?

1•ankushT369•4m ago•0 comments

AI will never master PowerPoint

https://blog.ryanbbrown.com/p/ai-will-never-master-powerpoint
1•ryanbbrown•4m ago•0 comments

LLM-friendly PR review workflows in your CLI

https://agyn.io/blog/gh-pr-review-cli-agent-workflows
1•NBenkovich•6m ago•1 comments

Show HN: Hera API – Text-to-Motion-Graphics Engine

https://docs.hera.video/api-reference/introduction
1•chialunhera•6m ago•0 comments

Show HN: CLI that turns GitHub issues into PRs with Claude Code

https://github.com/MikeOuroumis/claude-issue-solver
1•mikeouroumis•6m ago•0 comments

Computing the Integer Binary Logarithm

https://janmr.com/posts/computing-the-integer-binary-logarithm/
1•ColinWright•7m ago•0 comments

Science Carries On. Here Are Our Top Topics for 2026

https://www.scientificamerican.com/article/science-carries-on-here-are-our-top-topics-for-2026/
1•quapster•10m ago•0 comments

You're overspending because you lack values

https://www.sherryning.com/p/youre-overspending-because-you-lack-values
1•speckx•10m ago•0 comments

The Line Girl effect recreated by Gemini 3 Pro

https://github.com/letmutex/line-girl-effect
1•letmutex•10m ago•0 comments

Book Review: Design Principles of Biological Circuits (2019)

https://www.lesswrong.com/s/SgomvxZ3cJWy2SBCu/p/bNXdnRTpSXk9p4zmi
1•TheAceOfHearts•12m ago•0 comments

Red Hat Accelerates AI Trust and Security with Chatterbox Labs Acquisition

https://www.redhat.com/en/about/press-releases/red-hat-accelerates-ai-trust-and-security-chatterb...
1•LaSombra•12m ago•0 comments

The Tyranny of the Digital Calendar

https://www.ft.com/content/b1a609ba-d0ab-4132-99ea-721455ebbc6c
1•uxhacker•13m ago•0 comments

Show HN: PremiumFlow – Managing Option Selling

https://premiumflow.base44.app/
2•tchantchov•13m ago•0 comments

Show HN: TypeDeck – Markdown, Mermaid, etc. to presentation slides

https://typedeck.io
1•TypeDeck•14m ago•0 comments

Agentic AI is brilliant because I loath my family

https://shkspr.mobi/blog/2025/12/agentic-ai-is-brilliant-because-i-loath-my-family/
2•robin_reala•15m ago•0 comments

Open-source LLM cascading, up to 92% cost savings on benchmarks

https://github.com/lemony-ai/cascadeflow
2•saschabuehrle•15m ago•1 comments

Announcing Vojtux – Accessible Linux distro which is almost pure Fedora

https://www.freelists.org/post/orca/Announcing-Vojtux-Accessible-Linux-distro-which-is-almost-pur...
1•lproven•17m ago•0 comments

Where are you? A look at GeoIP

https://www.potaroo.net/ispcol/2025-12/geoip.html
1•speckx•18m ago•0 comments

What the [UK] Property (Digital Assets etc.) Act 2025 Means for Cryptoassets

https://www.technologylaw.ai/p/property-digital-assets-etc-act-2025-england-and-wales-personal-pr...
2•pcaharrier•21m ago•0 comments

According to doctors, how feasible is preserving the dying for future revival?

https://preservinghope.substack.com/p/according-to-doctors-how-feasible
1•arielzj•21m ago•1 comments

Microsoft will kill obsolete cipher that has wreaked decades of havoc

https://arstechnica.com/security/2025/12/microsoft-will-finally-kill-obsolete-cipher-that-has-wre...
1•signa11•22m ago•0 comments

Calling All Arguments

https://xania.org/202512/16-calling-conventions
1•hasheddan•22m ago•0 comments

Sega Channel: VGHF Recovers over 100 Sega Channel ROMs (and More)

https://gamehistory.org/segachannel/
1•wicket•23m ago•0 comments

Rust Training Sessions by Circl

https://www.youtube.com/playlist?list=PLhSWiKucshm5vWvFCqtJePVVYgIXH6_6y
1•pluc•24m ago•0 comments

Vectorized MAXSCORE over WAND, especially for long LLM-generated queries

https://turbopuffer.com/blog/fts-v2-maxscore
3•Sirupsen•24m ago•0 comments

The Entry-Level Hiring Process Is Breaking Down

https://www.theatlantic.com/ideas/2025/12/grade-inflation-ai-hiring/685157/
1•voxleone•25m ago•0 comments

Individual Contributor Advice: Make Breakthroughs

https://twitter.com/staysaasy/status/2000900897694507113
1•thisismytest•25m ago•0 comments

I used to read like this

https://dailyscratchpad.substack.com/p/i-used-to-read-like-this
1•sujayk_33•29m ago•0 comments