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.

OpenAI gives first detailed debrief of the Hugging Face incident at Black Hat

https://www.groundlevel-ai.com/p/openai-gives-first-detailed-debrief
1•artninja1988•48s ago•0 comments

Show HN: ReachKit – a discoverability score for your product, and plan to fix it

https://reachkit.app
1•timcliffordIE•2m ago•0 comments

Show HN: A terminal glued to the macOS dock

https://github.com/palamim/starboard
1•leopalamim•4m ago•0 comments

FelonyBench – The leading benchmark for AI in cybersecurity

https://felonybench.org/
2•q3k•7m ago•0 comments

Building a local-first family tree app

https://purplehoisin.com/own-your-family-tree/
1•fersarr•11m ago•0 comments

Cezar: A parallel coding agents orchestrator

https://github.com/open-mercato/cezar
2•zaiste•14m ago•0 comments

AI Agents Governance: Who guards the guardrails?

https://www.nofire.ai/blog/who-audits-the-ai-agent
3•spirosoik•15m ago•0 comments

Senate Panel Has Obtained Copy of Fauci's Cellphone

https://www.nytimes.com/2026/08/05/us/politics/fauci-phone-senate.html
2•ianeff•16m ago•0 comments

A year of AI disclosure in critical packages

https://nesbitt.io/2026/08/06/a-year-of-ai-disclosure-in-critical-packages.html
1•omkar-foss•16m ago•0 comments

AI music generator Suno loses copyright infringement legal case

https://www.nme.com/news/music/ai-music-generator-suno-loses-copyright-infringement-legal-case-39...
1•passwordoops•21m ago•0 comments

Vista: A Visual Harness for Reasoning in an Interactive World

https://vista-research.github.io/
1•haxfenx•23m ago•0 comments

Cloudflare OS: great insight into how to embrace internal AI demand securely

https://cephalosec.com/blog/cloudflare-os-insights-on-embracing-internal-ai-growth-securely/
1•Versipelle•23m ago•0 comments

Time Magazine has a separate version of its website with ads only AI can see

https://www.theregister.com/ai-and-ml/2026/08/05/time-magazine-has-a-separate-version-of-its-webs...
1•rguiscard•24m ago•0 comments

Slow Light Communications

https://medium.com/luminasticity/slow-light-communications-81bdd7a87afe
1•bryanrasmussen•25m ago•0 comments

You Should Almost Never Use AI to Write Anything Substantive

https://www.erichgrunewald.com/posts/why-i-think-you-should-almost-never-use-ai-to-write-anything...
1•erwald•26m ago•0 comments

Stillsane: Detect silent quality drift in deployed LLM apps

https://pypi.org/project/stillsane/
1•MSanket9•28m ago•0 comments

Grounded document extraction with bounding-box citations

https://pspdfkit.github.io/nutrient-extraction-samples/
1•marakiii•29m ago•0 comments

Turning Air into Alcohol [video]

https://www.youtube.com/watch?v=ID-K64Jk6JM
1•DiscourseFan•30m ago•0 comments

HCC – local-first, cross-agent memory layer (98% cache hit, $40/mo)

https://github.com/icemaple77/hanyan-cognitive-core
1•icemaple77•30m ago•0 comments

Products make going back unimaginable

https://datawarrior.medium.com/the-best-products-make-going-back-unimaginable-30049de81568
1•nikolamilosevic•33m ago•0 comments

Chrysalis (hypothetical moon) and Saturn's rings

https://en.wikipedia.org/wiki/Chrysalis_(hypothetical_moon)
1•simonebrunozzi•33m ago•0 comments

Show HN: My free web dev courses, no signup, with exercises

https://en.andros.dev/courses/
1•andros•36m ago•0 comments

The Aikido Machine: on-prem AI pentesting that never leaves your network

https://www.aikido.dev/blog/the-aikido-machine-on-prem-ai-pentesting-that-never-leaves-your-network
1•ultra2d•37m ago•0 comments

Show HN: Rask – The .NET One Person Framework

https://pal-tamas.github.io/rask/
1•pal-tamas•38m ago•0 comments

Using Git diffs to circumvent Fable's safeguards

https://blog.j11y.io/2026-07-18_Jailbreaking-Fable-disinformation/
2•padolsey•39m ago•0 comments

ESPBanking – Offline, local banking server running on a single ESP32

https://github.com/dumasha05/ESPBBanking1/blob/main/README.md
1•Dumasha05•39m ago•0 comments

Anthropic is hiring an AI chip design team

https://techcrunch.com/2026/08/05/anthropic-is-hiring-an-ai-chip-design-team/
2•mpfect•39m ago•0 comments

Claude Fable 5 finds a tiny formula that topples an 87-year-old math conjecture

https://www.sciencedaily.com/releases/2026/08/260804034634.htm
3•theanonymousone•43m ago•0 comments

1 RCE, 2 AI models, 0 ways to tell who was right

https://zhenyi.gibber.blog/1-rce-2-ai-models-0-ways-to-tell-who-was-right
1•zhenyi•43m ago•0 comments

We built a local SQL engine for DynamoDB

https://dynotable.com/blog/local-sql-engine-for-dynamodb
2•dynotable•44m ago•1 comments