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•8mo ago

Comments

zoezoezoezoe•8mo 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•8mo 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.

Before Maltese: Languages in Malta from Prehistory to the Byzantine Age [pdf]

https://www.um.edu.mt/library/oar/bitstream/123456789/45222/1/Before_Maltese.pdf
1•andsoitis•2m ago•0 comments

Removing Tahoe's Unwanted Menu Icons

https://weblog.rogueamoeba.com/2026/01/10/removing-tahoes-unwanted-menu-icons/
2•ingve•2m ago•0 comments

Astral (uv, ty, ruff) plugins for Claude Code

https://github.com/astral-sh/claude-code-plugins
1•m-hodges•2m ago•0 comments

How to search Remote-from-Anywhere jobs

1•andrewstetsenko•3m ago•0 comments

Show HN: AgentWallet – Open-source financial infrastructure for AI agent

https://github.com/JackD720/agentwallet
1•JackDavis720•6m ago•0 comments

Improved Skin Function After Dietary Intake of Kiwifruit

https://www.jidonline.org/article/S0022-202X(25)03509-2/fulltext
1•lxm•7m ago•0 comments

Uncut Reviews: Kraftwerk – Reissues

https://www.uncut.co.uk/reviews/uncut-reviews-kraftwerk-reissues-5459/
1•Ringz•7m ago•1 comments

Horus Framework: a Rust Robotics Library

https://github.com/softmata/horus
1•7777777phil•8m ago•0 comments

X Is a Power Problem, Not a Platform Problem

https://connectedplaces.online/reports/a-power-problem-not-a-platform-problem/
2•danielspace23•10m ago•0 comments

The Multi-Trillion-Dollar Battle for Your Attention Is Built on a Lie

https://www.nytimes.com/2026/01/10/opinion/attention-world-war-2-technology-nazis.html
2•smburdick•13m ago•1 comments

Open Chaos: A self-evolving open-source project

https://www.openchaos.dev/
2•stefanvdw1•14m ago•0 comments

Show HN: A local-first Boolean search builder for Recruiters (No back end)

https://recruiter-boolean-tool.netlify.app/
1•kenny_tom•14m ago•0 comments

Show HN: I built a social network limited to 4 colors and 8kHz audio

https://frickfrack.net/
1•gurudevelopment•14m ago•0 comments

The coming AI compute crunch

https://martinalderson.com/posts/the-coming-ai-compute-crunch/
1•martinald•15m ago•0 comments

Historical reference data for commodity benchmarks

https://benchmarkwatcher.online/
1•alikatyc•18m ago•0 comments

Show HN: HackLikeMe – A DevSecOps CLI agent that thinks before it acts

https://hacklikeme.com
1•abrarnasirj•20m ago•0 comments

We Need to Talk About How We Talk About 'AI'

https://www.techpolicy.press/we-need-to-talk-about-how-we-talk-about-ai/
1•tiberius_p•20m ago•2 comments

California is completely drought-free in 25 years

https://www.theguardian.com/us-news/2026/jan/09/california-completely-drought-free
1•andsoitis•22m ago•0 comments

Markets in Everything

https://www.dopaminemarkets.com/p/dopamine-markets-2025-annual-letter
1•27153•22m ago•0 comments

How British colonialism increased diabetes in south Asians

https://www.theguardian.com/world/video/2023/oct/12/how-british-colonialism-increased-diabetes-in...
1•thunderbong•25m ago•0 comments

Show HN: Agent-of-empires: opencode & claudecode session manager

https://github.com/njbrake/agent-of-empires
2•river_otter•27m ago•0 comments

Three major reasons to reject the vibe-coding hype

https://www.danielbrendel.com/blog/56-three-major-reasons-to-reject-the-vibe-coding-hype
3•foxiel•30m ago•0 comments

Ask HN: What frustrates you most about personal finance apps?

5•FrankHobson•31m ago•2 comments

Vance Announces New Deputy AG Role to Root Out Supposed "Fraud"

https://truthout.org/articles/vance-announces-new-deputy-ag-role-to-root-out-supposed-fraud/
2•wahnfrieden•32m ago•0 comments

Cloudflare defies Italy's Piracy Shield, won't block websites on 1.1.1.1 DNS

https://arstechnica.com/tech-policy/2026/01/cloudflare-may-pull-servers-out-of-italy-over-order-t...
4•saghm•34m ago•0 comments

Show HN: Why Nvidia's PhysX is hitting a "SIM-to-Real" wall at 5000W

https://github.com/ZC502/The-90-Percent-Waste/blob/main/README.md
3•ZuoCen_Liu•34m ago•1 comments

0-Click Wiretapping Bluetooth Headphones

https://remyhax.xyz/posts/generic-wireless-headphone-hacks/
1•jerrythegerbil•35m ago•0 comments

Why users shouldn’t choose their own LLM models

https://www.coderabbit.ai/blog/why-users-shouldnt-choose-their-own-llm-models-choice-is-not-alway...
1•TheAnkurTyagi•36m ago•1 comments

DMARC policy is useless – interactive

https://wraps.dev/blog/your-dmarc-policy-is-useless
1•stewartjarod•36m ago•0 comments

2026 looks ominous for media, from Hollywood to journalism

https://www.npr.org/2026/01/10/nx-s1-5599552/media-2026-warner-paramount-netfilx-trump
4•andsoitis•36m ago•2 comments