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.

JautBook – AI Reddit

https://github.com/lanefiedler731-gif/JautBook
1•Lane1655•5m ago•0 comments

Crypto wallets received a record $158B in illicit funds last year

https://www.bleepingcomputer.com/news/security/crypto-wallets-received-a-record-158-billion-in-il...
1•heresie-dabord•5m ago•0 comments

A Firefox Android extension for YouTube background play

https://github.com/Rigmunssel/FixYTBackground
1•western_man•5m ago•0 comments

Don Lemon Released Without Bond over Minnesota Protest Charge

https://www.nytimes.com/2026/01/30/us/don-lemon-arrest-minnesota-church-protest.html
2•whack•6m ago•0 comments

Show HN: Moltbook Overtaken by Shellraiser

https://www.moltbook.com/post/74b073fd-37db-4a32-a9e1-c7652e5c0d59
1•mooball•6m ago•0 comments

Show HN: Free Text-to-Speech Tool – No Signup, 40 Languages

https://texttospeech.site/
1•digi_wares•9m ago•0 comments

What ICLR 2026 Taught Us About Multi-Agent Failures

https://llmsresearch.substack.com/p/what-iclr-2026-taught-us-about-multi
1•dippatel1994•10m ago•1 comments

Hawaii Deepfake Election Law Is Unconstitutional, Court Says

https://news.bloomberglaw.com/litigation/hawaiis-deepfake-election-law-violates-free-speech-court...
2•nradov•11m ago•0 comments

Humans Welcome to Observe

https://www.ignorance.ai/p/openclaw-moltbook-and-the-ai-agents
1•swolpers•12m ago•0 comments

SQLite WebAssemby

https://sqlite.org/wasm/doc/trunk/index.md
2•whatisabcdefgh•13m ago•0 comments

New York Congestion Pricing's Unexpected Winners: Suburban Drivers

https://www.bloomberg.com/news/articles/2026-01-30/how-manhattan-s-congestion-toll-speeds-up-trip...
1•helsinkiandrew•15m ago•0 comments

January 2026 Links

https://nomagicpill.substack.com/p/january-2026-links
1•nomagicpill•16m ago•0 comments

My Weekend Project Rentmyheader.xyz

https://www.rentmyheader.xyz/
1•abdibrokhim•16m ago•0 comments

Pi: The Minimal Agent Within OpenClaw

https://lucumr.pocoo.org/2026/1/31/pi/
2•admp•18m ago•0 comments

Show HN: Bunnie – Use Bun as the templating engine in Rust applications

https://github.com/aspizu/bunnie
1•aspizu•19m ago•0 comments

Finality does not exist in payments (2022)

https://www.bitsaboutmoney.com/archive/no-payments-are-final/
1•mooreds•22m ago•0 comments

The Math of the AI Bubble (A 2027 Forecast)

https://ksaweryskowron.substack.com/p/ai-without-the-bs-part-4
1•mooreds•24m ago•1 comments

Large-scale, high-quality, and diverse muli-round dialogue data

https://atlas.nomic.ai/data/stingning/ultrachat-1/map
1•onurkanbkrc•24m ago•0 comments

Nvidia's 10-year effort to make the Shield TV the most updated Android device

https://arstechnica.com/gadgets/2026/01/inside-nvidias-10-year-effort-to-make-the-shield-tv-the-m...
5•qmr•25m ago•0 comments

Manual Programming

https://illegalcode.net/rfcs/manual_programming.html
2•todsacerdoti•26m ago•0 comments

How should businesses respond to rising energy rates? (2025)

https://www.arcadia.com/blog/rising-energy-rates-businesses
1•mooreds•26m ago•0 comments

The rise (and future fall) of Discord

https://slugcat.systems/post/24-12-12-the-rise-and-future-fall-of-discord/
2•PaulHoule•26m ago•1 comments

Is Time a Fundamental Part of Reality? Quiet Revolution in Physics Suggests Not

https://singularityhub.com/2026/01/30/is-time-a-fundamental-part-of-reality-a-quiet-revolution-in...
1•Brajeshwar•27m ago•0 comments

Ctlsurf – A notebook that forces AI coding agents to document their shortcuts

https://app.ctlsurf.com/
1•sarkarsh•28m ago•1 comments

Moltbook Source Code

https://github.com/moltbook/moltbook-web-client-application
1•colesantiago•28m ago•1 comments

BotMaker: Simple Openclaw Configurator

https://github.com/jgarzik/botmaker
1•jgarzik•28m ago•1 comments

Astrological CPU Scheduler with eBPF

https://github.com/zampierilucas/scx_horoscope
1•risemlbill•31m ago•1 comments

The Hairy Ball Theorem by 3Blue1Brown

https://www.youtube.com/watch?v=BHdbsHFs2P0
1•-0•33m ago•0 comments

Synthetic datasets where failure emerges from dynamics, not labels

1•dynamics_lab•33m ago•0 comments

Mysterious Explosions in Iran Three Cites Rocked by Explosions. Likely Not US [video]

https://www.youtube.com/watch?v=PXAyFmmLzKM
1•ck45•33m ago•0 comments