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

Comments

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

Show HN: DuckDB Graph Research RAG for Claude Code

https://github.com/Zabaca/lattice
1•uptownhr•1m ago•0 comments

Xior – A Lightweight Axios-Style HTTP Client Built on Fetch

https://github.com/suhaotian/xior
1•jeremy_su•7m ago•0 comments

UK considering wider roll out of naval laser weapons

https://ukdefencejournal.org.uk/uk-considering-wider-roll-out-of-naval-laser-weapons/
2•guardianbob•10m ago•0 comments

Show HN: Lillyform – Built conversational forms, agentic analysis, and more

https://www.lillyform.com/
1•nickisyourfan•11m ago•0 comments

Tell HN: Do not do business with Kraken I've had a support case open for 15 days

1•colechristensen•11m ago•0 comments

Patterns for Deploying OTel Collector

https://newsletter.signoz.io/p/patterns-for-deploying-otel-collector
1•elza_1111•13m ago•0 comments

Cost of insuring Oracle's debt surges amid financed AI buildout

https://finance.yahoo.com/video/cost-insuring-oracles-debt-surges-130044801.html
1•zerosizedweasle•16m ago•0 comments

Why Does A.I. Write Like – That? – Chatbot Writing Style

https://www.nytimes.com/2025/12/03/magazine/chatbot-writing-style.html
1•the-mitr•17m ago•0 comments

Madison Beer drops album update pre Chargers-Eagles

https://figyj.blogspot.com/2025/12/madison-beer-justin-herberts-gf.html
1•FIGYJ•20m ago•0 comments

Python's random.seed(x) and random.seed(-x) are treated identically

https://twitter.com/karpathy/status/1998236299862659485
1•nomilk•21m ago•1 comments

Show HN: Era – A deterministic, non-neural AI that runs on CPU

https://github.com/faiqhanif469-bot/era
1•Faiqhanif•27m ago•1 comments

Easel: Beginner-friendly online game programming language

https://easel.games/
2•BSTRhino•27m ago•0 comments

IBM to Buy Confluent for $11B to Expand AI Services

https://www.bloomberg.com/news/articles/2025-12-08/ibm-to-buy-confluent-for-11-billion-to-expand-...
1•Garbage•27m ago•0 comments

RFC 9901: Selective Disclosure for JSON Web Tokens

https://www.rfc-editor.org/rfc/rfc9901.html
1•mooreds•28m ago•0 comments

Linux Fu: The SSD Super Cache

https://hackaday.com/2025/12/08/linux-fu-the-ssd-super-cache/
1•Gaishan•32m ago•1 comments

Investing $475M seed round in Unconventional

https://a16z.com/announcement/investing-in-unconventional/
2•SilverElfin•37m ago•1 comments

Axe Programming Language

https://github.com/axelang/axe
1•qaz_wsx•47m ago•0 comments

Parabolas and Archimedes - Numberphile

https://www.youtube.com/watch?v=GAcUZ3my6E0
1•nyc111•47m ago•0 comments

Show HN: Hide X Posts at Country Level

https://chromewebstore.google.com/detail/geofilterx-country-filter/fmgkmllibmlgheocamljbiaibalidafe
1•hgarg•50m ago•0 comments

How Do We Verify Corporate Circular Economy Claims Without Public Data?

2•niksmac•57m ago•0 comments

Article on Gods Timing

https://applygodsword.com/3-signs-god-is-saying-your-time-is-coming/
1•marysminefnuf•59m ago•0 comments

Hyundai Mobile Eccentric Droid

https://robotics.hyundai.com/en/unveiled-robots/mobile/mobedNew.do
1•ricardobeat•1h ago•0 comments

Show HN: Quintus Calendars – An alternative to the irregular Gregorian calendar

https://quintus.sh/
1•egz•1h ago•0 comments

Benchmarking Vulnerability of Agent-Generated Code in Real-World Tasks

https://arxiv.org/abs/2512.03262
1•doppp•1h ago•0 comments

U.S. Authorities Shut Down Major China-Linked AI Tech Smuggling Network

https://www.justice.gov/opa/pr/us-authorities-shut-down-major-china-linked-ai-tech-smuggling-network
4•latchkey•1h ago•0 comments

Another DeepSeek Moment

https://threadreaderapp.com/thread/1996538308697137277.html
3•xngbuilds•1h ago•0 comments

Show HN: TinyJson API – Create temporary API endpoints from JSON in seconds

https://tinyjsonapi.com/
2•yterasaka•1h ago•0 comments

Show HN: WhatsApp Backup Reader – Offline Viewer

https://github.com/rodrigogs/whats-reader
2•rodrigogs•1h ago•0 comments

The Warner Brothers lobbying bonanza

https://www.politico.com/news/2025/12/08/inside-the-warner-bros-lobbying-bonanza-00682276
1•JumpCrisscross•1h ago•0 comments

Insufficient sleep associated with decreased life expectancy

https://news.ohsu.edu/2025/12/08/insufficient-sleep-associated-with-decreased-life-expectancy
5•ivewonyoung•1h ago•0 comments