frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Avoid Continue

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

Comments

zoezoezoezoe•11mo 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•11mo 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.

Building a Mostly IPv6 Only Home Network

https://varunpriolkar.com/2026/03/building-a-mostly-ipv6-only-home-network/
1•arhue•3m ago•0 comments

Harness design for long-running application development

https://www.anthropic.com/engineering/harness-design-long-running-apps
2•tosh•8m ago•0 comments

Predictive Coding to Digital Brain: Neuroscience-Inspired Memory for AI Agents

https://blog.gazzurelli.com/from-predictive-coding-to-digital-brain-a-cognitive-architecture-for-...
1•duckma•10m ago•0 comments

Show HN: CI/CD in your terminal, zero YAML

https://zippy.sh
1•svanderbijl•11m ago•0 comments

Apotris – A free and multiplatform block stacking game

https://akouzoukos.com/apotris
1•routeroff•12m ago•0 comments

Addressing global removal race in Wayland

https://blog.vladzahorodnii.com/2026/03/24/addressing-global-removal-race-in-wayland/
1•fanf2•12m ago•0 comments

Money Disorder

https://en.wikipedia.org/wiki/Money_disorder
1•amelius•15m ago•0 comments

How to Install a Gem

https://andre.arko.net/2026/03/24/how-to-install-a-gem/
1•ingve•16m ago•0 comments

Skeleton of musketier d'Artagnan possibly found (Dutch)

https://nos.nl/artikel/2607725-skelet-van-vierde-musketier-d-artagnan-mogelijk-na-eeuwen-gevonden
1•28304283409234•19m ago•1 comments

Iris – a C inference pipeline for image synthesis models

https://github.com/antirez/iris.c
1•nnx•20m ago•0 comments

Death of Programming Languages?

1•tarunmangukiya•20m ago•0 comments

Death of the IDE?

https://addyo.substack.com/p/death-of-the-ide
1•vinhnx•22m ago•0 comments

How does behavior change happen

https://invertedpassion.com/how-does-behavior-change-happen/
1•vinhnx•22m ago•0 comments

Fractal Neuro Oscillator

https://sourceforge.net/projects/fractal-neuro-oscillator/
1•vector_the_lost•23m ago•0 comments

Firefox 149 adds split-view and free built-in VPN

https://www.firefox.com/en-US/firefox/149.0/releasenotes/
1•vidyesh•23m ago•0 comments

The junior developer pipeline is broken, and nobody has a plan to fix it

https://thinkpol.ca/2026/03/24/the-junior-developer-pipeline-is-broken-and-nobody-has-a-plan-to-f...
3•birdculture•25m ago•1 comments

AI Writes Code. You Own Quality

https://helderberto.com/posts/ai-writes-code-you-own-quality
1•helderburato•27m ago•0 comments

The Long Tail Comes for the Creative Industry

https://studios.greenhousepartners.com/insights/long-tail-creative-agencies-ai
1•mooreds•27m ago•0 comments

New Lord of the Rings movie is coming from superfan Stephen Colbert [video]

https://www.youtube.com/watch?v=HMHh4L2626A
1•HelloUsername•27m ago•0 comments

Hong Kong police can now demand phone passwords under national security law

https://www.bbc.com/news/articles/ce8j9yj52lro
2•latexr•30m ago•1 comments

Why no one cares? I'm building a physical Agent for seniors – nbdy gives a sh#t

https://github.com/thom-heinrich/twinr
1•thomheinrich•37m ago•1 comments

Sento: Actor Framework in Common Lisp

https://mdbergmann.github.io/cl-gserver/index.html
1•oumua_don17•38m ago•0 comments

The Trivy Supply Chain Attack Reached LiteLLM

https://grith.ai/blog/litellm-compromised-trivy-attack-chain
3•edf13•40m ago•1 comments

Show HN: I Built a Genogram Editor

https://genogrampro.com/free-genogram-maker
2•vincaslt•41m ago•1 comments

I Used AI to Do Real Science. It Hallucinated the Data

https://ryan.endacott.me/2026/03/25/ai-science-whale-strandings.html
2•rzendacott•43m ago•0 comments

Credential-stealing malware planted in widely used LiteLLM Python library

https://cyberinsider.com/new-supply-chain-attack-hits-litellm-with-95m-monthly-downloads/
1•bass_girl•47m ago•0 comments

Microsoft Product Name Changes

https://m365maps.com/renames.htm
2•riffraff•48m ago•0 comments

Limux: GPU-accelerated terminal multiplexer for Linux

https://github.com/am-will/limux
1•mariuz•49m ago•0 comments

MCS: Reproducible AI Infrastructure for Claude Code

https://mcs-cli.dev
2•bguidolim•54m ago•1 comments

Software Engineering Splits in Three

https://adventures.nodeland.dev/archive/software-engineering-splits-in-three/
2•vinhnx•57m ago•0 comments