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.

Discord clarifies approach to age assurance

https://discord.com/safety/how-discord-is-building-safer-experiences-for-teens
1•dm•31s ago•0 comments

Hacker News Alternative Where People Are Positive About AI

1•dunk010•1m ago•0 comments

Show HN: Berkeley Xcelerator – early-stage AI and agentic AI accelerator

https://rdi.berkeley.edu/xcelerator
1•rdi_berkeley•1m ago•0 comments

5-century tree-ring record reveals intensification of West Mediterranean storms

https://cp.copernicus.org/articles/21/2205/2025/
1•PaulHoule•3m ago•0 comments

Russia Further Restricts Telegram, Escalating Internet Clampdown

https://www.nytimes.com/2026/02/10/world/europe/telegram-throttled-internet-russia.html
1•jbegley•3m ago•0 comments

Private RAG and marketplace to sell your knowledge to AI agents

https://ragora.app
1•mregmi405•5m ago•1 comments

Debugging random slow writes with GIN indexes in PostgreSQL

https://iamsafts.com/posts/postgres-gin-performance/
1•fanf2•8m ago•0 comments

FOSDEM 2026: RISC-V Hardware Is Here. What About Software? [video]

https://fosdem.org/2026/schedule/event/983NCX-what-about-riscv-software/
1•pjmlp•10m ago•0 comments

The Future of the Global Open-Source AI Ecosystem: From DeepSeek to AI+

https://huggingface.co/blog/huggingface/one-year-since-the-deepseek-moment-blog-3
2•mariuz•10m ago•0 comments

Ask HN: What useful knowledge do you have that LLMs don't?

1•toephu2•11m ago•1 comments

Show HN: Give your OpenClaw agent a serverless back end

2•knutmartin•14m ago•0 comments

10xBench – one-shot coding in Astro, React and Tailwind

https://10xbench.ai/
1•psmyrdek•16m ago•1 comments

Chasing Satellites with My Geodesic Dome [video]

https://www.youtube.com/watch?v=_NwdWkWjH_c
1•emsign•17m ago•0 comments

Lamp Rubbers

https://www.thoughtmerchants.com/opinion/lamp-rubbers
1•deltamidway•17m ago•0 comments

Humanity's Last Programming Language

https://xeiaso.net/blog/2026/markdownlang/
3•jhvkjhk•19m ago•0 comments

An Innocuous Blog Post about vPMU in QEMU

https://vulpinecitrus.info/blog/qemu-vpmu-heterogenous-cpu/
1•mmozeiko•20m ago•0 comments

The Linux Load Average

https://logical.li/blog/load-average/
1•herTTTz•21m ago•0 comments

US embassy in London denies visas to executives over minor offences

https://www.ft.com/content/a38dd4ce-08ce-48d8-b112-47167e4a703c
3•samaysharma•23m ago•1 comments

Adventures in Neural Rendering

https://interplayoflight.wordpress.com/2026/02/10/adventures-in-neural-rendering/
1•ingve•24m ago•0 comments

Localstack will require an account to use starting in March 2026

https://blog.localstack.cloud/the-road-ahead-for-localstack/
1•theHound•25m ago•0 comments

It's Over. The iPad Won

https://www.macworld.com/article/3056614/the-ipad-wins.html
2•tosh•25m ago•0 comments

WeWatch AI – The fix took 5 mins, the RCA took 8 hours. So we built this

https://wewatchai.com
1•henok•27m ago•1 comments

Amazon CloudFront Global Outage

https://health.aws.amazon.com/health/status
6•barabara13•28m ago•2 comments

The Concussive Geode: When Recurrent BPPV Creates Sensory Mismatch

https://dizzypt.substack.com/p/the-concussive-geode-when-recurrent
1•DIZZYPT•34m ago•0 comments

Two Million Is Small

https://k2xl.substack.com/p/two-million-is-small
3•k2xl•36m ago•0 comments

Exploring AI Driven Coding: Using Xcode 26.3 MCP Tools in Cursor, Claude, Codex

https://rudrank.com/exploring-xcode-using-mcp-tools-cursor-external-clients
1•maguszin•39m ago•0 comments

The Tavistock Clinic scandal: 1k court cases that never materialised

https://yorkshirebylines.co.uk/news/health/the-real-tavistock-clinic-scandal-1000-court-cases-tha...
1•RealCodingOtaku•41m ago•1 comments

Hands-Free Claude Code with the Agent SDK

https://yberreby.com/posts/hands-free-claude-code/
2•yberreby•43m ago•1 comments

Show HN: Cube – The Agentic Analytics Platform [video]

https://www.youtube.com/watch?v=f9RMT6WMAlc
2•micrum•43m ago•0 comments

Why Modern Systems Keep Functioning After They Stop Making Sense [pdf]

https://offbrandguy.com/wp-content/uploads/2026/02/reality-drift-visual-frameworks.pdf
1•realitydrift•44m ago•1 comments