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•9mo ago

Comments

zoezoezoezoe•9mo 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•9mo 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.

Any recent fiction with software engineer protagonist?

1•yedidmh•1m ago•0 comments

Gonemaster: A Golang clone of the Zonemaster DNS checker

https://codeberg.org/pawal/gonemaster
1•fanf2•1m ago•0 comments

Library of Congress Pywb Wayback Machine

https://webarchive-beta.loc.gov/playback-services/general/
1•fuggh•2m ago•0 comments

Adversarial AIs debate your question, a judge picks the winner

https://mindhalo.ai/debates/
1•ivanmikhnenkov•4m ago•0 comments

Apple to Launch These 20 Products This Year

https://www.macrumors.com/2026/01/25/rumored-apple-products/
1•01-_-•4m ago•0 comments

Self-Recognition in Conversational Agents

https://arxiv.org/abs/2002.02334
1•elasolova•7m ago•0 comments

Joyus: I Tried Datastar

https://ajmoon.com/posts/joyus-i-tried-datastar
1•alex-moon•10m ago•0 comments

Ultimate Guide to LLM Memory

https://fastpaca.com/blog/ultimate-guide-to-llm-memory/
1•cpluss•10m ago•0 comments

Spinning Around: Please Don't

https://www.siliceum.com/en/blog/post/spinning-around/
2•todsacerdoti•11m ago•0 comments

Explainable machine learning: k many q-dimensional best-fit polytopes

https://figshare.com/articles/media/A_demo_of_k-polytopes/7991909?file=14884349
1•elasolova•12m ago•0 comments

Show HN: MWP – Open spec for making web content AI-readable

https://github.com/mbumpus/mwp-spec
1•digitalegoai•14m ago•0 comments

Lawsuit Alleges That WhatsApp Has No End-to-End Encryption

https://www.pcmag.com/news/lawsuit-alleges-that-whatsapp-has-no-end-to-end-encryption?test_uuid=0...
2•OutOfHere•14m ago•0 comments

What is 9bizub, how it works, and how Nigerians should use it

https://9bizub.com/archives/3624
1•CapricornQueen•15m ago•0 comments

Let the Chinese Cars In

https://www.noahpinion.blog/p/let-the-chinese-cars-in
2•xrd•16m ago•0 comments

The Importance of Diversity

https://geohot.github.io//blog/jekyll/update/2026/01/27/the-importance-of-diversity.html
2•aabiji•17m ago•0 comments

Aarte: Personal AI Assistant

https://www.aarte.co
1•haeli05•17m ago•0 comments

Simpler JVM Project Setup with Mill 1.1.0

https://mill-build.org/blog/17-simpler-jvm-mill-110.html
1•lihaoyi•17m ago•0 comments

The Inverted Panopticon: China Weaponized the West's Own Wiretap Infrastructure

https://shanakaanslemperera.substack.com/p/the-inverted-panopticon
2•jc_811•18m ago•0 comments

I went off the deep end with AI

https://newsletter.masilotti.com/p/i-went-off-the-deep-end-with-ai
1•joemasilotti•18m ago•1 comments

2026 MIT Integration Bee – Finals [video]

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

Show HN: Stratos – Pre-warmed K8s nodes that reuse state across scale events

https://github.com/stratos-sh/stratos
1•roeehersh•19m ago•0 comments

Agent Skills: From Claude to Open Standard to Your Daily Coding Workflow

https://laurentkempe.com/2026/01/27/Agent-Skills-From-Claude-to-Open-Standard/
1•mooreds•19m ago•0 comments

Writing a .NET Garbage Collector in C# – Part 6: Mark and Sweep

https://minidump.net/writing-a-net-gc-in-c-part-6/
1•pjmlp•19m ago•0 comments

Show HN: Bumpy, a lightweight alternative to Changesets/Nx Release

https://github.com/antonreshetov/bumpy
1•antonreshetov•22m ago•1 comments

Is "Story format" for a Link-in-Bio better UX or just a gimmick?

https://www.liqo.app/daniel
1•dlbcode•22m ago•1 comments

The Icon: How Nie Weiping Inspired and Reflected a Changing China

https://zhaoxo.substack.com/p/the-icon
1•shrinkzxo•23m ago•0 comments

Show HN: CodeSleep – No babysitting, code while you sleep

https://github.com/lingxiao10/codesleep
1•codesleep•24m ago•1 comments

Testing Frontier Vision-Language Models on Mazes and Handwriting. They Failed

https://inkslop.github.io
1•moatmoat•24m ago•0 comments

I Tell When Candidates Use AI in My Technical Interviews

https://desktopcommander.app/blog/2026/01/27/i-can-tell-when-youre-using-ai-in-my-interviews-here...
3•rafaepta•24m ago•0 comments

Show HN: Beyond Open Source: Why AI-Assisted Projects Need 'Open Method'

1•OlaProis•26m ago•0 comments