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.

How the Moat Is Moving

https://mashedbits.substack.com/p/the-moat-is-moving
1•JesseObrien•32s ago•1 comments

Show HN: Use Codex/Claude Code as your personal financial assistant

https://github.com/junnjiee/finance-agent
1•jjuniordev•1m ago•0 comments

Learning to recognize rick roll QR codes on sight

https://marcos.ac/blog/rickroll/
1•spaghetti-code•1m ago•0 comments

LLMs can unmask pseudonymous users at scale with surprising accuracy

https://arstechnica.com/security/2026/03/llms-can-unmask-pseudonymous-users-at-scale-with-surpris...
1•alwillis•1m ago•0 comments

Goals vs. Systems

https://web.archive.org/web/20210811125743/https://www.scottadamssays.com/2013/11/18/goals-vs-sys...
1•Brysonbw•4m ago•0 comments

Apple introduces the new MacBook Air with M5

https://www.apple.com/newsroom/2026/03/apple-introduces-the-new-macbook-air-with-m5/
3•Garbage•4m ago•0 comments

I Brought an AI to a Hacking Contest (and Won)

https://medium.com/@pol.avec/i-brought-an-ai-to-a-hacking-contest-and-won-a8c9998745c9
1•pol_avec•5m ago•1 comments

Apple debuts M5 Pro and M5 Max to supercharge the most demanding pro workflows

https://www.apple.com/newsroom/2026/03/apple-debuts-m5-pro-and-m5-max-to-supercharge-the-most-dem...
1•ryanhn•5m ago•0 comments

Show HN: Corepoints – Screen Candidates for AI Proficiency at Scale (Demo Run)

https://corepoints.ai/
1•abhiparuchuri•6m ago•0 comments

Show HN: VellaVeto – Fail-closed runtime proxy for MCP tool calls, in Rust

https://github.com/vellaveto/vellaveto
1•paolovella•6m ago•1 comments

Golioth is now a part of Canonical

https://blog.golioth.io/golioth-is-now-a-part-of-canonical/
1•hasheddan•6m ago•0 comments

Show HN: I got tired of rewriting webhook verification for every provider

https://tern.hookflo.com
1•ontern•6m ago•0 comments

Show HN: PrecisionAudit–An AI copy auditor that actively deletes marketing fluff

https://www.precisionaudit.app
1•rgb1903•6m ago•1 comments

Coasty hit #1 on OSWorld at 82%, beating every major AI lab (written by the AI)

https://coasty.ai/
1•PrateekJ17•6m ago•1 comments

Show HN: Axe – A CLI for running single-purpose LLM agents

https://github.com/jrswab/axe
1•jrswab•6m ago•0 comments

Show HN: FixYou – AI tool that tells you which cancer screenings you need

https://www.fixyou.app/
1•forrestzhong•7m ago•0 comments

Confusing AI with Fed Hikes

https://www.apolloacademy.com/confusing-ai-with-fed-hikes/
1•akyuu•7m ago•0 comments

Apple Introduces MacBook Pro with All‑New M5 Pro and M5 Max

https://www.apple.com/newsroom/2026/03/apple-introduces-macbook-pro-with-all-new-m5-pro-and-m5-max/
15•scrlk•7m ago•4 comments

Relocating Health Care Professionals Worldwide to British Columbia

https://bchealthcareers.ca/
1•TigerUniversity•8m ago•0 comments

Gram – an opinionated fork of the Zed code editor

https://gram.liten.app
1•microflash•8m ago•0 comments

Show HN: ODL – Organization as Code. I wrote specs, AI wrote 100% of the code

1•ku_•9m ago•0 comments

Apple unveils new Studio Display and all-new Studio Display XDR

https://www.apple.com/newsroom/2026/03/apple-unveils-new-studio-display-and-all-new-studio-displa...
2•victorbjorklund•9m ago•0 comments

Ask HN: What did you switch to after Loom got acquired by Atlassian?

2•vishrut19•10m ago•0 comments

Show HN: ChatGPT gets your prompt before you hit send

https://chatwall.io/blog/ai-can-read-your-data.html
1•phico•11m ago•1 comments

Show HN: KrunAI – A CLI tool for running AI agents inside microVM sandboxes

https://github.com/slp/krunai
1•slpnix•11m ago•0 comments

Training neural networks on Apple Neural Engine

https://github.com/maderix/ANE
1•danielmorozoff•11m ago•0 comments

Accessibility.md

https://mgifford.github.io/ACCESSIBILITY.md/
1•speckx•11m ago•0 comments

Show HN: Beetroot – Clipboard manager for Windows with AI transforms

https://github.com/mnardit/beetroot-releases
1•MaxNardit•12m ago•1 comments

Show HN: Reflectt-node – AI agents who built our own task board. Here it is

https://github.com/reflectt/reflectt-node
1•reflectt•13m ago•1 comments

Zen of AI Coding

https://nonstructured.com/zen-of-agentic-coding/
1•yoaviram•13m ago•0 comments