frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Avoid Continue

https://www.teamten.com/lawrence/programming/avoid-continue.html
2•todsacerdoti•1y ago

Comments

zoezoezoezoe•1y 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•1y 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.

PhoneLLM Alpha 1: Open-weight LLM for voice agent use cases

https://www.daily.co/blog/announcing-pipecat-phonellm-alpha-1/
1•tash_2s•2m ago•0 comments

Polytoken Is an AI Harness

https://polytoken.dev/
1•droidjj•3m ago•0 comments

Metriport (S22) raises $26M to give clinicians insight into any patient question

https://www.metriport.com/blog/metriport-series-a
1•dgoncharov•4m ago•0 comments

Chatgpt.com is down – all signups and logins are down as of

https://status.openai.com/incidents/01M0E7K87VJNMGW0QTMHPEQQ39
1•kyisaiah47•6m ago•0 comments

Omarchy Desktops on Cua Cloud Fleets

https://cua.ai/docs/how-to-guides/sandbox/run-omarchy-on-cloud-fleet
2•frabonacci•8m ago•0 comments

RL fries the models' brains on complex domains

https://jagilley.github.io/rl-is-not-enough.html
1•threevox•11m ago•0 comments

New AI tech considered to tackle wrong-way driving

https://www.rte.ie/news/ireland/2026/0828/1589622-ai-motorways/
1•austinallegro•11m ago•0 comments

DHS Proposal to eliminate 60 day grace period for H1B

https://news.bloomberglaw.com/daily-labor-report/h-1b-workers-to-lose-grace-period-in-white-house...
1•laxmena•12m ago•0 comments

A Deep Dive into LDS Optimizations on AMD Instinct MI450 GPUs

https://rocm.blogs.amd.com/software-tools-optimization/mi450-lds-optimization/README.html
1•ks6g10•12m ago•0 comments

I tested 47 news outlets: 16 block AI fact-checkers, incl. Reuters, WSJ and NYT

https://korniienko.dev/blog/news-outlets-ai-cannot-read/
1•skorniienko•13m ago•0 comments

Meet.hn

https://meet.hn/
1•janalsncm•15m ago•0 comments

Why Germany's military is betting on gamers

https://www.dw.com/en/why-germanys-military-is-betting-on-gamers/a-78536462
1•theanonymousone•17m ago•1 comments

Cut the spin. Read the facts. Suspicious of a headline? Check it

https://apps.apple.com/us/app/rubbish-talk-news/id6797190131
1•Mr_Kobayashi•18m ago•0 comments

GLM5.3 unsloth GGUFs are now up

https://huggingface.co/unsloth/GLM-5.3-GGUF
1•walrus01•22m ago•1 comments

Show HN: Colrows – Compile natural language to governed SQL instead of guessing

https://colrows.com/
1•Colrows•24m ago•0 comments

Show HN: AI Shipcheck – know if your AI-built app is ready to ship

https://github.com/sinceaihq/ai-shipcheck
1•rikulauttia•24m ago•0 comments

Project Scorpions – Hurricane Tracker

https://project-scorpions.net/
1•iccananea•25m ago•1 comments

Show HN: Agentify Chat – E2E-Encrypted Remote Chat for Codex, Claude, Grok CLIs

1•agentifysh•25m ago•0 comments

Show HN: Agentctl – Terraform for your agent harnesses

https://github.com/RomanVolkov/agentctl
1•roman-volkov•27m ago•1 comments

Postgres SELECT DISTINCT does not scale

https://www.dbos.dev/blog/postgres-select-distinct-does-not-scale
1•KraftyOne•27m ago•0 comments

Service Discontinued

https://twitterwebviewer.com/?rev=1
1•dredmorbius•27m ago•3 comments

ThingLoom – Build and verify ESP32 IoT projects from one prompt

https://github.com/emqx/thing-loom
1•eds_k•28m ago•0 comments

For self-learning LLMs, governance needs to improve

https://rakuensoftware.com/blog/aimee-recursive-self-learning
1•jbailes•29m ago•1 comments

cats.txt showed llms.txt evidence is GEO astrology

https://markwilliamscook.substack.com/p/how-catstxt-showed-llmstxt-evidence
1•kaycebasques•33m ago•0 comments

Reversing TikTok's Request Signing and Encryption

https://mumd.dev/posts/reversing-tiktoks-request-signing-and-encryption
1•yawndex•35m ago•0 comments

Tlbic: Evidence, Incentives, Sunk Costs – With Thanks

1•michikawa59•36m ago•0 comments

Word 97's ghost in the machine: The crash that vanished the moment anyone

https://www.theregister.com/software/2026/08/28/word-97s-ghost-in-the-machine-the-crash-that-vani...
1•sbulaev•36m ago•0 comments

Apple's Siri Settlement: Here's When iPhone Owners Can Submit Claims

https://www.macrumors.com/2026/08/28/apple-siri-ai-settlement-claims-timing/
1•tosh•36m ago•0 comments

Cleared – Keep up to date with HTML/CSS stuff you can delete from your code base

https://cleared.page/
1•_yann•37m ago•1 comments

Russian attacks destroy 10M Ukrainian books; publishers call for support

https://www.theguardian.com/books/2026/aug/20/help-ukrainian-publishers-russia-attacks-books
2•olexsmir•39m ago•0 comments