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.

Shor's algorithm: the one quantum algo that ends RSA/ECC tomorrow

https://blog.ellipticc.com/posts/what-is-shors-algorithm-and-why-its-the-single-biggest-threat-to...
2•iliasabs•7m ago•0 comments

After such knowledge, what forgiveness?

https://www.stevesailer.net/p/after-such-knowledge-what-forgiveness
1•tartoran•12m ago•0 comments

PpenPanzer: JavaScript/HTML5 rewrite of Panzer General 2 game

https://github.com/nicupavel/openpanzer
1•ibobev•13m ago•0 comments

CiaoTool – No-Code Multi-Chain Token Creation and Management Platform

https://ciaotool.io/en-US
1•CiaoTool•15m ago•1 comments

OpenAI Codex Plan / Spec Mode – We'd Love Your Input

https://github.com/openai/codex/discussions/7355
1•wahnfrieden•16m ago•0 comments

The VPN panic is only getting started

https://www.theverge.com/tech/827435/uk-vpn-restrictions-ban-online-safety-act
3•cebert•19m ago•1 comments

Local LLM based code reviews at Scripbox

https://medium.com/@jpranav97/zero-cost-code-reviews-self-hosted-qwen2-5-coder-on-gitlab-ci-80104...
1•vasuadari•19m ago•1 comments

Tell HN: Gemini 3 found a stack smash in a hex dump that I missed

1•leo_e•22m ago•0 comments

Quantica: A Python-like language with native quantum computing built in

https://github.com/Quantica-Foundation/quantica-lang
1•gurukasi2006•28m ago•0 comments

My car charger can boil water really fast [video]

https://www.youtube.com/watch?v=INZybkX8tLI
1•zdw•29m ago•0 comments

What's in a Button?

https://belkadan.com/blog/2025/11/Whats-in-a-Button/
2•todsacerdoti•34m ago•0 comments

Nvidia reportedly no longer supplying VRAM to GPU partners due to memory crunch

https://www.tomshardware.com/pc-components/gpus/nvidia-reportedly-no-longer-supplying-vram-to-its...
1•lysp•35m ago•0 comments

Jeffrey Epstein Was the Unofficial Advice Columnist for the Elites

https://defector.com/jeffrey-epstein-was-the-unofficial-advice-columnist-for-the-elites
5•tartoran•38m ago•0 comments

Former MIT scientist Joscha Bach funded by Epstein made racist claims in private

http://www.bostonglobe.com/2025/11/21/metro/epstein-emails-mit-joscha-bach/
2•tartoran•39m ago•0 comments

Investigating a Possible Scammer in Journalism's AI Era

https://thelocal.to/investigating-scam-journalism-ai/
2•pseudolus•46m ago•0 comments

Ask HN: What's the point of starting a startup if the failure rate is so high?

2•anon115•46m ago•5 comments

Can RGB light strips produce 16M colors?

2•emmasuntech•54m ago•0 comments

Show HN: I built a website for games that catch my eye

https://alistof.games
2•RaycatRakittra•57m ago•1 comments

Show HN: RcloneView – a GUI for rclone with 50% Black Friday deal

https://rcloneview.com/
1•newclone•59m ago•0 comments

Software Freedom Conservancy 2025 Fundraiser launched with largest match yet

https://sfconservancy.org/news/2025/nov/26/2025-fundraiser-launched-with-largest-match-yet/
1•pabs3•1h ago•0 comments

Calcium Deposits in the Arteries Not Always a Worry (2023)

https://www.mcgill.ca/oss/article/medical/calcium-deposits-arteries-not-always-worry
1•stacktrust•1h ago•0 comments

Former Google chief accused of spying on employees through account 'backdoor'

https://www.latimes.com/business/story/2025-11-20/former-google-chief-accused-of-spying-on-employ...
4•perihelions•1h ago•1 comments

Clog and Clog Builder 2.4

https://github.com/rabbibotton/clog/releases/tag/v2.4
4•mike_ivanov•1h ago•1 comments

A Boy They Called a Horse

https://biblicalman.substack.com/p/the-boy-they-called-a-horse
2•koolhead17•1h ago•0 comments

Secure Programming with Static Analysis [pdf]

https://ptgmedia.pearsoncmg.com/images/9780321424778/samplepages/9780321424778.pdf
1•ibobev•1h ago•0 comments

Eric Schmidt's ex-mistress sues former Google CEO over alleged stalking, abuse

https://nypost.com/2025/10/20/business/eric-schmidts-ex-mistress-31-sues-former-google-ceo-70-ove...
2•perihelions•1h ago•0 comments

Baikonur launch pad damaged after Russian Soyuz launch to ISS

https://www.aol.com/articles/baikonur-launch-pad-damaged-russian-210512525.html
3•thunderbong•1h ago•1 comments

HunyuanVideo 1.5: High-Quality AI Video Generation with Stable Motion

https://www.hunyuanvideox.com
1•Viaya•1h ago•1 comments

How a bunch of Starbucks baristas built a labor movement (2022)

https://www.vox.com/recode/22993509/starbucks-successful-union-drive
1•thunderbong•1h ago•0 comments

Intellect-3: A 100B+ MoE trained with large-scale RL

https://www.primeintellect.ai/blog/intellect-3
1•anacleto•1h ago•1 comments