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•12mo ago

Comments

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

The last Elasticsearch engineer you will hire

https://www.trydeer.sh/product
1•aspectrr•1m ago•1 comments

DuckDB 1.5.2 – SQL database that runs on laptop, server, in the browser

https://duckdb.org/2026/04/13/announcing-duckdb-152
1•janandonly•1m ago•0 comments

The Couch Keyboard Has Been Bad for Years and Framework Just Fixed It

https://www.yankodesign.com/2026/04/22/the-couch-keyboard-has-been-bad-for-years-and-framework-ju...
1•freedomben•1m ago•0 comments

Parallel Token Prediction for Language Models

https://www.justuswill.com/ptp/
1•drrelax•2m ago•0 comments

A music distributor is generating AI music now

https://dev.once.app/blog/omg-music-generation
1•jakehandy•3m ago•0 comments

Deploying to IPv6-Only Hetzner with Kamal and Ansible

https://uncomplicated.systems/2026/04/17/kamal-hetzner-ipv6-only
1•Jn2G3Np8•4m ago•1 comments

TaxHacker – Self-hosted AI accounting app

https://github.com/vas3k/TaxHacker
2•sebakubisz•5m ago•0 comments

Show HN: Momentum – showcase what you're shipping

https://app.heytangent.com/momentum/tangent
1•brandonmb•5m ago•0 comments

I'm a very slow thinker (2016)

https://sive.rs/slow
1•theorchid•5m ago•1 comments

Plants can 'hear' rain coming, spurring them into action

https://www.scientificamerican.com/article/plants-can-hear-rain-coming-spurring-them-into-action/
1•dylan604•5m ago•0 comments

Show HN submissions tripled and are now mostly vibe-coded

https://www.adriankrebs.ch/blog/design-slop/
2•hubraumhugo•6m ago•0 comments

China Makes an Island

https://www.nytimes.com/interactive/2026/04/22/world/asia/south-china-sea-island.html
1•tcp_handshaker•8m ago•0 comments

An AI‑enabled device code phishing campaign

https://www.microsoft.com/en-us/security/blog/2026/04/06/ai-enabled-device-code-phishing-campaign...
1•mooreds•8m ago•0 comments

AI Index Report

https://hai.stanford.edu/ai-index/2026-ai-index-report
1•mmaia•8m ago•0 comments

Inside Prime Video

https://insidetechandmedia.substack.com/p/inside-launching-ads-on-prime-video
1•NeedMoreCowbell•9m ago•0 comments

How I've Actually Been Using AI

https://www.indiehackers.com/post/how-ive-actually-been-using-ai-39109e2c59
1•TimLeland•10m ago•0 comments

Ask HN: How are you handling domain registration in agentic workflows?

1•AgentNews•10m ago•0 comments

Built a tool to turn any data into dashboards instantly – looking for feedback

1•dashbee•10m ago•0 comments

The PR you would have opened yourself

https://huggingface.co/blog/transformers-to-mlx
1•gmays•10m ago•0 comments

The Foreman Problem: Managing Teams When Your Best Worker Isn't Human

https://businessasusual.io/p/the-foreman-problem-managing-teams
1•mooreds•13m ago•0 comments

DNS reconnaissance and what it reveals about domains

https://www.whoisxmlapi.com/blog/dns-reconnaissance
1•mennylevinski•15m ago•0 comments

Welcome to Google Cloud Next '26

https://cloud.google.com/blog/topics/google-cloud-next/welcome-to-google-cloud-next26
1•Nic0•15m ago•0 comments

Design is not a moat. It's a generous gift

https://metedata.substack.com/p/008-design-is-a-generous-gift
1•young_mete•16m ago•0 comments

Delta Battlefield Management System

https://en.wikipedia.org/wiki/Delta_(situational_awareness_system)
1•e12e•22m ago•1 comments

Monkey Linux (1997)

https://jenda.hrach.eu/f2/monkeylinux/english.htm
2•alfiedotwtf•24m ago•1 comments

Lufthansa cuts 20k summer flights as fuel prices surge

https://www.bbc.co.uk/news/articles/cre1r4n5j5wo
2•vinni2•25m ago•0 comments

Geoviz JavaScript Library

https://riatelab.github.io/geoviz/
3•mariuz•30m ago•0 comments

Anthropic tests how devs react to yanking Claude Code from Pro plan

https://www.theregister.com/2026/04/22/anthropic_removes_claude_code_pro/
1•marcofloriano•30m ago•1 comments

Smile v6.0 Was Released

https://github.com/haifengl/smile
1•pdsminer•32m ago•1 comments

Iliad fragment found in Roman-era mummy

https://www.thehistoryblog.com/archives/75877
1•wise_blood•32m ago•0 comments