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•1y ago

Comments

zoezoezoezoe•1y 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•1y 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.

What rebuilding AlphaGo teaches us about self-play, RL, and future of LLMs [video]

https://www.youtube.com/watch?v=X_ZVSPcZhtw
1•mfiguiere•1m ago•0 comments

Your AI Use Is Breaking My Brain

https://www.404media.co/your-ai-use-is-breaking-my-brain/
2•bonsai_spool•3m ago•1 comments

Meta to receive $3.3B in tax breaks for its $10B Louisiana data center

https://fortune.com/2026/05/14/meta-data-center-tax-break-hyperion-louisiana/
4•logickkk1•9m ago•1 comments

Claude FM

https://www.youtube.com/watch?v=YmQ7jRgf4f0
2•arishi•14m ago•0 comments

Judge Bars Kars4Kids from Broadcasting 'Misleading' Ads in California

https://www.nytimes.com/2026/05/15/us/kars4kids-advertising-banned-california.html
10•xnx•14m ago•0 comments

Hotel check-in system exposed 1M passports and driver's licenses

https://techcrunch.com/2026/05/15/a-hotel-check-in-system-left-a-million-passports-and-drivers-li...
2•p_stuart82•15m ago•0 comments

Ask an Astronaut: 333 hours of Q&A footage with astronauts

https://askanastronaut.issinrealtime.org/
1•gaws•16m ago•0 comments

Obsidian Radar Plugin

https://github.com/lfcipriani/obsidian-radar
2•lfcipriani•16m ago•0 comments

The founder's playbook: Building an AI-native startup

https://claude.com/blog/the-founders-playbook
2•shenli3514•16m ago•0 comments

Fedora Hummingbird: Taking the Hummingbird model to the full operating system

https://fedoramagazine.org/fedora-hummingbird-linux-taking-the-hummingbird-model-to-the-full-os/
1•abdelhousni•17m ago•1 comments

Google's Gemini Omni video model surfaces ahead of I/O debut

https://www.testingcatalog.com/googles-gemini-omni-video-model-surfaces-ahead-of-i-o-debut/
1•gmays•18m ago•0 comments

Analysis of 70 years of "Eurovision" lyrics

https://puntofisso.net/eurovision/
1•gaws•18m ago•0 comments

WinCE64 – Windows CE 2.11 for N64

https://github.com/ThroatyMumbo/WinCE64
3•xyru•18m ago•0 comments

The Magic of Meetups

https://elijahpotter.dev/articles/product-product-product
1•chilipepperhott•20m ago•0 comments

OpenAI Models in OpenClaw, Done Right

https://openclaw.ai/blog/openai-models-in-openclaw-done-right
1•sansuk•22m ago•0 comments

Show HN: Claude Code vs. Codex Global Usage Leaderboard

https://costhawk.ai/leaderboard
3•optimizethis•23m ago•0 comments

Stop state surveillance in Canada. Stop Bill C-22

https://www.jccf.ca/stop-bill-c-22-stop-surveillance-in-canada/
2•YoctoYARN•23m ago•0 comments

Learning, Fast and Slow: Towards LLMs That Adapt Continually

https://gepa-ai.github.io/gepa/blog/2026/05/11/learning-fast-and-slow/
2•LakshyAAAgrawal•28m ago•0 comments

A New Kind of Family-Separation Crisis

https://www.theatlantic.com/politics/2026/05/honduras-deportations-without-children/687153/
2•paulpauper•28m ago•0 comments

I Was Drowning Running 14 Markets Alone. So I Built a $0.41/Day AI Employee

https://medium.com/@alanscottencinas/i-was-drowning-running-14-markets-alone-so-i-built-a-0-41-da...
1•encinas88•28m ago•0 comments

State media control influences large language models

https://www.nature.com/articles/s41586-026-10506-7
1•paulpauper•28m ago•0 comments

What I've Been Reading

https://marginalrevolution.com/marginalrevolution/2026/05/what-ive-been-reading-288.html
2•paulpauper•29m ago•0 comments

THORChain exploit hits Bitcoin, Ethereum, and BSC: Hackers steal over $10M

https://ambcrypto.com/thorchain-exploit-hits-bitcoin-ethereum-and-bsc-hackers-steal-over-10-mln/
6•wslh•30m ago•1 comments

Tell HN: Audible app used 19.8GB of data while not being used

2•jimnotgym•30m ago•1 comments

Show HN: X open sourced their algorithm

https://www.xalgorithm.xyz/en
3•hsnrique•31m ago•0 comments

Does Trump Mobile know how many stripes are on the American flag?

https://www.theverge.com/gadgets/931347/trump-mobile-t1-phone-logo-flag-stars-stripes
4•droidjj•34m ago•0 comments

Show HN: Emergence World: World building as a way to evaluate LLMs

https://world.emergence.ai/
2•deepakakkil•34m ago•0 comments

ABC News has taken all FiveThirtyEight articles offline

https://twitter.com/baseballot/status/2055309076209492208
36•cmsparks•34m ago•10 comments

Dual Intel Arc Pro B60(48G) Inference, Virtualization, and Gaming Testing

https://www.lttlabs.com/articles/2026/05/15/maxsun-intel-arc-pro-b60-dual-48g-turbo-review
3•LabsLucas•35m ago•0 comments

Ask HN: Reviewing Plan from Plan Mode

3•dennis3124•36m ago•0 comments