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.

Pentagon seeks system to ensure AI models work as planned

https://www.militarytimes.com/industry/techwatch/2026/03/12/pentagon-seeks-system-to-ensure-ai-mo...
1•KnuthIsGod•1m ago•0 comments

US Marine Corps pursues thermal cloaks to hide troops from heat sensors

https://www.militarytimes.com/industry/techwatch/2026/03/11/us-marine-corps-pursues-thermal-cloak...
1•KnuthIsGod•2m ago•0 comments

The Handwriting of Simone Weil

https://registerofaliens.substack.com/p/on-the-handwriting-of-simone-weil
1•rmdmphilosopher•2m ago•0 comments

Ask HN: Im looking for indie hackers or small teams to test AI analytics tool

1•m2fauzaan•8m ago•0 comments

Ig Nobel Prize flees US for Switzerland over safety concerns

https://www.theregister.com/2026/03/11/ig_nobel_prize_leaves_us/
2•KnuthIsGod•9m ago•1 comments

Big Data on the Cheapest MacBook

https://duckdb.org/2026/03/11/big-data-on-the-cheapest-macbook
1•nateb2022•11m ago•0 comments

Why corporate lawyers always win

https://www.economist.com/business/2026/03/11/why-corporate-lawyers-always-win
1•petethomas•15m ago•0 comments

New hack model "went scuba"

https://a-z.md/posts/jn7bwaz3b1vpj7t98pw3kmgw4s82r58v
1•andytratt•15m ago•0 comments

Carnian Pluvial Episode

https://en.wikipedia.org/wiki/Carnian_pluvial_episode
1•mooreds•15m ago•0 comments

Age-Verification in Operating Systems and the Internet

https://wiki.alcidesfonseca.com/blog/age-verification-in-operating-systems-and-the-internet/
1•musha68k•16m ago•0 comments

Nvidia Nemotron 3 Super

https://research.nvidia.com/labs/nemotron/Nemotron-3-Super/
1•aheilbut•18m ago•0 comments

Rebuilding the EraMix Financial Union stack for speed

1•EraMixOfficial•20m ago•0 comments

CBS: We visited "ground zero" for hospice fraud: Los Angeles, California

https://www.cbsnews.com/projects/2026/hospice-fraud/
1•donsupreme•24m ago•0 comments

A better agent skills manager

https://github.com/reorx/skm
1•novoreorx•30m ago•1 comments

Device 32620: Stimme Speech/Morse generator

https://www.cryptomuseum.com/spy/owvl/32620/index.htm
1•jacquesm•32m ago•0 comments

Atlassian slashes 10% of workforce to 'self-fund' investments in AI

https://www.cnbc.com/2026/03/11/atlassian-slashes-10percent-of-workforce-to-self-fund-investments...
3•elsewhen•36m ago•1 comments

Prioritizing energy intelligence for sustainable growth

https://www.technologyreview.com/2026/03/10/1133972/prioritizing-energy-intelligence-for-sustaina...
1•Brajeshwar•40m ago•0 comments

Protective Dome for AI Agents – MCP Security Gateway

https://github.com/Orellius/mcpdome
1•Orellius•40m ago•1 comments

Laminae – Multi-Agent Cognitive Pipeline

https://github.com/Orellius/Laminae
1•Orellius•41m ago•0 comments

Bringing the genetically minimal cell to life on a computer in 4D

https://www.cell.com/cell/fulltext/S0092-8674(26)00174-1
2•d_silin•43m ago•0 comments

Generative AI Vegetarianism

https://sboots.ca/2026/03/11/generative-ai-vegetarianism/
2•g-b-r•48m ago•0 comments

Creaseless Foldable: Oppo Did What Samsung Couldn't [video]

https://www.youtube.com/watch?v=V5a6qvETnNg
2•mgh2•49m ago•0 comments

Show HN: A public RSS feed aggregator for the indie web

https://powrss.com/
2•nyoki•50m ago•0 comments

OpenUI: Open Standard for Generative UI

https://www.openui.com/
1•handfuloflight•51m ago•0 comments

RSA Innovation Sandbox finalists for 2026

https://www.rsaconference.com/usa/programs/innovation-sandbox
2•debarshri•53m ago•0 comments

Ask HN: What software has improved dramatically recently thanks to AI tooling?

3•pedrodelfino•54m ago•0 comments

The Death of the Downvote

https://nathankyoung.substack.com/p/the-death-of-the-downvote
3•bookofjoe•55m ago•2 comments

Hedystia – Next-Gen TypeScript Framework for Type-Safe APIs at Lightspeed

https://github.com/Hedystia/Framework
1•Zastinian•56m ago•1 comments

Proposal: Global Solar-Offset Fractional Time (G-Soft) Model

1•4TimeSake•56m ago•0 comments

Physical Laser Art

https://www.youtube.com/channel/UCJUV-vrFg0DI7nq-rbWkhGw
1•unit-vector•1h ago•0 comments