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.

Atmospheric warming contributions from airborne microplastics and nanoplastics

https://www.nature.com/articles/s41558-026-02620-1
1•debo_•14s ago•0 comments

A Decade in the Industry (2025)

https://www.davepagurek.com/blog/a-decade-in-the-industry/
1•wonger_•50s ago•0 comments

PGFPlots – A LaTeX package to create plots

https://pgfplots.sourceforge.net/
2•Tomte•1m ago•0 comments

Corn Holes

https://slimemoldtimemold.com/2025/10/22/corn-holes/
2•surprisetalk•2m ago•0 comments

TornadoVM

https://github.com/beehive-lab/TornadoVM
1•Tomte•2m ago•0 comments

Revisiting the 2015 Open Source Census

https://nesbitt.io/2026/05/06/revisiting-the-2015-open-source-census.html
1•whit537•2m ago•1 comments

Kubeli – A modern, beautiful Kubernetes management desktop application

https://github.com/atilladeniz/Kubeli
1•woumn•4m ago•0 comments

ReMarkable Releases a New Notepad

https://www.theverge.com/tech/922843/remarkable-paper-pure-e-ink-tablet-digital-notebook-notepad-...
2•Zhenya•4m ago•0 comments

Use Sparrow Check DSL to verify compliance of sshd configuration

https://chat.deepseek.com/share/slqit0lyo3assbdq2y
4•melezhik•5m ago•1 comments

CNN founder Ted Turner, a pioneer of cable TV news, dies at 87

https://www.cnn.com/2026/05/06/us/ted-turner-death
2•pseudolus•5m ago•0 comments

Explicit vs. implicit code in the age of coding agents

https://www.lesecretairedefernand.co/en/tech/explicit-vs-implicit-in-the-age-of-intelligences/
2•lbdremy•6m ago•1 comments

Ted Turner, cable TV visionary who created CNN, dies at 87

https://www.washingtonpost.com/obituaries/2026/05/06/ted-turner-dead-cnn/
2•bookofjoe•8m ago•1 comments

SubQ 12M token reasoning model

https://subq.ai/
2•brightball•9m ago•0 comments

Google Tag Gateway – Ad-Block Killer?

https://developers.google.com/tag-platform/tag-manager/gateway
2•sausajez•9m ago•0 comments

Microsoft Edge loads all your saved passwords into memory in cleartext

https://github.com/L1v1ng0ffTh3L4N/EdgeSavedPasswordsDumper
1•elnerd•9m ago•1 comments

The SECURE Data Act is Not a Serious Piece of Privacy Legislation

https://www.eff.org/deeplinks/2026/05/secure-data-act-not-serious-piece-privacy-legislation
1•hn_acker•10m ago•0 comments

Google DeepMind workers in UK vote to unionize amid deal with US Military

https://www.theguardian.com/us-news/2026/may/04/google-deepmind-uk-workers-union
2•nickcotter•12m ago•0 comments

Markdown badges generator for GitHub README (fast, copy-paste)

https://markdown-badges.vercel.app/
2•GFrancV•13m ago•0 comments

C# (with dotnet) on bare metal, a Cosmos gen3 preview

https://old.reddit.com/r/osdev/comments/1t55w29/c_with_dotnet_on_bare_metal_a_cosmos_gen3_preview/
1•pjmlp•13m ago•0 comments

Open weights are quietly closing up – and that's a problem

https://martinalderson.com/posts/open-weights-are-quietly-closing-up/
1•martinald•14m ago•0 comments

Floats Don't Agree with Themselves

https://docs.merca.earth/blog/floats-dont-agree-with-themselves
4•cremer•14m ago•0 comments

Islo.dev as Sandbox Provider on Crabbox

https://crabbox.sh/features/islo.html
1•zozo123-IB•15m ago•0 comments

Same Voice, Different Lab: On the Homogenization of Frontier LLM Personalities

https://arxiv.org/abs/2605.02897
1•Brajeshwar•16m ago•0 comments

AlphaFold database hits 'next level': the AI system now includes protein pairing

https://www.nature.com/articles/d41586-026-00787-3
2•surprisetalk•17m ago•0 comments

F1 drivers are changing their racing strategies with new technical regulations

https://www.researchterminal.ai/terminal/c123e9f6-09ec-4222-b412-3aa8bafb0e6d
2•ipachanga•17m ago•0 comments

Taking down a European network with a TLS certificate

https://mxsasha.eu/posts/ripe-ncc-rpki-exploit-chain/
2•speckx•18m ago•0 comments

"Open" doesn't mean anything nowadays

https://lr0.org/blog/p/open/
2•jabrr7•19m ago•0 comments

Views on Confidential AI Systems

https://riverside.com/webinar/registration/eyJldmVudElkIjoiNjk4MzQ2OWJkNDUwMzQyMGRiNzk4ZWQ3Iiwic2...
1•raeroumeliotis•20m ago•0 comments

Subquadratic Sparse Attention Makes Long Context Practical

https://subq.ai/how-ssa-makes-long-context-practical
2•andsoitis•21m ago•0 comments

K

https://web.archive.org/web/20240414034604/https://archive.vector.org.uk/art10010830
1•tosh•21m ago•0 comments