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 Clock

https://blog.senko.net/the-clock
1•senko•4m ago•1 comments

CDC and health groups spent millions in ads on sites flagged for misinformation

https://www.cidrap.umn.edu/anti-science/cdc-health-groups-spent-millions-buy-ads-websites-flagged...
1•giuliomagnifico•6m ago•0 comments

Angine de Poitrine – Full Performance [video]

https://www.youtube.com/watch?v=0Ssi-9wS1so
1•vitto_gioda•7m ago•0 comments

PDS Mac OLM File to PST Converter

https://www.perfectdatasolutions.com/en/olm/olm-to-pst-converter.html
1•tieanderson•9m ago•0 comments

A brief history of instant coffee

https://worksinprogress.co/issue/a-brief-history-of-instant-coffee/
1•admp•13m ago•0 comments

GPUs vs. TPUs: Decoding the Powerhouses of AI

https://www.savvycanary.com/gpus-vs-tpus-decoding-the-powerhouses-of-ai/
1•car•17m ago•0 comments

Being the Human in the Loop – Kevlin Henney

https://www.youtube.com/watch?v=vpYJMr1pJRY
1•mcp_•18m ago•0 comments

Emotion Concepts and Their Function in a Large Language Model

https://transformer-circuits.pub/2026/emotions/index.html
2•Anon84•20m ago•0 comments

Trinity-Large-Thinking: Open-source 398B MoE (13B active) for agentic tasks

https://firethering.com/trinity-large-thinking-open-source-agent-model/
2•steveharing1•21m ago•0 comments

Trying to Be Responsible

https://chatgpt.com/s/t_69d0ca9364ac8191868c2850d26305aa
1•aljgz•24m ago•1 comments

Every dependency you add is a supply chain attack waiting to happen

https://benhoyt.com/writings/dependencies/
1•ingve•27m ago•0 comments

Engineering a Better Java Build Tool [video]

https://www.youtube.com/watch?v=OtsJ902k458
1•lihaoyi•31m ago•0 comments

The Evolution of x86 SIMD: From SSE to AVX-512

https://bgslabs.org/blog/evolution-of-x86-simd/
1•jiehong•32m ago•1 comments

The global oil crisis is turning into an everything crisis

https://www.cnn.com/2026/04/04/business/global-oil-crisis-shortage-everything-intl-hnk-dst
1•iamflimflam1•33m ago•0 comments

Show HN: Deeplink – Go library for short links, click tracking, and OG previews

https://github.com/yinebebt/deeplink
1•yinebeb_sc•35m ago•0 comments

Show HN: I rebuilt search using physics instead of statistics. +18.5% NDCG 10

https://github.com/Razshy/resonance-search
1•KendallCBooker•36m ago•0 comments

European Commission cloud breach: a supply-chain compromise

https://cert.europa.eu/blog/european-commission-cloud-breach-trivy-supply-chain
2•Sandman•36m ago•0 comments

Show HN: LaneKeep - let your agent run within boundaries that you define

https://github.com/algorismo-au/lanekeep
2•mightymo1•36m ago•1 comments

Show HN: Prematrix

https://www.prematrix.dev/
1•thomasfromcdnjs•39m ago•0 comments

Excess mortality attributable to the 2025 Iberian Peninsula blackout

https://www.medrxiv.org/content/10.1101/2025.06.03.25328877v1
2•mpweiher•39m ago•0 comments

Should you change your life decisions if we're being watched by alien drones?

https://marginalrevolution.com/marginalrevolution/2026/04/how-should-you-change-your-life-decisio...
1•jger15•40m ago•0 comments

Mechanical Techno Updates

https://www.youtube.com/watch?v=sBhGbHVQYvI
2•ngcazz•41m ago•0 comments

Mixed Precision Quantization on mlx comes with TurboQuant implementation

https://twitter.com/thin_signal/status/2028412948167942334
2•jsilence•43m ago•1 comments

Is it workig download yt video through yt-dlp after deploying?

1•sunill•51m ago•0 comments

LÖVE: 2D Game Framework for Lua

https://github.com/love2d/love
1•cl3misch•52m ago•0 comments

Talent is everywhere, opportunity is not. We are all losing out because of this

https://ourworldindata.org/talent-is-everywhere-opportunity-is-not
2•prakashqwerty•55m ago•2 comments

110k+ publications from 2025 might include hallucinated citations

https://www.nature.com/articles/d41586-026-00969-z
4•cyclecycle•57m ago•3 comments

SQLite in Production: Lessons from Running a Store on a Single File

https://ultrathink.art/blog/sqlite-in-production-lessons
3•thunderbong•57m ago•1 comments

Show HN: ZipSee – explore remote ZIP archives using HTTP range requests

https://zipsee.pages.dev/
1•vsekar•58m ago•0 comments

Free AI video clipper using scene and speech-based segmentation

1•sunill•58m ago•1 comments