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.

Roadie: Classic WinAmp on macOS with Music Assistant

https://roadie.sstools.co/
1•smallsharptools•1m ago•1 comments

Why AIs Can't Read?

https://blog.vladi.dev/en/articles/por-que-ias-nao-podem-ler.html
1•vdietrich•3m ago•0 comments

Show HN: OpenZPL. Render Zebra ZPL Labels to PNG/PDF, Drop-In for Labelary

https://openzpl.com/
1•lou_alcala•7m ago•0 comments

If Intelligence Is Getting Cheap, What Remains Expensive?

https://twitter.com/prathiknaidu/status/2112928049935118493
1•gmays•8m ago•0 comments

Claude Code will refuse to fill in passwords or use a password manager

https://github.com/anthropics/claude-code/issues/65358
2•txomon•12m ago•0 comments

NASA updates lander plans for Moon landings

https://arstechnica.com/space/2026/10/nasa-updates-lander-plans-for-moon-landings-finally-solves-...
1•sandyarmstrong•13m ago•1 comments

Soma – memory and proofs for AI agents, measured not asserted

https://github.com/mrpkk/soma-protocol
1•vnutrivas•14m ago•0 comments

Evolving Threat: http2shell is an RCE in node, Python, and more

https://nitter.click/AikidoSecurity/status/2113759110625906950?__galadriel=lPmlGl9id4oAd5UeBwMhlY...
2•cowlevel•15m ago•1 comments

Netomi

https://www.netomi.com/
1•handfuloflight•15m ago•0 comments

I built an alternative to Raindrop and Pocket

https://github.com/bookmarkforge/bookmarkforge-core
1•bookmarkforge•16m ago•0 comments

Show HN: Gasfree.app a Rack of Synthetizers in the Browser

https://gasfree.app/
1•tamat•17m ago•0 comments

Peregrine Fil-C: Actually Portable Memory Safe Executables

https://fil-c.org/peregrine
2•davikr•21m ago•0 comments

Expose only share links of a private service with caddy

https://dataswamp.org/~solene/2026-10-21-caddy-forward-auth-public-share-links.html
1•birdculture•21m ago•0 comments

UK "Be Ready" Campaign: Prepare for Emergencies (and Cyber Attack)

https://beready.campaign.gov.uk/
2•edferoci•21m ago•1 comments

iPhone Duo Owners Report Screens Breaking Along the Hinge

https://www.macrumors.com/2026/10/23/iphone-duo-screen-cracks/
5•dabinat•23m ago•2 comments

Using AI to clean your smart TV

https://github.com/Gathin23/cleanyourtv
1•jiggawatts•28m ago•0 comments

Show HN: AI Crash Debugging Gauntlet

https://www.forensicdbg.com/post/forensicdbg-s-ai-crash-debugging-gauntlet
1•blobdole•34m ago•0 comments

New playground to track your Azure Cloud Consumption

https://contextpilot.org/
1•msousa202•34m ago•1 comments

AgentProbe – test AI agents by making the systems around them fail

https://sampact.com/
1•SamvidK•35m ago•1 comments

Calibration, accuracy, variation across forecasts from prediction platforms

https://www.pnas.org/doi/10.1073/pnas.2615627123
1•7777777phil•38m ago•0 comments

Kurt Vonnegut envelope quote fact check

https://www.snopes.com/fact-check/kurt-vonnegut-envelope-quote/
2•inatreecrown2•40m ago•1 comments

Pg_stat_ch: Postgres extension to export query telemetry to open telemetry

https://github.com/ClickHouse/pg_stat_ch
1•saisrirampur•47m ago•0 comments

I paired seven months of coding-agent transcripts with a token inventory

https://morkeeth.substack.com/p/where-the-tokens-go-the-end-of-maxxing
1•Oscalemor•47m ago•0 comments

Multi-booting Windows 1.01 to Windows 10 on a non-Intel/AMD laptop

https://reddit.com/comments/1xdld4n/
1•thunderbong•55m ago•0 comments

I built a harness so I can watch Claude edit my videos live

https://agentcut.synteq.app
1•vlachomir•57m ago•0 comments

Show HN: I gamified my daily GitHub commits with a growing garden

https://commitgarden.app
1•kornelhal•1h ago•1 comments

The Insider

https://randsinrepose.com/archives/the-insider/
1•aray07•1h ago•0 comments

Aethyro – AI chat SaaS, and a billing bypass I found by attacking my own product

https://aethyro.com/
1•leer4030•1h ago•0 comments

Ask HN: What router will remain secure during the vulnpocalypse?

4•nonfunctional•1h ago•2 comments

Wall Street prepares for AI's "day after"

https://www.axios.com/2026/10/23/ai-catastrophe-wall-street
5•toomuchtodo•1h ago•0 comments