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.

Berkshire Hathaway 2025 Annual Report [pdf]

https://berkshirehathaway.com/2025ar/2025ar.pdf
1•JasonHEIN•2m ago•0 comments

Roast My Code – AI that scores and roasts your codebase (open source)

https://github.com/Rohan5commit/roast-my-code
1•Rohan51•6m ago•1 comments

Ask HN: What are you working on? (March 2026)

1•nateb2022•10m ago•0 comments

Show HN: Agentic Workflows – 56 Ready-to-use Templates

https://github.com/OneRose328/awesome-agentic-workflows
1•OneRose•10m ago•1 comments

AI can slowly shift an organisation's core principles

https://www.rnz.co.nz/news/national/588247/ai-can-slowly-shift-an-organisation-s-core-principles-...
3•billybuckwheat•11m ago•0 comments

Show HN: Gpu.fund – GPU rental prices across Vast.ai, RunPod, AWS, GCP and more

https://gpu.fund/
1•catbot_dev•11m ago•0 comments

Mount Mayhem at Netflix: Scaling Containers on Modern CPUs

https://netflixtechblog.com/mount-mayhem-at-netflix-scaling-containers-on-modern-cpus-f3b09b68beac
1•vquemener•13m ago•0 comments

Show HN: Papercut – track ArXiv topics, get notified, skim with AI summaries

https://github.com/rajatady/Papercut
2•rajatady•21m ago•0 comments

Show HN: I built an open-source D&D app using Python and Llama 3.1

https://github.com/Cmccombs01/DM-Copilot-App
1•cmccombs01•27m ago•0 comments

Show HN: On-device element inspector for React Native

https://github.com/mabdinasira/react-native-element-inspector
2•mabdinasira•31m ago•1 comments

Need Your Next Builder?

2•msjpr•35m ago•0 comments

Pluralistic: If you build it (and it works), Trump will come (and take it)

https://pluralistic.net/2026/02/26/hanged-for-a-sheep/
4•xeonmc•44m ago•0 comments

AI Safety Farce

https://seanpedersen.github.io/posts/ai-safety-farce/
2•sean_pedersen•47m ago•0 comments

Show HN: SkillFortify, Formal verification for AI agents (auto-discovers)

https://github.com/varun369/skillfortify
2•varunpratap369•47m ago•1 comments

What breaks when you vote on specific claims instead of whole posts?

2•flyblackbox•48m ago•1 comments

Community-powered blocklist for removing slop from HN comments

https://github.com/supriyo-biswas/hn_slopblock
2•supriyo-biswas•50m ago•0 comments

What Hackers Consider Essential (1991)

1•validatori•54m ago•0 comments

Still Ours To Lose – almost all LLMs share one remarkable behavioral trait

https://ctsmyth.substack.com/p/still-ours-to-lose
2•K0balt•56m ago•1 comments

Textadept

https://orbitalquark.github.io/textadept/
2•giancarlostoro•1h ago•0 comments

Show HN: I built a desktop app combining Claude, GPT, Gemini with local Ollama

https://github.com/tsunamayo7/helix-ai-studio
1•tsunamayo•1h ago•0 comments

TrueSize: Compare Real Country and Region Sizes

https://truesize.net/#ts~N4IgbiBcDaCMCcA6eB2AzGgrAGgAyNhUxQA5sAmAXWxAEsppQBrKEAWlgBYSS0SQaABwagAx...
1•thunderbong•1h ago•0 comments

Claude Code is a great Dad side project environment

https://www.bitlog.com/2026/02/28/claude-code-is-a-great-dad-side-project-environment/
1•jakevoytko•1h ago•1 comments

Why some Americans who make a lot of money feel so poor

https://www.cnn.com/2026/01/06/economy/housing-childcare-availability-affordability-economy
3•paulpauper•1h ago•0 comments

Students are skipping the hardest part of growing up

https://www.omanobserver.om/article/1183600/opinion/students-are-skipping-the-hardest-part-of-gro...
3•paulpauper•1h ago•0 comments

The Great Unraveling Has Begun

https://www.nytimes.com/2026/01/06/opinion/peace-conflict-war.html
2•abdelhousni•1h ago•0 comments

Iranian Supreme Leader Ayatollah Khamenei Dies

https://www.wsj.com/world/middle-east/iranian-supreme-leader-ayatollah-khamenei-dies-94e0aa4c
5•LopRabbit•1h ago•1 comments

Show HN: Iosef, an iOS simulator CLI designed for agents

https://github.com/riwsky/iosef
1•riwsky•1h ago•0 comments

Signal vs. Noise in the Skills Ecosystem

https://olshansky.info/posts/2026-02-28-signal-vs-noise-in-the-skills-ecosystem
1•Olshansky•1h ago•0 comments

He wanted to use ChatGPT to create sustainable housing. Then it took his life

https://www.theguardian.com/technology/ng-interactive/2026/feb/28/chatgpt-ai-chatbot-mental-health
5•october8140•1h ago•1 comments

You think unemployed, I think retired

https://jesseduffield.com/You-Think-Unemployed-I-Think-Retired/
2•brandon_bot•1h ago•1 comments