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.

Show HN: Jev Chess – one shared board, the internet vs. a decision model

https://jevchess.com/
1•kulesh•39s ago•0 comments

Bessent Targets OpenAI Managers for Hugging Face Incident

https://www.bloomberg.com/news/articles/2026-09-21/bessent-targets-openai-managers-for-hugging-fa...
3•htrp•2m ago•1 comments

Robotics Is Harder

https://whattotelltherobot.com/p/robotics-really-is-harder
1•stefie10•4m ago•0 comments

Show HN: Sunday Drive

https://sundaydrive.dev/
1•fabrr•5m ago•0 comments

A quick overview of atomics in C

https://lemire.me/blog/2026/09/09/a-quick-overview-of-atomics-in-c/
1•surprisetalk•5m ago•0 comments

A weekend with Jev made my coding agents up to 31% faster

https://tyrpien.com/blog/oko-agent-search
1•bartlomein•6m ago•0 comments

Everything you need to know about Jev

https://vercel.com/i/what-is-jev
1•flashbrew•7m ago•0 comments

Show HN: I wrote a story you can investigate with Task Manager

https://pulite.org/
1•lateatdesk•7m ago•0 comments

Assay – Open-source mechanical checker for web pages, no tests, no LLM

https://github.com/awss1i/assay
1•awss1i•7m ago•0 comments

CratePrep – browser-based BPM/key/genre detection for DJ libraries

https://crateprep.app/
1•ANdrwww•7m ago•0 comments

I got to see Google's wild ideas about the future of laptops

https://www.theverge.com/tech/997986/google-googlebooks-android-laptops-dell-hp-lenovo-acer-asus-...
1•shscs911•8m ago•0 comments

A.I. House Can Provide You with Connections. It Also Has a Dark Side

https://www.nytimes.com/2026/09/21/technology/agi-house-ai-culture.html
1•reaperducer•10m ago•0 comments

Google hit with $463M fine for EU location data rule breach

https://abcnews.com/Technology/wireStory/google-hit-463-million-fine-eu-location-data-136616044
1•TechTechTech•12m ago•0 comments

Are You a Money Transmitter

https://faisalkhan.com/resources/interactive-tools/money-transmitter-license-assessment
1•faisalkhan999•13m ago•0 comments

AMD becomes latest chipmaker to reach $1T valuation on AI demand

https://www.reuters.com/business/amd-becomes-latest-chipmaker-reach-1-trillion-valuation-ai-deman...
2•mfiguiere•13m ago•1 comments

Apple auth keys currently having issues

https://appleid.apple.com/auth/keys
1•antoineleclair•14m ago•1 comments

Meta bans ads for Virginia Woolf play in Spain

https://www.theguardian.com/technology/2026/sep/21/meta-ban-virginia-woolf-a-room-of-ones-own-bar...
2•uxhacker•14m ago•0 comments

The Claude Delusion

https://pluralistic.net/2026/09/21/sunsetting/
2•hn_acker•14m ago•0 comments

Show HN: Self Improving AgentOrchestrator Skill

https://github.com/mathaix/claramap-builder
2•mathaix•14m ago•0 comments

Book Review: Is Parallel Programming Hard, and, If So, What Can You Do About It?

https://ahelwer.ca/post/2026-09-21-concurrency-textbook/
1•ahelwer•15m ago•0 comments

OnemanBSD (the selfcontaining OS) was updated

http://bialamusic.com/onemanBSD/
2•OnemanBSD•16m ago•0 comments

Attention is all you have

https://alicegg.tech/2026/09/21/attention
1•zer0tonin•18m ago•0 comments

Agent-First Carbon.now.sh Alternative

https://codeshot.dev/
1•matijash•19m ago•0 comments

Trust AI leaders when they AI is dangerous, but don't trust them when

https://simonlermen.substack.com/p/trust-ai-leaders-when-they-ai-is
2•DalasNoin•19m ago•0 comments

Jevslist

https://jevslist.com
2•xanderatallah•19m ago•1 comments

Noodle Gallery- Open-source, self-hosted alternative to Google Photos and Immich

https://digitalescapetools.com/tools/noodlegallery.html
1•xabd•22m ago•0 comments

Beyond the Hype: The Efficiency-Throughput Gap with GitHub Copilot

https://cacm.acm.org/research/beyond-the-hype-the-efficiency-throughput-gap-with-github-copilot/
1•adunk•22m ago•0 comments

Player Piano

https://en.wikipedia.org/wiki/Player_Piano_(novel)
2•drywater2•22m ago•0 comments

Effort to reduce wasted compute and move towards a greener future

1•adityankale1995•22m ago•0 comments

Petal, a First-of-Its-Kind 1 Petabits Transoceanic Subsea Cable

https://about.fb.com/news/2026/09/announcing-petal-meta-petabit-transoceanic-cable/
2•mfiguiere•25m ago•0 comments