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.

We Need Apocalypse-Proof Software

https://alavi.me/blog/we-need-apocalypse-proof-software/
2•iamnothere•4m ago•0 comments

I tried to prompt-engineer a writing style and got a psychoanalysis instead

https://executelater.substack.com/p/how-i-taught-claude-to-write-like
1•NarratorTD•6m ago•1 comments

2026, the Last Year of the AI Bubble

https://medium.com/predict/2026-the-last-year-of-the-bubble-the-ai-empire-begins-to-crumble-1bb5e...
2•WaitWaitWha•10m ago•2 comments

AI Is Getting Scary Good at Making Predictions

https://www.theatlantic.com/technology/2026/02/ai-prediction-human-forecasters/685955/
1•vinhnx•10m ago•0 comments

Getting the Main Thing Right

https://www.seangoedecke.com/getting-the-main-thing-right/
1•Garbage•11m ago•0 comments

Printing Films Archive

https://printingfilms.com
1•vinhnx•11m ago•0 comments

EpsteinDB – Making the Epstein Files More Searchable

https://epsteindb.com/
1•Lbesecker195•11m ago•1 comments

Show HN: Talk2Code – Text your codebase from your phone (~150 lines of Python)

https://github.com/dchisholm125/Talk2Code
1•dchisholm125•16m ago•1 comments

Show HN: Ls-f a fast, zero-dependency ls with Nerd Font icons (Rust rewrite)

https://github.com/swadhinbiswas/ls-f
1•0x0003r•17m ago•0 comments

I manage my Guix System configs

https://www.terracrypt.net/posts/guix-config.html
1•todsacerdoti•17m ago•0 comments

Test my live Tempest AI Metrics Dashboard on the web

http://davepl.dyns.org:8765/
1•davepl•19m ago•0 comments

Show HN: MultiWA - Open-source self-hosted WhatsApp API Gateway

https://github.com/ribato22/MultiWA
1•ribato•19m ago•0 comments

Trapped in the Hell of Social Comparison

https://www.noahpinion.blog/p/trapped-in-the-hell-of-social-comparison
1•herbertl•21m ago•0 comments

Show HN: Self-hosted alternative to Goodreads. Own your reading data

https://github.com/raghavan/BookSync
2•raghavankl•24m ago•1 comments

Artificial Intelligence and Magical Thinking

http://edwardfeser.blogspot.com/2019/03/artificial-intelligence-and-magical.html
2•b-man•32m ago•0 comments

I built a 3D racing engine that runs on an ESP32-S3 (8MB PSRAM)

https://medium.com/@davidmonterocrespo24/how-i-built-the-first-3d-racing-game-for-esp32-s3-becaus...
1•dmonterocrespo•32m ago•1 comments

AI Agents Are Making Software More Like Biology

https://twitter.com/pablofariasnew/status/2023212613015150657
2•zenva•34m ago•0 comments

Old School Telecine, circa 1980s (2017)

https://www.liftgammagain.com/forum/index.php?threads/old-school-telecine-circa-1980s.9984/
2•exvi•38m ago•0 comments

Keep screenshots/automation working while the MacBook lid is closed

1•xtongs•40m ago•1 comments

Forbes 250 Americas greatest innovators

https://www.forbes.com/sites/alexknapp/2026/02/11/forbes-250-americas-greatest-innovators
1•norbel•40m ago•0 comments

I made the first iMessage API that can change chat background

https://github.com/photon-hq/advanced-imessage-kit/blob/main/examples/background-set.ts
1•RyanZhuuuu•42m ago•0 comments

Technical Update and Correct Live Link

https://unheededly-unmouthed-tawanda.ngrok-free.dev
1•STEM_SAFE•42m ago•1 comments

Non-globally-rigid inversive-distance circle packings [pdf]

https://w3.cs.jmu.edu/bowersjc/files/BowersCirclePackingTalk_ICMS2016.pdf
1•gsf_emergency_6•43m ago•0 comments

CallCombat – Sales Call Roleplay

https://callcombat.com
1•rogutkuba•47m ago•0 comments

LobsterTank – Firecracker microVM hosting for OpenClaw agents ($2/month)

https://lobstertank.me
1•_3u10•47m ago•0 comments

Anthropic improves free Claude tier as OpenAI prepares insert ads into ChatGPT

https://www.engadget.com/ai/anthropic-beefs-up-claudes-free-tier-as-openai-prepares-to-stuff-ads-...
3•gnabgib•49m ago•0 comments

WebMCP early preview available in Chrome

https://developer.chrome.com/blog/webmcp-epp
1•RyanShook•51m ago•0 comments

Show HN: Purple Computer – Turn an old laptop into a calm first kids computer

https://purplecomputer.org
3•imtavi•53m ago•2 comments

Show HN: ClaudeCraft – Minecraft server where Claude agents do everything

3•skullmag•54m ago•3 comments

A Stock Market Doom Loop Is Hitting Everything That Touches AI

https://www.bloomberg.com/news/articles/2026-02-15/a-stock-market-doom-loop-is-hitting-everything...
3•virgildotcodes•56m ago•1 comments