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.

GB POV: You Become a UFC Champion

https://www.youtube.com/watch?v=Jx4jcs4CKeU
1•ciadz•1m ago•0 comments

Ask HN: 3 months running an autonomous AI CEO on a Mac mini ($538 MRR)

1•MeetRickAI•1m ago•0 comments

Agents.md Are Useless

1•morganney•3m ago•0 comments

Psychiatry Is a Sham

https://fixingtao.com/2026/03/psychiatry-is-a-sham/
1•gslepak•3m ago•0 comments

I Made the Best Bookmark Manager and RSS Reader

https://www.youtube.com/watch?v=Wb5r61MeSQY
1•numericcitizen•5m ago•0 comments

BugPin: Self-hosted, open-source visual bug reporting tool

https://github.com/aranticlabs/bugpin
1•arantic•8m ago•0 comments

Just Created Your React Project? Don't PANIC–here's every file explained [video]

https://www.youtube.com/watch?v=B7m1jAs5FCk
1•stormsidali2001•8m ago•1 comments

Ask HN: If you could master one programming language for life, what would it be?

1•opengrass•8m ago•0 comments

Show HN: Git-surgeon – Git add -p for AI agents

https://github.com/raine/git-surgeon
1•rane•9m ago•0 comments

MCP Marketplace – an App Store for AI agent tools (17 servers, free to list)

https://mcp-marketplace-zeta.vercel.app
1•oneprofile•10m ago•0 comments

You and the Atomic Bomb (1945)

https://archive.org/details/YouAndTheAtomicBomb-English-GeorgeOrwell
1•measurablefunc•11m ago•0 comments

Local UI for managing parallel AI coding agents

https://github.com/shep-ai/cli
3•ArielSh•11m ago•0 comments

Lenny RPG

https://www.lennyrpg.fun/
1•mellosouls•12m ago•0 comments

KV-Cache Compression from First Principles – 10 strategies benchmarked in C

https://anne.lat/blog/kv-cache-compress
2•nadeko123•13m ago•1 comments

Openpokertools.com

https://github.com/openpokertools/openpokertools.com
1•indigodaddy•13m ago•0 comments

Nevada utility to Lake Tahoe: Find electricity elsewhere

https://calmatters.org/economy/2026/03/nevada-utility-to-lake-tahoe-find-electricity-elsewhere/
4•anigbrowl•14m ago•0 comments

Zines Are Not Blogs: A Not Unbiased Analysis

https://zines.barnard.edu/zines-are-not-blogs
1•dannyfritz07•17m ago•0 comments

Launched HN: I built the Worlds first Slice and Dice tool for Gaussian Splats

https://multitabber.com/
1•shraddha92•18m ago•1 comments

EPA Rejects Colorado's Regional Haze Plan over Disputed Coal Plant Closure

https://eelp.law.harvard.edu/epa-rejects-colorados-regional-haze-plan-over-disputed-coal-plant-cl...
2•geox•22m ago•0 comments

Stop Teaching R. Teach Python.

https://andrewpwheeler.com/2026/03/22/stop-teaching-r-teach-python/
1•apwheele•26m ago•0 comments

Agent Traffic Control

https://www.agenttrafficcontrol.com/
1•handfuloflight•28m ago•0 comments

The Abstraction Layer

https://www.swiftjectivec.com/the-abstraction-layer/
1•ingve•31m ago•0 comments

Terafab: the next step towards becoming a galactic civilization

https://twitter.com/spacex/status/2035519125284380672
2•simonebrunozzi•31m ago•0 comments

Show HN: Foundations of Music (FoM)

https://bookerapp.replit.app/book/fom
1•ersinesen•32m ago•0 comments

Intelligence, Agency, and the Human Will of AI

https://larrymuhlstein.substack.com/p/intelligence-agency-and-the-human
1•lmuhlstein•35m ago•0 comments

Show HN: Burrow, a Gopher browser/proxy written in JavaScript

https://burrow.din.gy/
1•treve•35m ago•0 comments

TrustClaw

https://www.trustclaw.app/
1•wallflower•38m ago•0 comments

RSS Creator on Bluesky and at Proto

https://zeldman.com/2026/03/22/rss-creator-on-bluesky-at-proto/
1•8organicbits•39m ago•0 comments

Interviewing tactics for a post-LLM world

https://blog.incrementalforgetting.tech/p/interviewing-tactics-for-a-post-llm
1•BerislavLopac•41m ago•0 comments

I built a free interactive platform to learn KDB/q

https://kdb-academy.web.app/
2•kdv-cave•42m ago•1 comments