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.

Vysio – Native iPad workspace for VS Code, Codespaces and code-server

https://vysio.app/en
1•elPerrino•24s ago•0 comments

Show HN: Faster-enhancer.c – FastEnhancer speech enhancement, 3.3x faster in C

https://github.com/kdrkdrkdr/faster-enhancer.c
1•kdrkdrkdr•33s ago•0 comments

Brain waves once seen as noise could help build a biological model of reality

https://medicalxpress.com/news/2026-07-brain-noise-biological-reality.html
1•JPLeRouzic•34s ago•0 comments

Tool Spotlight: JATS XML Converter Service

https://forum.edch.eu/t/tool-spotlight-jats-xml-converter-service/907
1•taubek•2m ago•0 comments

FilmMap – Where Films and TV series were filmed

https://thefilmmap.com/
1•Flightmussy•3m ago•0 comments

The Epoll Uaf

https://guysrd.github.io/epoll-uaf
1•signa11•5m ago•0 comments

Qantas tests ultra long-range Airbus in 17K km flight from France to Melbourne

https://www.theguardian.com/business/2026/jul/24/qantas-project-sunrise-airbus-a350-1000ulr-ultra...
1•thunderbong•5m ago•0 comments

A more robust [Go] proposal process

https://github.com/golang/go/discussions/80580
1•Cthulhu_•8m ago•0 comments

Risk-Data API – Solana token risk scoring for AI trading agents

https://www.tnt-audit.com/risk-api
1•risikdataapi•9m ago•0 comments

Airbus A350-1000 ULR Completes Non-Stop 24 Hour Flight

https://www.aerotime.aero/articles/airbus-qantas-a350-1000ulr-24-hour-flight
1•karakoram•10m ago•1 comments

Show HN: RenderPop – Free browser-based AI image and video generator

https://www.renderpop.app
1•sx2026•13m ago•0 comments

Segregation by Design – An atlas of spatial injustice

https://www.segregationbydesign.com
1•robtherobber•14m ago•0 comments

The AI risk is inside the labs

https://antirez.com/news/172
4•mirzap•16m ago•0 comments

Soumitra Dutta: A Visionary Perspective on AI and Global Competitiveness

https://clarity.fm/soumitradutta
1•AdhyaChadha•17m ago•0 comments

How to Copy and Sync a MongoDB Collection to PostgreSQL

https://visualeaf.com/blog/copy-and-sync-a-mongodb-collection-to-postgresql/
1•serena_wright•18m ago•0 comments

Debugging Application Insights locally without a cloud subscription

https://topaz.thecloudtheory.com/blog/debugging-application-insights-locally/
1•kamilmrzyglod•18m ago•0 comments

BaseCode – MDM for Coding Agents

https://basecode.cloud/
1•sivasurend•20m ago•1 comments

ALI: A Python agent architecture where the normative evaluator is

https://github.com/drwolfgangstegemann-sudo/ali-reference-implementation
2•WolfgangStege•21m ago•1 comments

Show HN: BrowserAct: Browser Layer for Your AI Agent

https://github.com/browser-act/skills
1•aanthonymax•21m ago•0 comments

Nvidia Bets on Ilya Sutskever's New AI Lab to Expand Compute Reach

https://www.wsj.com/tech/ai/nvidia-bets-on-ilya-sutskevers-new-ai-lab-to-expand-compute-reach-f95...
1•polymorph1sm•23m ago•0 comments

Magic: The Gathering's record year and America's stalled adulthood economy

https://fortune.com/2026/07/27/magic-the-gathering-millennial-housing-wealth-nostalgia-economy/
1•TrojanHookworm•23m ago•0 comments

Keyboardion

https://ianthehenry.com/posts/keyboardion/
1•alexpls•26m ago•0 comments

Gunther von Hagens, creator of Body Worlds and plastination, dies aged 81

https://www.theguardian.com/world/2026/jul/27/gunther-von-hagens-creator-of-body-worlds-and-plast...
1•xyzzy3000•27m ago•0 comments

Show HN: WizeMe – governed AI continuity with user-controlled memory

https://wizeme.app/
1•zrk222•27m ago•0 comments

One Ring to Rule Them All: Wiring Radios to Laptops the Hard Way

https://www.lysk.ai/post/wiring-radios-to-laptops-the-hard-way
2•majke•29m ago•0 comments

Ninfer: High-performance single-GPU inference

https://github.com/Neroued/ninfer
2•handfuloflight•29m ago•0 comments

Sphere Eversion

https://rreusser.github.io/explorations/sphere-eversion/
1•mathgenius•32m ago•0 comments

Show HN: Swift-topomap – A silicon-aware TUI and eBPF metrics engine in Rust

https://github.com/swiftlogicsystems/swifttopology
1•RathoreAnkur•33m ago•0 comments

Big Tech credit risks rise sharply as AI spending soars

https://www.ft.com/content/ac136522-ecc7-4262-8702-e0d636ea3099
2•mapping365•33m ago•0 comments

AI writes code that breaks main half as often

https://mergify.com/reports/state-of-merge-queues-2026
2•guerby•33m ago•0 comments