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.

Lightning Map

https://map.blitzortung.org/
1•Cider9986•6m ago•2 comments

Apple Will Enable iOS 18 Security Updates for iOS 26-Capable Devices

https://www.wired.com/story/apple-will-push-out-rare-backported-patches-to-protect-ios-18-users-f...
2•tech234a•7m ago•0 comments

Burning Tokens Fast

https://github.com/openai/codex/issues/14593
1•0x1997•9m ago•0 comments

You're cooked either way. Which kind of cooked do you want to be?

https://www.eomag.io/article/ralphthon
1•chanwooEO•10m ago•2 comments

Intel SGX: Global Wrapping Key Extracted

https://twitter.com/_markel___/status/2039067007744688166
3•fogzen•10m ago•0 comments

ClawDecode – What we found reading all 512K lines of Claude Code's leaked source

https://www.clawdecode.net/
1•AveryChai•11m ago•1 comments

AI Agent Traps

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6372438
1•handfuloflight•12m ago•0 comments

Congressman Calls for FBI Help over Missing General, Scientists

https://www.newsweek.com/congressman-calls-for-fbi-help-over-missing-general-scientists-11764096
3•gradus_ad•16m ago•0 comments

From Hierarchy to Intelligence

https://twitter.com/jack/status/2039003879841362278
1•mellosouls•18m ago•0 comments

Rethinking Language Model Scaling Under Transferable Hypersphere Optimization

https://arxiv.org/abs/2603.28743
1•matt_d•19m ago•0 comments

NASA Chief: "We Just Built Antigravity Propulsion " [video]

https://www.youtube.com/watch?v=mOWwdIuyaQA
1•chadpaulson•21m ago•0 comments

Justice Dept. Struggles to Respond to Trump's Suit Against IRS

https://www.nytimes.com/2026/03/31/us/politics/trump-irs-lawsuit-doj.html
3•duxup•22m ago•1 comments

Red hair, one year later

https://imsadartistgirlfrominternet.substack.com/p/red-hair-one-year-later
1•lucieleud•23m ago•0 comments

LFM2.5-350M: No Size Left Behind

https://www.liquid.ai/blog/lfm2-5-350m-no-size-left-behind
1•jbarrow•24m ago•1 comments

Why seizing Iran's uranium would be so risky for the US

https://www.bbc.com/news/articles/cvglv5v4yvpo
2•tartoran•27m ago•0 comments

OpenAI Closes Silicon Valley's Largest-Ever Funding Round: $122B

https://www.wsj.com/tech/ai/openai-closes-silicon-valleys-largest-ever-funding-round-e48372c9
1•bookofjoe•31m ago•2 comments

My son pleasured himself on Gemini Live. Entire family's Google accounts banned

https://old.reddit.com/r/LegalAdviceUK/comments/1s92fql/my_son_pleasured_himself_in_front_of_gemi...
18•samlinnfer•36m ago•6 comments

Supreme Court opens door to conversion therapy

https://text.npr.org/nx-s1-5768105
2•1659447091•37m ago•1 comments

DDR5 RAM prices fall by as much as 30%, but memory shortage likely far from over

https://www.notebookcheck.net/DDR5-RAM-prices-fall-by-as-much-as-30-but-memory-shortage-likely-fa...
4•jeffufl•37m ago•0 comments

Business Insider Profiles Fidji Simo, OpenAI's 'CEO of Applications'

https://www.businessinsider.com/fidji-simo-openai-product-research-profitability-profile-2026-3
2•mitchbob•38m ago•1 comments

There's a reason you don't know

https://en.wikipedia.org/wiki/Wikipedia:There%27s_a_reason_you_don%27t_know
1•cainxinth•39m ago•0 comments

Claude Code Unpacked

https://ccunpacked.dev/#agent-loop
2•rmason•40m ago•0 comments

Dux: Distributed DuckDB-Native DataFrames for Elixir

https://dux.now/
2•cigrainger•42m ago•1 comments

There's a prediction market for jobs now. Software engineer is down 45% YTD

https://honeycomb-staging.open-hive.com/job/swe
3•vincentjiang•44m ago•2 comments

I built a multiplayer Wordle battle royale

https://wordleroyale.io
1•hexityhorcrux•45m ago•1 comments

Obsidian and Cursor had a baby. It's open source

https://cushionmd.com/
8•Aleex_c12•50m ago•2 comments

We intercepted the White House app's traffic. 77% of requests go to 3rd parties

https://www.atomic.computer/blog/white-house-app-network-traffic-analysis/
37•donutpepperoni•51m ago•9 comments

IRCv3 Downgrades

https://libera.chat/news/downgrades
1•abstractbeliefs•52m ago•0 comments

After 8 years of Gatsby.js, I built my own static site generator

https://pietrorea.com/2026/03/31/after-8-years-of-gatsby-js-i-built-my-own-static-site-generator/
1•prea•53m ago•0 comments

Anthropic Is Having a Month

https://techcrunch.com/2026/03/31/anthropic-is-having-a-month/
3•jnord•55m ago•0 comments