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•1y ago

Comments

zoezoezoezoe•1y 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•1y 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.

Identity and Progressive Delivery

https://fusionauth.io/blog/progressive-delivery
1•mooreds•1m ago•0 comments

New Landing Page for Awesome PaaS

https://debarshibasak.github.io/awesome-paas/
1•debarshri•2m ago•0 comments

DarkMatter: Tamper-evident audit trail for AI agent decisions

https://darkmatterhub.ai
1•bengunvl•2m ago•0 comments

Musk promised his data center would reuse water. That's now stalled

https://www.politico.com/news/2026/05/05/xai-water-reuse-project-musk-ai-spacex-ipo-environmental...
1•disposition2•2m ago•0 comments

Pg_gRPC adds support for async calls

https://github.com/CSenshi/pg_grpc
1•Senshi•2m ago•1 comments

Ask HN: Who's adopting Apache Iceberg in 2026?

1•siddharth10•4m ago•0 comments

CRDTs for Free

https://ossa.network/blog/post/2026/05/05/crdts-for-free
1•jp_rider•5m ago•0 comments

Vine video-sharing app is back – and battling AI slop

https://www.theguardian.com/technology/2026/may/04/vine-video-sharing-back-battling-ai-slop-divine
1•Brajeshwar•5m ago•0 comments

Show HN: Give Feedback to Get Feedback Subreddit

https://www.artalabs.com/
1•RS_Singh•5m ago•0 comments

Show HN: New Benchmark from SWE-bench team is 0% solved

https://programbench.com/
2•lieret•7m ago•0 comments

Show HN: HF viewer – visualize any Hugging Face model

https://hfviewer.com/
1•vottivott•7m ago•0 comments

Show HN: A Mutating Webhook to automatically strip PII from K8s logs

https://github.com/aragossa/pii-shield
2•aragoss•8m ago•0 comments

Show HN: MCP server that lets Claude query your Google Calendar

https://github.com/zimdarsj/ai-side-hustle/tree/main/projects/personal-mcp-suite
1•zimdarsj•9m ago•0 comments

Show HN: Codeberg (Forgejo) CLI, built with Xclif

https://codeberg.org/thatxliner/codeberg-cli
1•thatxliner•10m ago•0 comments

An AI-native approach to personalized marketing

https://usereachout.com/blog/an-ai-native-approach-to-personalized-marketing
2•killer1loop•11m ago•1 comments

London Is Still Paying Rent to the Queen on a Property Leased in 1211

https://www.atlasobscura.com/articles/london-is-still-paying-rent-to-the-queen-on-a-property-leas...
1•thunderbong•11m ago•0 comments

HAM Radio Is Not Just for Talking

https://rfcorner.in/posts/ham-radio-is-not-just-for-talking/
1•speckx•12m ago•1 comments

Agents for Financial Services and Insurance

https://www.anthropic.com/news/finance-agents
3•louiereederson•12m ago•0 comments

ESP32 Hosts Solarpunk Message Board

https://hackaday.com/2026/05/04/esp32-hosts-solarpunk-message-board/
1•iamnothere•13m ago•0 comments

I tried making my own AG Grid, and it took 9 months

https://visualeaf.com/blog/why-my-custom-table-took-9-months/
4•Jacky101•13m ago•0 comments

Show HN: A no-AI tagging system - stop remembering your tags

https://www.supertags.app/
2•keyes343•14m ago•0 comments

AI systems are about to start building themselves

https://importai.substack.com/p/import-ai-455-automating-ai-research
3•JumpCrisscross•14m ago•0 comments

Show HN: Airbyte Agents – context for agents across multiple data sources

7•mtricot•14m ago•1 comments

Postgres – Asynchronous Commits

https://www.postgresql.org/docs/current/wal-async-commit.html
1•Brysonbw•15m ago•0 comments

AI inference infrastructure built on small and nano models

https://www.youtube.com/watch?v=C-6Zo1JvZkE
1•its_maddy_a•16m ago•1 comments

The ultimate guide to RL environments: building and scaling them in the LLM era

https://huggingface.co/spaces/AdithyaSK/rl-environments-guide
4•kashifr•16m ago•0 comments

It's official: Utah is the U.S. state closest to banning VPNs

https://tech.yahoo.com/vpn/article/its-official-utah-is-the-us-state-closest-to-banning-vpns-1535...
9•giantg2•16m ago•2 comments

Show HN: Claude-smart – Make Claude Code self-improve from every session

https://github.com/ReflexioAI/claude-smart
2•yilu331•17m ago•1 comments

LLM-test-kit – Test consistency, latency, cost and behavior of LLM apps

https://github.com/muskanjoshi01/llm-test-kit
1•muskanjo•18m ago•1 comments

Notes from Optimizing CPU-Bound Go Hot Paths

https://blog.andr2i.com/posts/2026-05-03-notes-from-optimizing-cpu-bound-go-hot-paths
1•molecularman•18m ago•0 comments