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

Comments

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

Show HN: Orbital – Give Your Agent a Project, Not a Prompt

https://github.com/zqiren/Orbital
1•10keane•38s ago•0 comments

Xkcd 2510 (2021 AD) describes LLM generated code

https://xkcd.com/2510/
1•TZubiri•1m ago•0 comments

How much should you pay for API docs?

https://www.jamdesk.com/blog/the-definitive-api-documentation-pricing-comparison-2026-2
1•spy888•1m ago•0 comments

Apple Thrived in 15 Years Under Tim Cook

https://www.statista.com/chart/25612/apple-share-price-under-tim-cook/
1•salkahfi•1m ago•0 comments

Petition, recognition of open-source work

https://mixxx.org/news/2026-04-21-petition-ehrenamt/
1•SamWhited•1m ago•0 comments

Show HN: Flight Risk: Can you break an AI agent?

https://ctf.demo.lorikeetcx.ai/
1•tetrakai•5m ago•0 comments

Open Source Agent Skills for GTM Engineers

https://github.com/Varnan-Tech/opendirectory
1•sam_josh1•6m ago•0 comments

I refused to pay $50/mo for a CSV to quickbooks converter, so I built it

https://www.csvtoquickbooks.com/
1•Loliyo•8m ago•0 comments

Accessible PDF and Tagged PDF Remediation Services

https://curbeffect.com/
1•mooreds•9m ago•0 comments

Claude in China: how to "look like a normal person"

https://shuyangli.substack.com/p/claude-in-china
1•shuyang•10m ago•0 comments

Spaced Repetition: Beginner Guide/FAQ

https://entropicthoughts.com/spaced-repetition-beginner-guide-faq
1•Tomte•11m ago•0 comments

Tim Cook's Rotten Apple

https://unherd.com/2026/04/time-is-running-out-for-tim-cook/
1•jnord•12m ago•0 comments

Defining Terms: Human Intelligence

https://aquinas101.thomisticinstitute.org/videos/defining-terms-human-intelligence
1•danielam•14m ago•0 comments

Show HN: Ketchup – a Pomodoro timer with separate work and break budgets

https://github.com/Rench321/ketchup-timer
1•rench321•14m ago•0 comments

Nodus – Never lose AI answers again

https://nodus-ai.app/
1•m_m_carvalho•14m ago•0 comments

Show HN: We replaced 5 ML models with 1 shared encoder on an $11/month VPS

https://fittohire.com
1•blemis•15m ago•0 comments

Unlearnings from Building Grafana Assistant

https://contexthorizon.substack.com/p/unlearnings-from-building-grafana
1•xionerys•16m ago•0 comments

Siemens and Humanoid deployed an Nvidia-powered humanoid robot

https://thenextweb.com/news/siemens-nvidia-humanoid-robot-erlangen-factory-trial
1•JeanKage•16m ago•0 comments

Show HN: Bpfvet – minimum kernel version and CO-RE analyzer for BPF objects

https://github.com/boratanrikulu/bpfvet
1•boratanrikulu•17m ago•0 comments

In Chinese data factories, workers teach humanoid robots boring tasks

https://restofworld.org/2026/china-robots-training-centers-workers/
1•bookofjoe•18m ago•0 comments

WooCommerce stores may be silently losing revenue

https://twitter.com/SybreWaaijer/status/2045660722168758336
1•todotask2•18m ago•0 comments

Vercel has been hacked: environment variables compromised

https://vercel.com/kb/bulletin/vercel-april-2026-security-incident
1•freely0085•18m ago•1 comments

Landscape of Quantum Computing in 2026

https://sam-jaques.appspot.com/quantum_landscape
1•Harvesterify•21m ago•0 comments

Flock's CEO Fallacious Pitch to the Poor

https://ipvm.com/reports/flock-ceo-poor
1•jhonovich•22m ago•0 comments

Schwarz Digits' Presents European Sovereign Stack Standard

https://www.heise.de/en/news/Schwarz-Digits-introduces-standard-for-digital-sovereignty-11264279....
1•standfest•26m ago•0 comments

SaaS is not dead. You are just being sold the funeral

https://thenextweb.com/news/saas-not-dead-ai-hype-enterprise-software
1•cx42net•26m ago•0 comments

Show HN: Intake – Secure client document collection with browser-side encryption

https://intakerequest.com
1•pio_greeff•27m ago•0 comments

ReleaseJet – Release notes from issue labels, no Conventional Commits

https://www.releasejet.dev/
1•makisp•30m ago•1 comments

Show HN: I made an AI fitness coach that actually makes sure you reach the goal

1•ABSALOMMAXY•31m ago•1 comments

Daily Geography Game

https://maptap.gg/
1•gniv•31m ago•0 comments