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

Comments

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

2.8 days to disaster: Why we are running out of time in low earth orbit

https://phys.org/news/2025-12-days-disaster-earth-orbit.html
1•smartmic•49s ago•0 comments

Dataset of 33k human evaluations across 33 AI models

https://huggingface.co/spaces/ProlificAI/humaine-leaderboard
1•bradfeh•6m ago•2 comments

Most startups fail at pricing because they test it too late

https://twitter.com/daraladje/status/2001734319048720812
1•Richz513•8m ago•0 comments

The Port I couldn't Ship

https://ammil.industries/the-port-i-couldnt-ship/
1•cjlm•9m ago•0 comments

Why Trump's social media company is merging with a fusion power firm

https://www.washingtonpost.com/business/2025/12/18/trump-media-merge-with-fusion-power-developer-...
1•reaperducer•9m ago•0 comments

Taming PostgreSQL GUC "Extra" Data

https://clickhouse.com/blog/taming-postgres-guc-extra-data
1•saisrirampur•12m ago•0 comments

IMProofBench open problem solved by GPT-5

https://leanprover.zulipchat.com/#narrow/channel/219941-Machine-Learning-for-Theorem-Proving/topi...
1•marojejian•14m ago•1 comments

The Automation Charade (2018)

https://logicmag.io/failure/the-automation-charade/
1•measurablefunc•15m ago•0 comments

Sk HN: Where would you use a "digital guestbook" that supports paid messages?

https://thewalll.com
1•rapgof•16m ago•1 comments

The boomer-doomer divide within OpenAI, explained by Karen Hao

https://bigthinkmedia.substack.com/p/the-boomer-doomer-divide-within-openai
1•pseudolus•17m ago•0 comments

StikDebug Removed from App Store, Developer Account Terminated

https://twitter.com/stephendev0/status/2001734340389024180
2•tech234a•18m ago•1 comments

Startup beat Big Tech on AI interpretability – new method reveals model circuits

https://www.corti.ai/stories/gim-a-new-standard-for-mechanistic-interpretability
1•haileybayliss•19m ago•1 comments

Tacit – short films about tacit knowledge from Stripe Press

https://www.stripe.press/tacit
1•ChrisArchitect•23m ago•1 comments

The Universal Law Behind Market Price Swings

https://physics.aps.org/articles/v18/196
1•bikenaga•23m ago•1 comments

Screen Takeover Attack in AI Tool Acquired for $1B

https://www.promptarmor.com/resources/screen-takeover-attack-in-ai-tool-acquired-for-1b
7•vollmarj•26m ago•0 comments

Show HN: A native iOS client for managing Cloudflare

https://apps.apple.com/us/app/clouder-for-cloudflare/id6755757771
1•Jeramo•27m ago•0 comments

Treat Emacs as an Elisp Runtime Using Eask

https://www.jcs-profile.com/posts/editor/elisp-runtime/
2•Jen-Chieh•27m ago•0 comments

Did maintainers abandon your critical open-source tool? There's a lifeline

https://www.zdnet.com/article/chainguard-emeritoss-support-for-abandoned-open-source-programs/
2•CrankyBear•29m ago•0 comments

Interactive Fluid Typography

https://electricmagicfactory.com/articles/interactive-fluid-typography/
8•list•30m ago•0 comments

Snowflake Postgres Is Now Available in Public Preview

https://www.snowflake.com/en/engineering-blog/postgres-public-preview/
3•kermatt•32m ago•0 comments

Dijkstra: The strengths of the academic enterprise (1994)

https://www.cs.utexas.edu/~EWD/transcriptions/EWD11xx/EWD1175.html
2•milanhbs•32m ago•0 comments

Why Socrates Hated the Ancient Greeks' Version of Ted Talks

https://medium.com/@gp2030/plato-part-2-socrates-43777cbaa61b
1•light_triad•33m ago•0 comments

We can't measure LLM reasoning because LLMs don't inhabit a world

2•kimounbo•34m ago•0 comments

A faster path to container images in Bazel

https://www.tweag.io/blog/2025-12-18-rules_img/
1•malt3•36m ago•0 comments

Just Use AI

https://justfuckinguseai.com/
2•kyrylo•36m ago•0 comments

Is It a Joke?

https://novalis.org/blog/2025-11-06-is-it-a-joke.html
1•luu•38m ago•0 comments

T5Gemma 2: The next generation of encoder-decoder models

https://blog.google/technology/developers/t5gemma-2/
3•milomg•38m ago•0 comments

Move Expressions (Part of Ergonomic RC for Rust)

https://smallcultfollowing.com/babysteps/blog/2025/11/21/move-expressions/
1•stmw•39m ago•0 comments

Zero Inflation

https://thetontineengine.substack.com/p/make-money-hard-again
2•rwmj•39m ago•0 comments

2026 Demo Day Dates

https://www.ycombinator.com/blog/2026-demo-days/
1•todsacerdoti•41m ago•0 comments