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.

Jensen Huang says the junior developer problem ends in two years

https://thenewstack.io/huang-ai-agents-engineers/
1•monkeydust•9s ago•0 comments

Physical Self-Play

https://www.skild.ai/blogs/physical-self-play
1•mostlyk•2m ago•0 comments

Ask HN: Can you suggest an interesting skill?

2•skwasimin•7m ago•3 comments

LensVLM-9B by Apple

https://huggingface.co/papers/2605.07019
3•nthypes•10m ago•0 comments

Agent Etna – Automated staging environment and regression compiler for AI agents

https://www.agentetna.com/
1•giuerr•10m ago•0 comments

WebGPU-Bench: A WebGPU Microbenchmark

https://ben3d.ca/blog/introducing-webgpu-bench
2•ibobev•11m ago•0 comments

Realtime Raytracing in Bevy 0.20 (Solari)

https://jms55.github.io/posts/2026-09-18-solari-bevy-0-20/
1•ibobev•11m ago•0 comments

AI can never produce sublime art

https://hilariusbookbinder.substack.com/p/ai-can-never-produce-sublime-art
1•bananaflag•12m ago•0 comments

ALP: Adaptive Lossless Floating-Point Encoding in Apache Parquet

https://parquet.apache.org/blog/2026/09/22/alp-adaptive-lossless-floating-point-encoding-in-apach...
1•ibobev•12m ago•0 comments

Show HN: Lifeboat, 2-6x more concurrent agent sessions per GPU, no quantization

https://github.com/IterateAI/lifeboat-releases
1•chanuiterate•13m ago•0 comments

Why Omarchy Exists

https://mikael.pika.page/posts/why-omarchy-exists
5•mikae1•14m ago•0 comments

The Python documentation is now available in Persian

https://blog.python.org/2026/09/the-python-documentation-is-now-available-in-persian/
1•lumpa•14m ago•0 comments

An LLM Beat NetHack

https://kenforthewin.github.io/blog/posts/llm-nethack-ascension/
2•jwm1•14m ago•0 comments

The Most Important Market in AI Is the Middle

https://tomtunguz.com/the-most-important-market-in-ai-is-the-middle/
1•simonpure•17m ago•0 comments

Cursor Introducing Projects

https://cursor.com/blog/projects
2•Leonerd•18m ago•0 comments

Immigration changes are driving foreign researchers to leave the U.S.

https://www.statnews.com/2026/05/04/trump-immigration-policy-stat-survey-measures-science-impact/
3•Bluestein•18m ago•0 comments

Are we going to use the same Desktop UX forever? [video]

https://media.ccc.de/v/kde2026-7-are_we_really_going_to_use_the_same_desktop_ux_forever
1•ognarb•19m ago•0 comments

How the pro-nicotine 'wellness' movement rebranded an addictive drug

https://theconversation.com/how-the-pro-nicotine-wellness-movement-rebranded-an-addictive-drug-29...
1•devilcius•19m ago•0 comments

Empire of Grift

https://www.theatlantic.com/magazine/2026/10/maga-foreign-policy/688352/
4•rbanffy•20m ago•0 comments

CP/M-80 2.2 Compilers. (Update from June 19, 2026: Dave Glover – by David Lee

https://medium.com/@davidly_33504/cp-m-80-2-2-compilers-91958a8f1d58
1•rbanffy•20m ago•0 comments

Signature 27 is likely Motorola's first smartphone with GrapheneOS support

https://www.heise.de/en/news/Signature-27-is-likely-Motorola-s-first-smartphone-with-GrapheneOS-s...
1•thunderbong•20m ago•0 comments

Ten thousand magnets later – CERN Courier

https://cerncourier.com/ten-thousand-magnets-later/
1•rbanffy•21m ago•0 comments

Developers Song (2011) [video]

https://www.youtube.com/watch?v=RwMvW9cAIZg
1•thesdev•21m ago•0 comments

What are passkeys? A simple guide for friends and family

https://whatarepasskeys.info/
2•timmyc123•24m ago•1 comments

Show HN: QBasic 1.1 in the Browser

https://www.vahidyousefzadeh.com/qbasic/app
4•vahidce•25m ago•0 comments

How can this Amazon scammer keep going, not shipping any goods?

https://www.amazon.de/sp?language=en&ie=UTF8&seller=A29EBN4DXM8UCL&asin=B0CGBFF8K9&ref_=dp_mercha...
18•kiloklokillo•26m ago•10 comments

The Cloudflare error page X icon is not centered

https://infosec.exchange/@rebane2001/117319966425143761
2•ambigious7777•26m ago•0 comments

Open Source World of Warcraft Client in C++ and Vulkan Renderer

https://github.com/Kelsidavis/WoWee
1•m0do1•27m ago•0 comments

Show HN: Free attestation for AI agent decisions – verifying one costs $0.10

https://github.com/0xsims/rubric-attest
1•RubricProtocol•27m ago•0 comments

Meta Connect 2026: Watch Live Sept 23–24

https://www.meta.com/connect/
2•simonpure•28m ago•0 comments