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

Comments

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

A curated list of academic papers and resources on Physical AI

https://github.com/keon/awesome-physical-ai
1•kwk236•2m ago•1 comments

Show HN: Giant JSON Viewer – Open 1GB+ JSON Files on Android (Rust and MMAP)

https://giantjson.com/
1•kotysoft•2m ago•1 comments

The Insecure Evangelism of LLM Maximalists

https://lewiscampbell.tech/blog/260114.html
2•todsacerdoti•2m ago•0 comments

Launch on Hacker News

1•ramishamujahid•3m ago•0 comments

The Topology of Liberation: Jhanas, Cessations and the Geometry of Inner Harmony

https://andrsgmezemilsson.substack.com/p/the-topology-of-liberation-jhanas
1•eatitraw•6m ago•0 comments

EOL hardware should mean open-source software

https://www.marcia.no/words/eol
1•Marciplan•10m ago•0 comments

Show HN: Capture anything you see, here or think in your own knowledge base

https://www.tryultrathink.com
1•chriswright1664•18m ago•3 comments

Burroughs B21 / Convergent AWS Vintage Computer Restoration – Dr. Scott M. Baker

https://www.smbaker.com/burroughs-b21-convergent-aws-vintage-computer-restoration
2•rbanffy•18m ago•0 comments

Show HN: AsciiSketch a free browser-based ASCII art and diagram editor

https://files.littlebird.com.au/ascii-sketch.html
2•schappim•20m ago•0 comments

CentOS Hyperscale

https://www.centos.org/hyperscale/
2•Vortigaunt•24m ago•0 comments

Open Source Agent Toolkit

https://github.com/getlago/lago-agent-toolkit/pkgs/container/lago-agent-toolkit
2•jdenquin•26m ago•0 comments

We Don't Use AI

https://yarnspinner.dev/blog/why-we-dont-use-ai/
4•parisidau•29m ago•1 comments

Data Says You're Likely Screwing Up AI Adoption

https://gianlucamauro.substack.com/p/the-data-says-youre-likely-screwing
2•gianlucahmd•30m ago•0 comments

Why do educated people fall for conspiracy theories? It could be narcissism

https://theconversation.com/why-do-educated-people-fall-for-conspiracy-theories-it-could-be-narci...
5•defrost•33m ago•0 comments

How popular is Elon Musk?

https://www.natesilver.net/p/elon-musk-polls-popularity-nate-silver-bulletin
3•7777777phil•35m ago•3 comments

Show HN: Plezy – alternative Plex client built with Flutter

https://github.com/edde746/plezy
1•edde746•35m ago•0 comments

Show HN: Mp3rgain – Lossless MP3 volume adjustment in Rust

1•jphfa•36m ago•1 comments

A-1980-teenagers-view-of-social-media (2015)

https://medium.com/@brianstorms/a-1980-teenagers-view-of-social-media-eaf8a5fdbf6c
2•librasteve•37m ago•1 comments

A cave complex worthy of Batman Ten buildings that showed the world a new China

https://www.theguardian.com/artanddesign/2025/dec/17/cave-complex-batman-mind-boggling-buildings-...
1•PaulHoule•38m ago•0 comments

Epic vs. Health Gorilla: A New Fight Begins

https://healthapiguy.substack.com/p/epic-v-health-gorilla-a-new-fight
4•primitivesuave•41m ago•0 comments

Updating to the New Supabase Asymmetric JWT Keys Was a Developer's Dream

https://dreambase.ai/blog/updating-to-the-new-supabase-asymmetric-keys-was-a-developers-dream
1•alwaysunday•42m ago•0 comments

Senior AI Agents: True Intelligence Is Instructions Discovery

https://mrlesk.com/blog/instructions-following-discovery/
1•mrlesk•42m ago•0 comments

The Great Filter, Why High Performance Still Eludes Most Dev Teams, Even with AI

https://codemanship.wordpress.com/2026/01/12/the-great-filter-or-why-high-performance-still-elude...
2•terseus•44m ago•0 comments

Bad Apple but it's a sorting algorithm [video]

https://www.youtube.com/watch?v=3rz5GvCQjrc
1•layer8•47m ago•0 comments

Veo Goes Vertical

https://arstechnica.com/google/2026/01/googles-updated-veo-model-can-make-vertical-videos-from-re...
1•dreadsword•47m ago•1 comments

Lego

https://en.wikipedia.org/wiki/The_Lego_Group
1•simonebrunozzi•50m ago•0 comments

Terra - A rolling-release Fedora repository

https://terra.fyralabs.com/
2•doodlesdev•52m ago•0 comments

The Coming AI Compute Crunch

https://martinalderson.com/posts/the-coming-ai-compute-crunch/
1•gmays•55m ago•0 comments

SOTA on Bay Area House Party

https://www.astralcodexten.com/p/sota-on-bay-area-house-party
3•srijan4•56m ago•1 comments

Hypermobile Knees in Runners: Unlock Mobility, Prevent Injury, Run Strong

https://ralphhavenspt.substack.com/p/hypermobile-knees-in-runners-unlock
1•RalphHavensPT•56m ago•0 comments