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.

ECB to Scrutinize Anthropic's Mythos on Call with Executives

https://www.bloomberg.com/news/articles/2026-04-16/ecb-to-scrutinize-anthropic-s-mythos-on-call-w...
1•Brajeshwar•37s ago•0 comments

1•Koshima•41s ago

CCBE has adopted the CCBE technical guide on GenAI [pdf]

https://www.ccbe.eu/fileadmin/speciality_distribution/public/documents/IT_LAW/ITL_Guides_recommen...
1•District5524•1m ago•1 comments

Konductor Workflow – The AI Orchestration Agent Framework for Every Dev

https://alphabits.team/news/blog/konductor-workflow-release-the-ai-agent-framework-we-built-for-o...
1•kentnguyen•2m ago•1 comments

The Skills That Matter Now

https://jasonrobert.dev/blog/2026-04-10-the-skills-that-matter-now/
1•hulksmash5756•2m ago•0 comments

Ask HN: What function will inference cost take v.s. time?

1•davidajackson•2m ago•0 comments

Women Who Mapped the Universe and Still Couldn't Get Any Respect

https://www.smithsonianmag.com/history/the-women-who-mapped-the-universe-and-still-couldnt-get-an...
1•pmontra•5m ago•0 comments

AfterImage – Generate synthetic multi-turn chat data from documents

https://github.com/altaidevorg/afterimage
4•monatis•6m ago•1 comments

Google Told to Share Search Data with AI Rivals in EU Proposal

https://www.bloomberg.com/news/articles/2026-04-16/google-told-to-share-search-data-with-ai-rival...
1•gopkarthik•6m ago•1 comments

Agent-Safe Git

https://blog.gitbutler.com/agentic-safety
1•aspleenic•9m ago•0 comments

Canopy – local semantic code search that cuts AI agent tokens 85-91%

https://github.com/LioraLabs/canopy
1•shiny_guru•9m ago•0 comments

PyPI has completed its second audit

https://blog.pypi.org/posts/2026-04-16-pypi-completes-second-audit/
1•miketheman•9m ago•0 comments

Concerns mount over private credit in the United States

https://www.lemonde.fr/en/economy/article/2026/04/16/concerns-are-mounting-over-private-credit-in...
1•geox•10m ago•0 comments

Show HN: Rollquation – A Rolling-Ball Math Puzzle Game for Android (Solo Dev)

https://play.google.com/store/apps/details?id=com.JabGames.PathCalculationMathPuzzle&hl=en_US
1•falcon19j•10m ago•0 comments

The API Tooling Crisis: Why developers are abandoning Postman and its clones?

http://efp.asia/blog/2025/12/24/api-tooling-crisis/
2•birdculture•12m ago•1 comments

Artifacts: Versioned storage that speaks Git

https://blog.cloudflare.com/artifacts-git-for-agents-beta/
1•jgrahamc•12m ago•0 comments

Parsing Keywords in Lisp with Speed of C

https://in-parentheses.codeberg.page/posts/lisp-as-fast-as-c/
1•yacin•12m ago•0 comments

The World Bank thinks better of its old free-market absolutism

https://www.theatlantic.com/ideas/2026/04/world-bank-industrial-policy/686820/
1•AndrewDucker•12m ago•0 comments

Rust 1.95.0

https://blog.rust-lang.org/2026/04/16/Rust-1.95.0/
2•caution•13m ago•0 comments

Mozilla Thunderbolt

https://www.thunderbolt.io/
2•dabinat•13m ago•0 comments

Monthly News – March 2026

https://blog.linuxmint.com/?p=5019
1•paulnpace•15m ago•0 comments

Show HN: Projects in 25 Weeks Challenge

https://randomdailyurls.com/25-projects/
1•kilroy123•16m ago•0 comments

Is Anthropic Enshittifying their core product?

https://sderosiaux.substack.com/p/is-anthropic-enshittifying-their
1•chtefi•16m ago•1 comments

Linux Begins Removing Support for Russia's Baikal CPUs

https://www.phoronix.com/news/Linux-Dropping-Baikal-CPUs
1•Brajeshwar•18m ago•0 comments

Setupx – Sync your dev environment across macOS, Linux, and Windows

https://github.com/sumant1122/setupx
1•paperplaneflyr•18m ago•0 comments

Writing a Nanopass Compiler (2014) [video]

https://www.youtube.com/watch?v=Os7FE3J-U5Q
1•tosh•19m ago•0 comments

The Dunning-Kruger Machine

https://www.whitenoise.email/p/the-dunning-kruger-machine
1•twhite214•19m ago•1 comments

Observational constraints project a ~50% AMOC weakening by end of century

https://www.science.org/doi/10.1126/sciadv.adx4298
1•littlexsparkee•23m ago•0 comments

Five failure modes I hit running coding agents at scale

https://blog.serghei.pl/posts/what-breaks-when-you-run-coding-agents-unsupervised/
1•serghei_•24m ago•1 comments

Floating Point Fun on Cortex-M Processors

https://danielmangum.com/posts/floating-point-cortex-m/
2•ingve•25m ago•0 comments