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.

The Future of Testing Is Here

https://testkube.wistia.com/live/events/gigwl708fn
1•evwitmer•38s ago•1 comments

Vectary Canvas: AI-accelerated ideation across 2D, 3D and AR

https://www.vectary.com/waitlist/
1•mkoor•50s ago•0 comments

The Value of a Performance Oracle

https://wingolog.org/archives/2026/04/07/the-value-of-a-performance-oracle
1•abnercoimbre•1m ago•0 comments

The Internet's Most Powerful Archiving Tool Is in Peril

https://www.wired.com/story/the-internets-most-powerful-archiving-tool-is-in-mortal-peril/
2•doener•3m ago•0 comments

Bringing BitNet to ExecuTorch via Vulkan

https://www.collabora.com/news-and-blog/blog/2026/04/17/bringing-bitnet-to-executorch-via-vulkan/
1•losgehts•4m ago•0 comments

European Space Agency, more than 400 job opportunities in 2026

https://www.esa.int/About_Us/Careers_at_ESA/A_stellar_year_for_talent_more_than_400_job_opportuni...
2•johnbarron•6m ago•0 comments

Who will maintain the web when PHP's veterans retire?

https://thenewstack.io/php-web-skills-hiring-age/
1•Brajeshwar•6m ago•0 comments

Long-Tail Knowledge in Large Language Models

https://arxiv.org/abs/2602.16201
1•wslh•7m ago•0 comments

AI's Mainframe Moment

https://www.mjeggleton.com/blog/AIs-mainframe-moment
1•lelanthran•8m ago•0 comments

Where Enterprises Are Adopting AI

https://a16z.com/where-enterprises-are-actually-adopting-ai/
1•wslh•8m ago•0 comments

Apple's Mac Mini Went Viral. Why Can't You Buy One?

https://www.wsj.com/tech/personal-tech/apple-mac-mini-supply-3e7a7509
1•Anon84•9m ago•0 comments

Beyond Demo Day: Sorting and Value Added in Startup Accelerators

https://www.nber.org/papers/w35063
1•john_horton•10m ago•0 comments

Oil prices plunge as Iran says Strait of Hormuz 'open' during ceasefire

https://www.bbc.com/news/articles/ckg045z73z1o
2•geox•11m ago•0 comments

Hyperscalers have already outspent most famous US megaprojects

https://twitter.com/finmoorhouse/status/2044933442236776794
3•nowflux•11m ago•0 comments

Writing string.h functions using string instructions in asm x86-64

https://pmasschelier.github.io/x86_64_strings/
1•thaisstein•12m ago•0 comments

The Mystery of Rennes-Le-Château, Part 4: Non-Fiction Meets Fiction

https://www.filfre.net/2026/04/the-mystery-of-rennes-le-chateau-part-4-non-fiction-meets-fiction/
1•doppp•12m ago•0 comments

Probabilistic Record Linkage Using Pretrained Text Embeddings

https://www.cambridge.org/core/journals/political-analysis/article/probabilistic-record-linkage-u...
1•cowartc•13m ago•0 comments

I'm Coding by Hand

https://miguelconner.substack.com/p/im-coding-by-hand
1•evakhoury•15m ago•0 comments

The Instant Copy Trap Makes AI Creativity Impossible

https://tombedor.dev/creativity/
1•jjfoooo4•15m ago•0 comments

Your AI excitement is someone's AI apprehension

https://metedata.substack.com/p/007-your-ai-excitement-is-someones
1•young_mete•15m ago•0 comments

Why do dLLMs tend to collapse in RL

https://twitter.com/sheriyuo/status/2044305629813321742
1•gmays•16m ago•0 comments

Favcreator.com – Ranking the Best OnlyFans Creators

https://favcreator.com
1•favcreator•16m ago•1 comments

Why every SaaS app is becoming a chat bar

https://metedata.substack.com/p/006-the-chat-bar-isnt-lazy-design
1•young_mete•17m ago•1 comments

Show HN: I built a keyword research tool that doesn't require $99/month

https://kwverdit.com
1•cedric-hsu•18m ago•0 comments

Running a Minecraft Server and More on a 1960s Univac Computer

https://farlow.dev/2026/04/17/running-a-minecraft-server-and-more-on-a-1960s-univac-computer
1•farlow•19m ago•0 comments

My New Microphone! [video]

https://www.youtube.com/watch?v=iRThyHhhTdg
1•opengrass•19m ago•0 comments

Why are residential proxy providers charging per GB?

1•maxalbarello•20m ago•0 comments

Show HN: I made a anonymous gallery / Anti Social Media

https://galleryanonima.com/
1•filipfilm1978•20m ago•0 comments

I built on-device-only architecture for Mac utilities (and why it matters)

https://saneapps.com
1•SaneApps•20m ago•1 comments

Detecting DOSBox from Within the Box

https://datagirl.xyz/posts/dos_inside_the_box.html
3•atan2•21m ago•0 comments