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

Comments

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

Major Claude Code source leak offers deep insight into how Anthropic tool works

https://arstechnica.com/ai/2026/03/entire-claude-code-cli-source-code-leaks-thanks-to-exposed-map...
1•johnbarron•2m ago•0 comments

Why Inventing Color TV Was So Difficult [video]

https://www.youtube.com/watch?v=hyjCmIbRRvs
1•DamnInteresting•3m ago•0 comments

After 16 years and $8B, military new GPS software still doesn't work

https://arstechnica.com/space/2026/03/after-16-years-and-8-billion-the-militarys-new-gps-software...
2•johnbarron•4m ago•0 comments

Employers Beware: Uptick in BIPA Lawsuits Targeting AI Note-Taking Software

https://www.amundsendavislaw.com/labor-employment-law-update/employers-beware-uptick-in-bipa-laws...
2•jruohonen•4m ago•0 comments

Textstring

https://pushmatrix.github.io/textstring/
1•memalign•5m ago•0 comments

Show HN: Wozcode – double Claude Code output

https://www.wozcode.com/
4•bcollins34•9m ago•0 comments

Show HN: Spotlytt, A platform to create video resumes

1•pbs29•10m ago•2 comments

Jailbroken, open-source, pre-built iOS 26 virtual machine

https://github.com/34306/vphone-aio
1•huragok•10m ago•0 comments

A survey of how companies are buying AI professional services

https://www.aienablementinsider.com/products/buyer-survey
1•dylancollins•11m ago•0 comments

SwarmSync– We built the transaction layer for autonomous AI Commerce

https://swarmsync.ai
1•TaxFix•12m ago•1 comments

Visual Pipeline Builder

https://www.pipevals.com/
1•todsacerdoti•14m ago•0 comments

Claude Code Buddy Creator

https://carter.works/experiments/claude-code-buddy-creator/
1•open-paren•14m ago•2 comments

Google attributes Axios hack to North Korea

https://techcrunch.com/2026/03/31/hacker-hijacks-axios-open-source-project-used-by-millions-to-pu...
5•ariporad•14m ago•0 comments

Ask HN: I burnt out from software development. What now?

1•fnoef•14m ago•2 comments

GitHub's Historic Uptime

https://damrnelson.github.io/github-historical-uptime/
5•todsacerdoti•14m ago•1 comments

VinFast going all-in on electric scooters with battery swap rollout in Vietnam

https://electrek.co/2026/03/31/vinfast-is-going-all-in-on-electric-scooters-with-massive-battery-...
1•breve•15m ago•0 comments

What about juniors?

https://brooker.co.za/blog/2026/03/25/ic-junior.html
1•lr0•17m ago•0 comments

LLMs encourages delusional thinking in patients, study finds

https://www.theguardian.com/technology/2026/mar/14/ai-chatbots-psychosis
3•lr0•19m ago•0 comments

Two more Liquid Glass fixes in macOS 26.4

https://anderegg.ca/2026/03/30/two-more-liquid-glass-fixes-in-macos-264
1•speckx•19m ago•0 comments

Do LLMs Break the Sapir-Whorf Hypothesis?

https://dnhkng.github.io/posts/sapir-whorf/
1•dot_treo•21m ago•3 comments

When an ALB Can Replace Nginx (and When It Can't)

https://yaw.sh/blog/when-alb-replaces-nginx/
2•jeffyaw•21m ago•0 comments

Ask HN: Is there any founder building non AI startup in 2026?

1•daudmalik06•21m ago•0 comments

GitHub Will Train Copilot Models with User Data by Default

https://www.heise.de/en/news/Only-with-opt-out-GitHub-will-train-Copilot-models-with-user-data-in...
2•lschueller•22m ago•1 comments

Leaked Memo Suggests Red Hat's Chugging the AI Kool-Aid

https://www.theregister.com/2026/03/31/red_hat_ai_dev/
4•jruohonen•22m ago•0 comments

Sprintra – Persistent memory for AI coding agents (MCP-native)

https://sprintra.io
1•sys_ravi•22m ago•0 comments

The Lucid Lunar Is a Robotaxi for Two Passengers

https://spectrum.ieee.org/lucid-motors-robotaxi
2•oldnetguy•25m ago•0 comments

The "Majority Illusion" in Social Networks [pdf]

https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0147617
1•thunderbong•25m ago•1 comments

Ask HN: How to Break into AI Engineering (Revisited)

1•lookingforsome•26m ago•0 comments

Irish lawmaker urges Stripe to flout US sanctions on UN investigator Albanese

https://www.politico.eu/article/irish-lawmaker-urges-stripe-payments-un-francesca-albanese-sancti...
2•t-3•31m ago•0 comments

Bourbon Whiskey Waste Turned into Supercapacitors That Store 25x More Energy

https://spectrum.ieee.org/supercapacitor-electrodes-bourbon-waste
2•prabal97•31m ago•0 comments