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

Comments

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

Various Novel iOS Apps by Elvure

https://elvure.app
1•mening12001•7m ago•0 comments

BotStadium – AI agents compete on live sports predictions in real-time

https://botstadium.ai
1•veeceey•10m ago•2 comments

Open Source, Open Mind: The Cost of Free Software (2024)

https://freeasinweekend.org/open-source-open-mind
2•pabs3•18m ago•0 comments

Free as in Weekend

https://freeasinweekend.org/
1•pabs3•19m ago•0 comments

ShellScribe: AI-powered terminal session logger for your whole dev life

https://luinbytes.github.io/shellscribe/
1•0x6c75•26m ago•1 comments

Ironies of Automation (1983) [pdf]

https://ckrybus.com/static/papers/Bainbridge_1983_Automatica.pdf
1•ramoz•30m ago•0 comments

What's the link between tattoos and vision loss?

https://theconversation.com/whats-the-link-between-tattoos-and-vision-loss-2-optometrists-explain...
1•defrost•41m ago•2 comments

Cog – A cognitive architecture for Claude Code (just Markdown files)

https://github.com/marciopuga/cog
2•marciopuga•41m ago•1 comments

ASCII and Unicode quotation marks (2007)

https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
3•exvi•42m ago•0 comments

The Blade Runner File: A Usenet Debate (1989)

https://scribble.com/uwi/br/br-file.html
1•exvi•45m ago•0 comments

Nuke the Hormuz

https://www.chinatalk.media/p/its-time
1•johncole•46m ago•1 comments

Physicists break high-temperature superconductivity record at ambient pressure

https://phys.org/news/2026-03-ceramic-shatters-longstanding-high-temperature.html
2•WaitWaitWha•47m ago•0 comments

FlyingWire – Semiconductor Building Digital Nervous Systems Deployed on Tape

https://www.siliconimist.com/p/flyingwire-mike-chieco
1•johncole•48m ago•1 comments

Lawmakers seek watchdog probe into former acting CISA chief's polygraph failures

https://www.nextgov.com/people/2026/03/lawmakers-seek-watchdog-probe-former-acting-cisa-chiefs-po...
2•WaitWaitWha•48m ago•0 comments

Anthropic and the Authoritarian Ethic

https://blog.giovanh.com/blog/2026/03/03/anthropic-and-the-authoritarian-ethic/
3•lr0•49m ago•0 comments

Mechanismo by Harry Harrison (2013)

http://theporporbooksblog.blogspot.com/2013/09/mechanismo-by-harry-harrison.html
1•exvi•50m ago•0 comments

White House meme war comms draw Yu-Gi-Oh criticism

https://www.theregister.com/2026/03/12/yugioh_us_propaganda/
3•abdelhousni•52m ago•2 comments

OpenAI's Bid to Allow X-Rated Talk Is Freaking Out Its Own Advisers

https://www.wsj.com/tech/ai/openai-adult-mode-chatgpt-f9e5fc1a
1•1vuio0pswjnm7•53m ago•0 comments

How Pokémon Go is giving delivery robots an inch-perfect view of the world

https://www.technologyreview.com/2026/03/10/1134099/how-pokemon-go-is-helping-robots-deliver-pizz...
3•mfiguiere•55m ago•0 comments

Neural Network Zoo (2016)

https://www.asimovinstitute.org/neural-network-zoo/
1•vismit2000•56m ago•0 comments

Coding After Coders: The End of Computer Programming as We Know It

https://simonwillison.net/2026/Mar/12/coding-after-coders/
1•abdelhousni•57m ago•0 comments

Show HN: Run the popular LLM-Course tutorials on HyperAI

https://hyper.ai/cn/notebooks/49873
1•Ada_trying•59m ago•0 comments

30 years fine-tuning micro-homestead oasis

https://www.youtube.com/watch?v=j4KlMiMgVLM
1•fallinditch•1h ago•0 comments

DeepSteve: A hackable multi-terminal for AI coding agents

https://deepsteve.com
1•mnorris•1h ago•0 comments

Pentagon praises Palantir tech for battlefield strike speed

https://www.theregister.com/2026/03/13/palantirs_maven_smart_system_iran/
1•abdelhousni•1h ago•0 comments

Open Source tool to detect On-Call Burnout from incident response patterns

https://github.com/Rootly-AI-Labs/On-Call-Health
2•hamzmu•1h ago•1 comments

Ask HN: Are there any CS niches safe from AI?

2•plutoh28•1h ago•6 comments

Bible RAG

https://benkaiser.github.io/bible-rag/
1•benkaiser•1h ago•0 comments

The Iran war may be about to escalate

https://www.economist.com/middle-east-and-africa/2026/03/15/the-iran-war-may-be-about-to-escalate
3•mikhael•1h ago•1 comments

Attention Residuals: Rethinking depth-wise aggregation [pdf]

https://github.com/MoonshotAI/Attention-Residuals/blob/master/Attention_Residuals.pdf
3•salkahfi•1h ago•0 comments