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.

Sam Altman asks if government can nationalize artificial general intelligence

https://thenewstack.io/openai-defense-department-debate/
2•MilnerRoute•1m ago•0 comments

Kopia – Encrypted, Compressed, and Deduplicated Backups

https://kopia.io/
1•GTP•2m ago•0 comments

Show HN: Reformat Word document citations (APA/Vancouver) in <1 second

https://github.com/brodie-neuro/ScholarRef
1•brodie-neuro•2m ago•1 comments

Website is a big waste of time

https://spacepanda.se/articles/toxic_pages.html
1•speckx•2m ago•0 comments

GPT 5.4 Thinking and Pro

https://twitter.com/OpenAI/status/2029620619743219811
2•twtw99•2m ago•0 comments

AI Slop Bores Me

https://www.youraislopbores.me/
1•KuSpa•2m ago•0 comments

Bron-Crypto: A Go cryptography library focusing on MPC

https://github.com/bronlabs/bron-crypto
1•somezero•3m ago•0 comments

Data Science Weekly – Issue 641

https://datascienceweekly.substack.com/p/data-science-weekly-issue-641
1•sebg•3m ago•0 comments

Pentagon Says It's Told Anthropic the Firm Is Supply-Chain Risk

https://www.bloomberg.com/news/articles/2026-03-05/pentagon-says-it-s-told-anthropic-the-firm-is-...
1•nickysielicki•5m ago•0 comments

What Is Phenomenology? [video]

https://www.youtube.com/watch?v=TG3fq-KHDDw
1•modinfo•6m ago•0 comments

A 2024 Plea for Lean Software (with running code)

https://berthub.eu/articles/posts/a-2024-plea-for-lean-software/
1•tosh•7m ago•0 comments

GPT-5.4 Thinking and GPT-5.4 Pro

https://twitter.com/i/status/2029620619743219811
6•denysvitali•7m ago•1 comments

Ask HN: Claude Regression for Anyone Else?

2•rudedogg•8m ago•0 comments

Ask HN: Moving from Software Engineer to PM or another area?

1•mr_00ff00•8m ago•1 comments

Oracle Plans Job Cuts in Face of AI Cash Crunch

https://www.bloomberg.com/news/articles/2026-03-05/oracle-layoffs-to-impact-thousands-in-ai-cash-...
1•speckx•9m ago•0 comments

Show HN: A unified event protocol dashboard for startup founders

https://founders-dashboard-pi.vercel.app
1•contact_codevia•10m ago•1 comments

GPT-5.4 Thinking System Card

https://openai.com/index/gpt-5-4-thinking-system-card/
6•mudkipdev•10m ago•0 comments

Show HN: Cognitive architecture for Claude Code – triggers, memory, docs

https://github.com/safety-quotient-lab/psychology-agent
1•9wzYQbTYsAIc•13m ago•0 comments

Free $1

https://block-book.com/user/kushalkd
1•blockbook123•13m ago•1 comments

GPT-5.4

https://openai.com/index/introducing-gpt-5-4/
32•meetpateltech•13m ago•6 comments

The Download: an AI agent's hit piece, and preventing lightning

https://www.technologyreview.com/2026/03/05/1133968/the-download-ai-agent-hit-piece-preventing-li...
1•joozio•14m ago•0 comments

Study highlights significant costs in large-scale mechanical thinning of forests

https://phys.org/news/2026-02-highlights-significant-large-scale-mechanical.html
3•PaulHoule•16m ago•0 comments

Reasoning models struggle to control their chains of thought, and that’s good

https://openai.com/index/reasoning-models-chain-of-thought-controllability/
7•meetpateltech•17m ago•0 comments

Urgent: Write the FCC to Oppose SpaceX and Reflect Orbital Plans

https://www.nakedcapitalism.com/2026/03/urgent-please-write-the-fcc-to-oppose-latest-spacex-world...
3•haagen•18m ago•0 comments

Deutschland-Stack: Open-Source Alliance Warns of "Sovereignty Washing"

https://www.heise.de/en/news/Deutschland-Stack-Open-Source-Alliance-warns-of-Sovereignty-Washing-...
4•doener•18m ago•0 comments

Show HN: RuneCast – Visual desktop automation with OpenCV template matching

https://nectra-th.github.io/runecast-releases/
1•ZalaterX•19m ago•0 comments

Using Codex as a Development Partner to Build an Interactive Fiction Platform

https://medium.com/@santi.santamaria.medel/interactive-fiction-platform-codex-ai-093358665827
2•oldskultxo•20m ago•0 comments

Free-range agentic parenting: If you love your agents, set them free

https://blog.firetiger.com/free-range-agentic-parenting-if-you-love-your-agents-set-them-free/
2•matsur•23m ago•0 comments

Maester – The Knowledge Engine of Your Company

https://lei-ye.dev/blog/introducing-maester/
2•leiishta•24m ago•0 comments

Show HN: Anti-regression setup Claude Code – subagents, hooks, and Claude.md

https://github.com/CreatmanCEO/claude-code-antiregression-setup
3•Creatman•24m ago•1 comments