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.

Show HN: Homelabinator, the easiest way to self-host

https://homelabinator.com/
1•daniala•41s ago•0 comments

Right of Reply

https://en.wikipedia.org/wiki/Right_of_reply
1•joebig•2m ago•0 comments

Infrastructure Lead position at AI startup Intric

https://careers.intric.ai/jobs/7256033-first-infrastructure-lead-build-europe-s-secure-ai-platform
1•vicasp•3m ago•0 comments

The machine didn't take your craft. You gave it up.

https://www.davidabram.dev/musings/the-machine-didnt-take-your-craft/
1•thm•5m ago•0 comments

The latest world climate report is grim, but it's not the end of the story

https://theconversation.com/the-latest-world-climate-report-is-grim-but-its-not-the-end-of-the-st...
3•Anon84•7m ago•0 comments

State of the Global Climate 2025

https://wmo.int/publication-series/state-of-global-climate/state-of-global-climate-2025
2•Anon84•7m ago•0 comments

Fallingfruit.org – Public Land Foraging Map

https://fallingfruit.org/?locale=en
1•twotwoz•7m ago•0 comments

LLMs learn what programmers create, not how programmers work

2•noemit•9m ago•0 comments

Russian authorities block paywall removal site Archive.today

https://techcrunch.com/2026/03/23/russian-authorities-block-paywall-removal-site-archive-today/
2•jborichevskiy•9m ago•1 comments

The Immortalism Manifesto

https://immortalism.bryanjohnson.com/
1•Anon84•9m ago•0 comments

NOAA's National Weather Service eyes the cloud for next-gen applications

https://www.noaa.gov/news-release/noaas-national-weather-service-eyes-cloud-for-next-gen-applicat...
4•WalterSobchak•11m ago•0 comments

Show HN: I built an art management platform for visual artists

https://artworkcodex.com
1•contusion1782•11m ago•0 comments

Show HN: Burn Room – ephemeral SSH chat, messages burn after 1 hour

https://burnroom.chat
2•joematrix•13m ago•0 comments

Next-generation electricity is almost here

https://www.gatesnotes.com/work/accelerate-energy-innovation/reader/the-next-generation-of-electr...
2•jonbaer•13m ago•0 comments

How would you attack a local-first password manager?

https://apps.microsoft.com/detail/9p4r9gpcrvhb?hl=en-US&gl=US
1•merimens•14m ago•1 comments

Bets on US-Iran ceasefire show signs of insider knowledge, say experts

https://www.theguardian.com/us-news/2026/mar/23/bets-us-iran-ceasefire-show-signs-of-insider-know...
7•trocado•15m ago•0 comments

Parent sues over likely worthless 'bond' meant to prop up troubled school

https://www.universalhub.com/2026/croft-school-parent-sues-over-likely-worthless-croft-bond-meant...
2•ilamont•17m ago•1 comments

The Long-term decline of the US Job ladder (NBER)

https://www.nber.org/papers/w34981
2•imakwana•17m ago•0 comments

Any experience with the BrailleRap open source Braille embosser?

https://github.com/braillerap/BrailleRap
1•jareds•18m ago•1 comments

CrowdMind – Validate product ideas with AI personas before you build

https://github.com/yasintoy/crowdmind
1•yasintoy•20m ago•0 comments

Bezos wants AI to approve permits in 10 seconds. What 1.8M permits show

https://prevesta.io/blog/bezos-ai-building-permits
2•archiekane•21m ago•0 comments

Amazon is making a new smartphone more than a decade after its Fire Phone

https://sherwood.news/tech/amazon-is-making-a-new-smartphone-more-than-a-decade-after-its-fire-ph...
2•avonmach•22m ago•2 comments

Computers This Week

https://hesnotjoking.substack.com/p/computers-b0a
1•ucla_rob•23m ago•0 comments

Kamal, Rails deployments, and Rega turntables

https://marianposaceanu.com/articles/kamal-rails-deployments-and-rega-turntables
1•dakull•23m ago•0 comments

Tappie-py – A cross-platform Homebrew GUI for macOS and Linux, built with Python

https://www.empiricapps.com/tappie/download
1•mburlac•25m ago•0 comments

Semi-retirement, or, changing my relationship with the BSDs

https://briancallahan.net/blog/20260322.html
1•t-3•25m ago•0 comments

UN warns of record 'climate imbalance' as planetary warming accelerates

https://news.un.org/en/story/2026/03/1167178
4•geox•27m ago•0 comments

Veevo Health – book a CT angiogram to see plaque buildup in your arteries

2•arvindsr33•28m ago•0 comments

American Aviation Is Near Collapse

https://www.theatlantic.com/newsletters/2026/03/aviation-failures-tsa-dhs-shutdown/686505/
28•JumpCrisscross•29m ago•3 comments

Ask HN: Are you also getting more angry with Claude as you use it for longer?

2•kykat•30m ago•0 comments